diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2018-02-26 18:03:34 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2018-02-26 18:03:34 -0800 |
commit | 5cd97baf39a37df327b31d06562c0e9dfa42a66f (patch) | |
tree | ba16f493e8021e41cb48ccfecb812bdc99490bab | |
parent | 82fc20ad86dddcc486202d3aecdfcd8e80cba152 (diff) | |
download | txr-5cd97baf39a37df327b31d06562c0e9dfa42a66f.tar.gz txr-5cd97baf39a37df327b31d06562c0e9dfa42a66f.tar.bz2 txr-5cd97baf39a37df327b31d06562c0e9dfa42a66f.zip |
Require semicolon after static_{forward,def} macros.
* lib.h (static_forward, static_def): At least the C version
of these now require a trailing semicolon.
* struct.c (struct_type_ops): Add required semicolon after
static_def.
* syslog.c (syslog_strm_ops): Add required semicolon after
static_forward and after static_def.
-rw-r--r-- | lib.h | 4 | ||||
-rw-r--r-- | struct.c | 2 | ||||
-rw-r--r-- | syslog.c | 4 |
3 files changed, 5 insertions, 5 deletions
@@ -1183,6 +1183,6 @@ loc list_collect_revappend(loc ptail, val obj); #define static_forward(decl) namespace { extern decl; } #define static_def(def) namespace { def; } #else -#define static_forward(decl) static decl; -#define static_def(def) static def; +#define static_forward(decl) static decl +#define static_def(def) static def #endif @@ -1633,7 +1633,7 @@ val static_slot_type_reg(val slot, val strct) static_def(struct cobj_ops struct_type_ops = cobj_ops_init(eq, struct_type_print, struct_type_destroy, - struct_type_mark, cobj_eq_hash_op)) + struct_type_mark, cobj_eq_hash_op)); struct cobj_ops struct_inst_ops = cobj_ops_init_ex(struct_inst_equal, struct_inst_print, @@ -51,7 +51,7 @@ struct syslog_strm { val prio_k; -static_forward(struct strm_ops syslog_strm_ops) +static_forward(struct strm_ops syslog_strm_ops); void syslog_init(void) { @@ -231,7 +231,7 @@ static_def(struct strm_ops syslog_strm_ops = 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, syslog_get_prop, syslog_set_prop, - 0, 0, 0, 0)) + 0, 0, 0, 0)); val make_syslog_stream(val prio) { |