# HG changeset patch # User Stefan Monnier # Date 967659677 0 # Node ID 820483a506d0a5186c0a79cb37b6e3151abc5143 # Parent 15e2e1de20c5a09f034474cf56639bfc65e16b36 (struct re_pattern_buffer): Use size_t for used/allocated. diff -r 15e2e1de20c5 -r 820483a506d0 src/regex.h --- a/src/regex.h Wed Aug 30 15:00:17 2000 +0000 +++ b/src/regex.h Wed Aug 30 18:21:17 2000 +0000 @@ -144,16 +144,8 @@ 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 @@ 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;