diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2021-10-01 14:46:44 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2021-10-01 14:46:44 +0900 |
commit | d7a7ea08958444dd72d30487fd9db0368418351f (patch) | |
tree | d7b88857c81e769a4f7b07e0e586ef3d01f4cb72 /output.c | |
parent | e73d41ebea6d4b8c63faa27620bfa42770a40f79 (diff) | |
download | byacc-d7a7ea08958444dd72d30487fd9db0368418351f.tar.gz byacc-d7a7ea08958444dd72d30487fd9db0368418351f.tar.bz2 byacc-d7a7ea08958444dd72d30487fd9db0368418351f.zip |
Imported Upstream version 20120526upstream/20120526
Diffstat (limited to 'output.c')
-rw-r--r-- | output.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,4 +1,4 @@ -/* $Id: output.c,v 1.43 2012/01/14 17:03:52 tom Exp $ */ +/* $Id: output.c,v 1.44 2012/05/26 01:13:02 tom Exp $ */ #include "defs.h" @@ -557,10 +557,10 @@ pack_vector(int vector) } while (newmax <= loc); - table = (Value_t *) REALLOC(table, (unsigned)newmax * sizeof(Value_t)); + table = TREALLOC(Value_t, table, newmax); NO_SPACE(table); - check = (Value_t *) REALLOC(check, (unsigned)newmax * sizeof(Value_t)); + check = TREALLOC(Value_t, check, newmax); NO_SPACE(check); for (l = maxtable; l < newmax; ++l) @@ -919,7 +919,7 @@ output_debug(void) ++outline; fprintf(code_file, "#define YYMAXTOKEN %d\n", max); - symnam = (const char **)MALLOC((unsigned)(max + 1) * sizeof(char *)); + symnam = TMALLOC(const char *, max + 1); NO_SPACE(symnam); /* Note that it is not necessary to initialize the element */ |