aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Monnier2000-08-30 18:21:17 +0000
committerStefan Monnier2000-08-30 18:21:17 +0000
commit98222d270c1bd25f5e013d26fff845bf531dfac9 (patch)
tree8be014670d47d1eab9f27366a471d7eda694ee3d /src
parent868dd24bb197a692d1c6eaf71a67fd385098c460 (diff)
downloademacs-98222d270c1bd25f5e013d26fff845bf531dfac9.tar.gz
emacs-98222d270c1bd25f5e013d26fff845bf531dfac9.zip
(struct re_pattern_buffer): Use size_t for used/allocated.
Diffstat (limited to 'src')
-rw-r--r--src/regex.h14
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;
144 If not set, then the GNU regex operators are recognized. */ 144 If not set, then the GNU regex operators are recognized. */
145#define RE_NO_GNU_OPS (RE_NO_POSIX_BACKTRACKING << 1) 145#define RE_NO_GNU_OPS (RE_NO_POSIX_BACKTRACKING << 1)
146 146
147/* If this bit is set, turn on internal regex debugging.
148 If not set, and debugging was on, turn it off.
149 This only works if regex.c is compiled -DDEBUG.
150 We define this bit always, so that all that's needed to turn on
151 debugging is to recompile regex.c; the calling code can always have
152 this bit set, and it won't affect anything in the normal case. */
153#define RE_DEBUG (RE_NO_GNU_OPS << 1)
154
155/* If this bit is set, then *?, +? and ?? match non greedily. */ 147/* If this bit is set, then *?, +? and ?? match non greedily. */
156#define RE_FRUGAL (RE_DEBUG << 1) 148#define RE_FRUGAL (RE_NO_GNU_OPS << 1)
157 149
158/* If this bit is set, then (?:...) is treated as a shy group. */ 150/* If this bit is set, then (?:...) is treated as a shy group. */
159#define RE_SHY_GROUPS (RE_FRUGAL << 1) 151#define RE_SHY_GROUPS (RE_FRUGAL << 1)
@@ -335,10 +327,10 @@ struct re_pattern_buffer
335 unsigned char *buffer; 327 unsigned char *buffer;
336 328
337 /* Number of bytes to which `buffer' points. */ 329 /* Number of bytes to which `buffer' points. */
338 unsigned long int allocated; 330 size_t allocated;
339 331
340 /* Number of bytes actually used in `buffer'. */ 332 /* Number of bytes actually used in `buffer'. */
341 unsigned long int used; 333 size_t used;
342 334
343 /* Syntax setting with which the pattern was compiled. */ 335 /* Syntax setting with which the pattern was compiled. */
344 reg_syntax_t syntax; 336 reg_syntax_t syntax;