X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2FSDCCsymt.c;h=de4b9d4b82184df0772590ee07123764807d9e18;hb=5df1b9a579235d42fcec8a8884808334ed99a246;hp=217265cd1f8902dafbf89d314e5d1d88d0f67107;hpb=11e3839c21831fa11d5508b05a57320e02f12330;p=fw%2Fsdcc diff --git a/src/SDCCsymt.c b/src/SDCCsymt.c index 217265cd..de4b9d4b 100644 --- a/src/SDCCsymt.c +++ b/src/SDCCsymt.c @@ -72,7 +72,7 @@ newBucket () { bucket *bp; - bp = Safe_calloc (1, sizeof (bucket)); + bp = Safe_alloc ( sizeof (bucket)); return bp; } @@ -121,7 +121,7 @@ addSym (bucket ** stab, /* the symbols are always added at the head of the list */ i = hashKey (sname); /* get a free entry */ - bp = Safe_calloc (1, sizeof (bucket)); + bp = Safe_alloc ( sizeof (bucket)); bp->sym = sym; /* update the symbol pointer */ bp->level = level; /* update the nest level */ @@ -273,7 +273,7 @@ newSymbol (char *name, int scope) { symbol *sym; - sym = Safe_calloc (1, sizeof (symbol)); + sym = Safe_alloc ( sizeof (symbol)); strcpy (sym->name, name); /* copy the name */ sym->level = scope; /* set the level */ @@ -290,7 +290,7 @@ newLink () { sym_link *p; - p = Safe_calloc (1, sizeof (sym_link)); + p = Safe_alloc ( sizeof (sym_link)); return p; } @@ -303,7 +303,7 @@ newStruct (char *tag) { structdef *s; - s = Safe_calloc (1, sizeof (structdef)); + s = Safe_alloc ( sizeof (structdef)); strcpy (s->tag, tag); /* copy the tag */ return s;