diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2020-01-15 20:52:50 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2020-01-15 20:52:50 -0500 |
commit | 2ca96f5c91395771a37ad6707b2b28c60e6a8873 (patch) | |
tree | 72713439b085e59ee9a3f95dcb11eb90f550cba9 /identifiers.c | |
parent | 757b7a618bfdd8cb5690cce1c943e6d6e1a11cb2 (diff) |
fixed several problems with packages. arr_foreach works now!
Diffstat (limited to 'identifiers.c')
-rw-r--r-- | identifiers.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/identifiers.c b/identifiers.c index c5a4ec1..28989d9 100644 --- a/identifiers.c +++ b/identifiers.c @@ -169,7 +169,8 @@ static void print_ident(Identifier id) { static void fprint_ident_reduced_charset(FILE *out, Identifier id) { assert(id); if (id->anonymous) { - fprintf(out, "x___"); + /* hack to generate unique C identifiers */ + fprintf(out, "a%p__",(void *)id); return; } for (char *s = id->text; is_ident(*s); ++s) { |