the dmalloc library.
svn path=/trunk/yasm/; revision=661
#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);
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
#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);
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
#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);
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