/* 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. */
/* 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. */
/* 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. */