summaryrefslogtreecommitdiff
path: root/lib/regex.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1994-10-19 03:39:33 +0000
committerJim Meyering <jim@meyering.net>1994-10-19 03:39:33 +0000
commit544baf5482a56229515f24806f35ab1a847f3504 (patch)
treec522a976b4153fe4225529d50bab5a186bf55eb8 /lib/regex.c
parent6a76abbf9c911e179a4d6fbd38940077ad1a0f3a (diff)
downloadcoreutils-544baf5482a56229515f24806f35ab1a847f3504.tar.xz
merge with 1.9.1h
Diffstat (limited to 'lib/regex.c')
-rw-r--r--lib/regex.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/regex.c b/lib/regex.c
index fd3c6a885..7598572fe 100644
--- a/lib/regex.c
+++ b/lib/regex.c
@@ -261,18 +261,14 @@ static int re_match_2_internal ();
/* These are the command codes that appear in compiled regular
expressions. Some opcodes are followed by argument bytes. A
command code can specify any interpretation whatsoever for its
- arguments. Zero bytes may appear in the compiled regular expression.
-
- The value of `exactn' is needed in search.c (search_buffer) in Emacs.
- So regex.h defines a symbol `RE_EXACTN_VALUE' to be 1; the value of
- `exactn' we use here must also be 1. */
+ arguments. Zero bytes may appear in the compiled regular expression. */
typedef enum
{
no_op = 0,
/* Followed by one byte giving n, then by n literal bytes. */
- exactn = 1,
+ exactn,
/* Matches any (more or less) character. */
anychar,
@@ -904,7 +900,7 @@ static const char *re_error_msg[] =
#define MATCH_MAY_ALLOCATE
/* The match routines may not allocate if (1) they would do it with malloc
- and (2) it's not safe for htem to use malloc. */
+ and (2) it's not safe for them to use malloc. */
#if (defined (C_ALLOCA) || defined (REGEX_MALLOC)) && (defined (emacs) || defined (REL_ALLOC))
#undef MATCH_MAY_ALLOCATE
#endif