]> granicus.if.org Git - yasm/commitdiff
Add some lclint annotations.
authorPeter Johnson <peter@tortall.net>
Fri, 16 Nov 2001 22:04:31 +0000 (22:04 -0000)
committerPeter Johnson <peter@tortall.net>
Fri, 16 Nov 2001 22:04:31 +0000 (22:04 -0000)
svn path=/trunk/yasm/; revision=329

libyasm/util.h
src/util.h
util.h

index 5d0bf8d7fd57563cfd87664bb88c9c59d2bd278f..25fb17223472697fd52720ec36e64ea49c4a1045 100644 (file)
@@ -97,13 +97,13 @@ int strncasecmp(const char *s1, const char *s2, size_t n);
 # include <dmalloc.h>
 #else
 /* strdup() implementation with error checking (using xmalloc). */
-char *xstrdup(const char *str);
+/*@only@*/ char *xstrdup(const char *str);
 
 /* Error-checking memory allocation routines in xmalloc.c. */
-void *xmalloc(size_t size);
-void *xcalloc(size_t nelem, size_t elsize);
+/*@only@*/ void *xmalloc(size_t size);
+/*@only@*/ void *xcalloc(size_t nelem, size_t elsize);
 void *xrealloc(void *oldmem, size_t size);
-void xfree(void *p);
+void xfree(/*@only@*/ void *p);
 #endif
 
 #include "coretype.h"
index 5d0bf8d7fd57563cfd87664bb88c9c59d2bd278f..25fb17223472697fd52720ec36e64ea49c4a1045 100644 (file)
@@ -97,13 +97,13 @@ int strncasecmp(const char *s1, const char *s2, size_t n);
 # include <dmalloc.h>
 #else
 /* strdup() implementation with error checking (using xmalloc). */
-char *xstrdup(const char *str);
+/*@only@*/ char *xstrdup(const char *str);
 
 /* Error-checking memory allocation routines in xmalloc.c. */
-void *xmalloc(size_t size);
-void *xcalloc(size_t nelem, size_t elsize);
+/*@only@*/ void *xmalloc(size_t size);
+/*@only@*/ void *xcalloc(size_t nelem, size_t elsize);
 void *xrealloc(void *oldmem, size_t size);
-void xfree(void *p);
+void xfree(/*@only@*/ void *p);
 #endif
 
 #include "coretype.h"
diff --git a/util.h b/util.h
index 5d0bf8d7fd57563cfd87664bb88c9c59d2bd278f..25fb17223472697fd52720ec36e64ea49c4a1045 100644 (file)
--- a/util.h
+++ b/util.h
@@ -97,13 +97,13 @@ int strncasecmp(const char *s1, const char *s2, size_t n);
 # include <dmalloc.h>
 #else
 /* strdup() implementation with error checking (using xmalloc). */
-char *xstrdup(const char *str);
+/*@only@*/ char *xstrdup(const char *str);
 
 /* Error-checking memory allocation routines in xmalloc.c. */
-void *xmalloc(size_t size);
-void *xcalloc(size_t nelem, size_t elsize);
+/*@only@*/ void *xmalloc(size_t size);
+/*@only@*/ void *xcalloc(size_t nelem, size_t elsize);
 void *xrealloc(void *oldmem, size_t size);
-void xfree(void *p);
+void xfree(/*@only@*/ void *p);
 #endif
 
 #include "coretype.h"