diff options
author | Peter Johnson <peter@tortall.net> | 2002-08-07 01:04:34 +0000 |
---|---|---|
committer | Peter Johnson <peter@tortall.net> | 2002-08-07 01:04:34 +0000 |
commit | da070d59647f30e0ef234496ab34a8d33854ece5 (patch) | |
tree | 123979ce6470ce6dac23d6f99b0ff11c2da91bce /util.h | |
parent | 6727a189ab82a7939b6da1604d2869c317629c5d (diff) | |
download | yasm-da070d59647f30e0ef234496ab34a8d33854ece5.tar.gz |
Move strndup() declaration outside !DMALLOC #ifdef, as it's not defined by
the dmalloc library.
svn path=/trunk/yasm/; revision=661
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -126,7 +126,6 @@ int strncasecmp(const char *s1, const char *s2, size_t n); #else /* strdup() implementation with error checking (using xmalloc). */ /*@only@*/ char *xstrdup(const char *str); -/*@only@*/ char *xstrndup(const char *str, size_t len); /* Error-checking memory allocation routines in xmalloc.c. */ /*@only@*/ /*@out@*/ void *xmalloc(size_t size); @@ -136,6 +135,8 @@ int strncasecmp(const char *s1, const char *s2, size_t n); void xfree(/*@only@*/ /*@out@*/ /*@null@*/ void *p) /*@modifies p@*/; #endif +/*@only@*/ char *xstrndup(const char *str, size_t len); + /* Bit-counting: used primarily by HAMT but also in a few other places. */ #define SK5 0x55555555 #define SK3 0x33333333 |