diff options
author | Peter Johnson <peter@tortall.net> | 2002-04-22 01:37:54 +0000 |
---|---|---|
committer | Peter Johnson <peter@tortall.net> | 2002-04-22 01:37:54 +0000 |
commit | 1b6ca83117ed42208bcf4aeac18c316f7a800d18 (patch) | |
tree | 015db491b042186b78cc5da99829d309b732262c /util.h | |
parent | b9541920f16b1f937700253e3b94a184b8a79eda (diff) | |
download | yasm-1b6ca83117ed42208bcf4aeac18c316f7a800d18.tar.gz |
Splint cleanups on memory allocation routines.
svn path=/trunk/yasm/; revision=593
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -129,9 +129,10 @@ int strncasecmp(const char *s1, const char *s2, size_t n); /* Error-checking memory allocation routines in xmalloc.c. */ /*@only@*/ /*@out@*/ void *xmalloc(size_t size); -/*@only@*/ /*@out@*/ void *xcalloc(size_t nelem, size_t elsize); -/*@out@*/ void *xrealloc(/*@returned@*/ /*@null@*/ void *oldmem, size_t size); -void xfree(/*@only@*/ /*@out@*/ /*@null@*/ void *p); +/*@only@*/ void *xcalloc(size_t nelem, size_t elsize); +/*@only@*/ void *xrealloc(/*@only@*/ /*@out@*/ /*@returned@*/ /*@null@*/ + void *oldmem, size_t size) /*@modifies oldmem@*/; +void xfree(/*@only@*/ /*@out@*/ /*@null@*/ void *p) /*@modifies p@*/; #endif /* Bit-counting: used primarily by HAMT but also in a few other places. */ |