]> andersk Git - splint.git/blobdiff - src/general.c
Making fixes for Microsoft Visual C++ compiler.
[splint.git] / src / general.c
index 972420079cde04b7be3ae3f554c2fbc149469108..da2bb57ef3b8a263d1d9bbfacc3276a23b971531 100644 (file)
@@ -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);
This page took 0.033894 seconds and 4 git commands to generate.