[Dancer-changes] CVS: dancer/src regex.c,1.1.1.1,1.2
Brought to you by:
bagder
|
From: Alex H. <ho...@us...> - 2002-08-12 23:34:11
|
Update of /cvsroot/dancer/dancer/src
In directory usw-pr-cvs1:/tmp/cvs-serv15236
Modified Files:
regex.c
Log Message:
I don't care if these are used for debugging only; printf (x) is not
safe.
Index: regex.c
===================================================================
RCS file: /cvsroot/dancer/dancer/src/regex.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- regex.c 13 Nov 2000 02:42:47 -0000 1.1.1.1
+++ regex.c 12 Aug 2002 23:34:07 -0000 1.2
@@ -468,10 +468,10 @@
static int debug = 0;
#define DEBUG_STATEMENT(e) e
-#define DEBUG_PRINT1(x) if (debug) printf (x)
-#define DEBUG_PRINT2(x1, x2) if (debug) printf (x1, x2)
-#define DEBUG_PRINT3(x1, x2, x3) if (debug) printf (x1, x2, x3)
-#define DEBUG_PRINT4(x1, x2, x3, x4) if (debug) printf (x1, x2, x3, x4)
+#define DEBUG_PRINT1(x) if (debug) printf ("%s", x)
+#define DEBUG_PRINT2(x1, x2) if (debug) printf ("%s %s", x1, x2)
+#define DEBUG_PRINT3(x1, x2, x3) if (debug) printf ("%s %s %s", x1, x2, x3)
+#define DEBUG_PRINT4(x1, x2, x3, x4) if (debug) printf ("%s %s %s %s", x1, x2, x3, x4)
#define DEBUG_PRINT_COMPILED_PATTERN(p, s, e) \
if (debug) print_partial_compiled_pattern (s, e)
#define DEBUG_PRINT_DOUBLE_STRING(w, s1, sz1, s2, sz2) \
|