Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/tre/dist/lib Don't use constant macros in condi...
details: https://anonhg.NetBSD.org/src/rev/3c6f40069729
branches: trunk
changeset: 771086:3c6f40069729
user: joerg <joerg%NetBSD.org@localhost>
date: Tue Nov 08 16:45:43 2011 +0000
description:
Don't use constant macros in conditionals, use a #if check.
diffstat:
external/bsd/tre/dist/lib/tre-match-backtrack.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (19 lines):
diff -r a0f075c249d9 -r 3c6f40069729 external/bsd/tre/dist/lib/tre-match-backtrack.c
--- a/external/bsd/tre/dist/lib/tre-match-backtrack.c Tue Nov 08 16:25:25 2011 +0000
+++ b/external/bsd/tre/dist/lib/tre-match-backtrack.c Tue Nov 08 16:45:43 2011 +0000
@@ -585,12 +585,14 @@
if (stack->prev)
{
DPRINT((" backtracking\n"));
- if (stack->item.state->assertions && ASSERT_BACKREF)
+#if ASSERT_BACKREF
+ if (stack->item.state->assertions)
{
DPRINT((" states_seen[%d] = 0\n",
stack->item.state_id));
states_seen[stack->item.state_id] = 0;
}
+#endif
BT_STACK_POP();
}
Home |
Main Index |
Thread Index |
Old Index