Module Name:    src
Committed By:   joerg
Date:           Tue Nov  8 16:45:43 UTC 2011

Modified Files:
        src/external/bsd/tre/dist/lib: tre-match-backtrack.c

Log Message:
Don't use constant macros in conditionals, use a #if check.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/bsd/tre/dist/lib/tre-match-backtrack.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/bsd/tre/dist/lib/tre-match-backtrack.c
diff -u src/external/bsd/tre/dist/lib/tre-match-backtrack.c:1.3 src/external/bsd/tre/dist/lib/tre-match-backtrack.c:1.4
--- src/external/bsd/tre/dist/lib/tre-match-backtrack.c:1.3	Sat Nov  5 22:39:13 2011
+++ src/external/bsd/tre/dist/lib/tre-match-backtrack.c	Tue Nov  8 16:45:43 2011
@@ -585,12 +585,14 @@ tre_tnfa_run_backtrack(const tre_tnfa_t 
 	  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();
 	    }

Reply via email to