Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/regex make this compile with -DREDEBUG again.



details:   https://anonhg.NetBSD.org/src/rev/dc80472bb0eb
branches:  trunk
changeset: 534332:dc80472bb0eb
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Jul 22 12:56:17 2002 +0000

description:
make this compile with -DREDEBUG again.

diffstat:

 lib/libc/regex/engine.c |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (38 lines):

diff -r 22053bb33ed7 -r dc80472bb0eb lib/libc/regex/engine.c
--- a/lib/libc/regex/engine.c   Mon Jul 22 11:05:59 2002 +0000
+++ b/lib/libc/regex/engine.c   Mon Jul 22 12:56:17 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: engine.c,v 1.13 2001/12/17 16:32:49 christos Exp $     */
+/*     $NetBSD: engine.c,v 1.14 2002/07/22 12:56:17 christos Exp $     */
 
 /*-
  * Copyright (c) 1992, 1993, 1994 Henry Spencer.
@@ -56,6 +56,7 @@
 #define        print   sprint
 #define        at      sat
 #define        match   smat
+#define        nope    snope
 #endif
 #ifdef LNAMES
 #define        matcher lmatcher
@@ -67,6 +68,7 @@
 #define        print   lprint
 #define        at      lat
 #define        match   lmat
+#define        nope    lnope
 #endif
 
 /* another structure passed up and down to avoid zillions of parameters */
@@ -126,6 +128,7 @@
 #define        SP(t, s, c)     print(m, t, s, c, stdout)
 #define        AT(t, p1, p2, s1, s2)   at(m, t, p1, p2, s1, s2)
 #define        NOTE(str)       { if (m->eflags&REG_TRACE) printf("=%s\n", (str)); }
+static int nope = 0;
 #else
 #define        SP(t, s, c)     /* nothing */
 #define        AT(t, p1, p2, s1, s2)   /* nothing */
@@ -1148,3 +1151,4 @@
 #undef print
 #undef at
 #undef match
+#undef nope



Home | Main Index | Thread Index | Old Index