Module Name: src
Committed By: christos
Date: Sat Jan 16 21:26:59 UTC 2010
Modified Files:
src/usr.bin/unifdef: unifdef.c
Removed Files:
src/usr.bin/unifdef: stdbool.h
Log Message:
- we don't need stdbool.h anymore.
- the previous fix for the negative index logic was wrong, fix it.
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r0 src/usr.bin/unifdef/stdbool.h
cvs rdiff -u -r1.15 -r1.16 src/usr.bin/unifdef/unifdef.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/unifdef/unifdef.c
diff -u src/usr.bin/unifdef/unifdef.c:1.15 src/usr.bin/unifdef/unifdef.c:1.16
--- src/usr.bin/unifdef/unifdef.c:1.15 Mon Jul 13 15:05:41 2009
+++ src/usr.bin/unifdef/unifdef.c Sat Jan 16 16:26:59 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: unifdef.c,v 1.15 2009/07/13 19:05:41 roy Exp $ */
+/* $NetBSD: unifdef.c,v 1.16 2010/01/16 21:26:59 christos Exp $ */
/*
* Copyright (c) 1985, 1993
@@ -77,7 +77,7 @@
#endif
#ifdef __IDSTRING
__IDSTRING(Berkeley, "@(#)unifdef.c 8.1 (Berkeley) 6/6/93");
-__IDSTRING(NetBSD, "$NetBSD: unifdef.c,v 1.15 2009/07/13 19:05:41 roy Exp $");
+__IDSTRING(NetBSD, "$NetBSD: unifdef.c,v 1.16 2010/01/16 21:26:59 christos Exp $");
__IDSTRING(dotat, "$dotat: things/unifdef.c,v 1.161 2003/07/01 15:32:48 fanf2 Exp $");
#endif
#endif /* not lint */
@@ -760,7 +760,7 @@
return (LT_IF);
cp = skipcomment(cp);
sym = findsym(cp);
- if (sym < 0 || !symlist)
+ if (sym < 0 || symlist)
return (LT_IF);
*valp = (value[sym] != NULL);
cp = skipsym(cp);
@@ -771,7 +771,7 @@
} else if (!endsym(*cp)) {
debug("eval%d symbol", ops - eval_ops);
sym = findsym(cp);
- if (sym < 0 || !symlist)
+ if (sym < 0 || symlist)
return (LT_IF);
if (value[sym] == NULL)
*valp = 0;