changeset 409:e9f87c3ee38a

(REGEX_FREE): Add back the `while (0)' hack Put back ifdefs to protect unnecessary decl.
author Jim Meyering <jim@meyering.net>
date Thu, 27 Apr 1995 05:23:35 +0000
parents 17dc6a8da5f5
children 3021132524bb
files lib/regex.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lib/regex.c
+++ b/lib/regex.c
@@ -246,7 +246,7 @@
    destination)
 
 /* No need to do anything to free, after alloca.  */
-#define REGEX_FREE(arg) (0)
+#define REGEX_FREE(arg) while (0)
 
 #endif /* not REGEX_MALLOC */
 
@@ -2865,7 +2865,9 @@
 
   /* This holds the pointer to the failure stack, when
      it is allocated relocatably.  */
+#ifdef REL_ALLOC_STMT
   fail_stack_elt_t *failure_stack_ptr;
+#endif
 
   /* Assume that each path through the pattern can be null until
      proven otherwise.  We set this false at the bottom of switch
@@ -3516,7 +3518,9 @@
 
   /* This holds the pointer to the failure stack, when
      it is allocated relocatably.  */
+#ifdef REL_ALLOC_STMT
   fail_stack_elt_t *failure_stack_ptr;
+#endif
 
   /* We fill all the registers internally, independent of what we
      return, for use in backreferences.  The number here includes