summaryrefslogtreecommitdiff
path: root/lib/regex.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1995-04-27 05:23:35 +0000
committerJim Meyering <jim@meyering.net>1995-04-27 05:23:35 +0000
commit00c3a48bd73ca6f8f43932572e2ffee290ff3b8a (patch)
tree97cbeff5ce96a6fcc057990cf65c8a5f11be6d02 /lib/regex.c
parent1fa0e4dfd6a4b419d7afee984c5c8383def28e95 (diff)
downloadcoreutils-00c3a48bd73ca6f8f43932572e2ffee290ff3b8a.tar.xz
(REGEX_FREE): Add back the `while (0)' hack
Put back ifdefs to protect unnecessary decl.
Diffstat (limited to 'lib/regex.c')
-rw-r--r--lib/regex.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/regex.c b/lib/regex.c
index c17ff8cd0..37e67c6be 100644
--- a/lib/regex.c
+++ b/lib/regex.c
@@ -246,7 +246,7 @@ char *alloca ();
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 @@ re_compile_fastmap (bufp)
/* 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 @@ re_match_2_internal (bufp, string1, size1, string2, size2, pos, regs, stop)
/* 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