summaryrefslogtreecommitdiff
path: root/cgen.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-01-14 20:00:19 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2020-01-14 20:00:19 -0500
commit1de39ba1ffdacf6841f925537b31b32a4101b632 (patch)
treeb321ca376cc9693136e609fa88aaaca3acc7afa3 /cgen.c
parent62349b1f6d9f5948f856e26e3b0eef19567198fa (diff)
extern variable declarations
Diffstat (limited to 'cgen.c')
-rw-r--r--cgen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cgen.c b/cgen.c
index 0c955e0..03f828d 100644
--- a/cgen.c
+++ b/cgen.c
@@ -254,7 +254,7 @@ static void cgen_ident_id(CGenerator *g, IdentID id) {
cgen_write(g, "a%lu_", (unsigned long)id);
}
-/* should declaration be a direct function declaration C (as opposed to using a function pointer or not being a function) */
+/* should this declaration be a direct function declaration C? (as opposed to using a function pointer or not being a function) */
static bool cgen_fn_is_direct(CGenerator *g, Declaration *d) {
return g->block == NULL && (d->flags & DECL_HAS_EXPR) && d->expr.kind == EXPR_FN && arr_len(d->idents) == 1;
}