# HG changeset patch # User Jim Meyering # Date 782537341 0 # Node ID ad80c00d7c099cb249a29835f025f4ae165a53d7 # Parent f8cf068be6e21400b62d23fc7d8cbc7758c136d4 GNU text utilities diff -r f8cf068be6e2 -r ad80c00d7c09 lib/regex.c --- a/lib/regex.c Thu Oct 13 02:05:39 1994 +0000 +++ b/lib/regex.c Wed Oct 19 03:29:01 1994 +0000 @@ -261,18 +261,14 @@ /* 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 @@ #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 -r f8cf068be6e2 -r ad80c00d7c09 lib/regex.h --- a/lib/regex.h Thu Oct 13 02:05:39 1994 +0000 +++ b/lib/regex.h Wed Oct 19 03:29:01 1994 +0000 @@ -344,11 +344,6 @@ }; 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;