X-Git-Url: http://andersk.mit.edu/gitweb/splint.git/blobdiff_plain/112c85fd5ba63bbf83526cdadfc7751b2cf74311..4caf866b3d452c738cb276e805e48e4f1ccd2eba:/src/general.c diff --git a/src/general.c b/src/general.c index 9724200..da2bb57 100644 --- a/src/general.c +++ b/src/general.c @@ -27,6 +27,7 @@ # include "splintMacros.nf" # include "basic.h" + # undef malloc # undef realloc # undef calloc @@ -35,7 +36,7 @@ # include "dmalloc.h" # endif -# include "portab.h" +# include "osd.h" /* ** redefine undef'd memory ops @@ -187,18 +188,6 @@ void *direalloc (/*@out@*/ /*@null@*/ void *x, size_t size, /*@=mustdefine@*/ -char *FormatInt (int i) -{ - char temp[255]; /* assume the integer has at most 254 digits */ - char *outs; - int sres = snprintf (temp, 255, "%i", i); - check (sres >= 0 && sres <= 255); - outs = (char *) dmalloc (sizeof (*outs) * (1 + strlen (temp))); - strcpy (outs, temp); - - return (outs); -} - bool firstWord (char *s, char *w) { llassert (s != NULL);