diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-05-31 12:50:04 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-05-31 12:50:04 (GMT) |
commit | 84b9d03fb02b9ee744e03775f590d49f105d23f8 (patch) | |
tree | 5744c424eb00548acf667916895305f874909917 /generic/regex.h | |
parent | 2ed71e62a0e1b2fc0b0dca264ffa417ba2d9b159 (diff) | |
parent | a2a03ea8fb6718cc472cc7dcb44f8e68aadb24ba (diff) | |
download | tcl-84b9d03fb02b9ee744e03775f590d49f105d23f8.zip tcl-84b9d03fb02b9ee744e03775f590d49f105d23f8.tar.gz tcl-84b9d03fb02b9ee744e03775f590d49f105d23f8.tar.bz2 |
TIP 537 implementation: Enable 64-bit indexes in regexp matching
Diffstat (limited to 'generic/regex.h')
-rw-r--r-- | generic/regex.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/generic/regex.h b/generic/regex.h index 81f98a4..47a8103 100644 --- a/generic/regex.h +++ b/generic/regex.h @@ -117,8 +117,8 @@ extern "C" { /* the biggie, a compiled RE (or rather, a front end to same) */ typedef struct { int re_magic; /* magic number */ - size_t re_nsub; /* number of subexpressions */ long re_info; /* information about RE */ + size_t re_nsub; /* number of subexpressions */ #define REG_UBACKREF 000001 #define REG_ULOOKAHEAD 000002 #define REG_UBOUNDS 000004 @@ -133,7 +133,6 @@ typedef struct { #define REG_UEMPTYMATCH 004000 #define REG_UIMPOSSIBLE 010000 #define REG_USHORTEST 020000 - int re_csize; /* sizeof(character) */ char *re_endp; /* backward compatibility kludge */ /* the rest is opaque pointers to hidden innards */ char *re_guts; /* `char *' is more portable than `void *' */ @@ -142,8 +141,8 @@ typedef struct { /* result reporting (may acquire more fields later) */ typedef struct { - long rm_so; /* start of substring */ - long rm_eo; /* end of substring */ + size_t rm_so; /* start of substring */ + size_t rm_eo; /* end of substring */ } regmatch_t; /* supplementary control and reporting */ |