diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2000-08-30 18:21:17 +0000 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2000-08-30 18:21:17 +0000 |
commit | 98222d270c1bd25f5e013d26fff845bf531dfac9 (patch) | |
tree | 8be014670d47d1eab9f27366a471d7eda694ee3d /src/regex.h | |
parent | 868dd24bb197a692d1c6eaf71a67fd385098c460 (diff) | |
download | emacs-98222d270c1bd25f5e013d26fff845bf531dfac9.tar.gz |
(struct re_pattern_buffer): Use size_t for used/allocated.
Diffstat (limited to 'src/regex.h')
-rw-r--r-- | src/regex.h | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/regex.h b/src/regex.h index d0c32d50d27..46f2a633c3a 100644 --- a/src/regex.h +++ b/src/regex.h @@ -144,16 +144,8 @@ typedef unsigned long int reg_syntax_t; If not set, then the GNU regex operators are recognized. */ #define RE_NO_GNU_OPS (RE_NO_POSIX_BACKTRACKING << 1) -/* If this bit is set, turn on internal regex debugging. - If not set, and debugging was on, turn it off. - This only works if regex.c is compiled -DDEBUG. - We define this bit always, so that all that's needed to turn on - debugging is to recompile regex.c; the calling code can always have - this bit set, and it won't affect anything in the normal case. */ -#define RE_DEBUG (RE_NO_GNU_OPS << 1) - /* If this bit is set, then *?, +? and ?? match non greedily. */ -#define RE_FRUGAL (RE_DEBUG << 1) +#define RE_FRUGAL (RE_NO_GNU_OPS << 1) /* If this bit is set, then (?:...) is treated as a shy group. */ #define RE_SHY_GROUPS (RE_FRUGAL << 1) @@ -335,10 +327,10 @@ struct re_pattern_buffer unsigned char *buffer; /* Number of bytes to which `buffer' points. */ - unsigned long int allocated; + size_t allocated; /* Number of bytes actually used in `buffer'. */ - unsigned long int used; + size_t used; /* Syntax setting with which the pattern was compiled. */ reg_syntax_t syntax; |