diff options
author | Jim Meyering <jim@meyering.net> | 1994-10-19 03:29:01 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1994-10-19 03:29:01 +0000 |
commit | aa479d24ea619ee9218b05bd7da871983c74b3e1 (patch) | |
tree | 84dd7812fefced0e0da6e710d794c830dbb81a49 | |
parent | 4bb1a680d36d6d4de5375010559a0a157184d3ca (diff) | |
download | gnulib-aa479d24ea619ee9218b05bd7da871983c74b3e1.tar.gz |
GNU text utilitiesTEXTUTILS-1_9_1h
-rw-r--r-- | lib/regex.c | 10 | ||||
-rw-r--r-- | lib/regex.h | 5 |
2 files changed, 3 insertions, 12 deletions
diff --git a/lib/regex.c b/lib/regex.c index 4b22b31a3c..c7674a1e9c 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 diff --git a/lib/regex.h b/lib/regex.h index a495005ce9..40f684cb8e 100644 --- a/lib/regex.h +++ b/lib/regex.h @@ -344,11 +344,6 @@ struct re_pattern_buffer }; typedef struct re_pattern_buffer regex_t; - - -/* search.c (search_buffer) in Emacs needs this one opcode value. It is - defined both in `regex.c' and here. */ -#define RE_EXACTN_VALUE 1 /* Type for byte offsets within the string. POSIX mandates this. */ typedef int regoff_t; |