]> andersk Git - splint.git/blobdiff - src/message.c
Added code to support CSV output (-csv flag).
[splint.git] / src / message.c
index 41757a5d070f666bab31005f000fa483a4ce7a62..de50dab5c86bdfd7bd9eeb27385850f65d8fd94e 100644 (file)
@@ -40,9 +40,16 @@ typedef enum
   XPERCENT, XCTYPE, XPLURAL, XREPREFIX, XFILELOC, XPOINTER
 } ccode;
 
-/* char *s, anytype v */
+/*@function void GETPRINTF (char *p_s, anytype p_v) modifies strbuf@*/
+
 /*@notfunction@*/
+# ifndef WIN32
+  /* ISO requires this, but not all implementations (e.g., Microsoft's) provide it */
 # define GETPRINTF(s,v) (snprintf (strbuf, 64, s, v), mstring_copy (strbuf))
+# else
+  /* MS provides _snprintf instead */
+# define GETPRINTF(s,v) (_snprintf (strbuf, 64, s, v), mstring_copy (strbuf))
+# endif
 
 /*
 ** returns control code indicated by *c, and
This page took 0.996916 seconds and 4 git commands to generate.