diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-03-08 22:51:16 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-03-08 22:51:16 (GMT) |
commit | e6a53eb44dab26c44e01f4620467c2c5ae0f27e5 (patch) | |
tree | 59277fc50a99e395168027e1ffa8bbe0be18a7cb /generic/regcomp.c | |
parent | e30b8a9185f7d16573e849b3df2ec1d1791439ea (diff) | |
parent | 2b821c69deba46a4f4634dbbfa6b5b34b6036f9c (diff) | |
download | tcl-e6a53eb44dab26c44e01f4620467c2c5ae0f27e5.zip tcl-e6a53eb44dab26c44e01f4620467c2c5ae0f27e5.tar.gz tcl-e6a53eb44dab26c44e01f4620467c2c5ae0f27e5.tar.bz2 |
Merge 8.7
Diffstat (limited to 'generic/regcomp.c')
-rw-r--r-- | generic/regcomp.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/generic/regcomp.c b/generic/regcomp.c index 144e7c2..0855685 100644 --- a/generic/regcomp.c +++ b/generic/regcomp.c @@ -210,7 +210,7 @@ struct vars { int lexcon; /* lexical context type (see lex.c) */ int nsubexp; /* subexpression count */ struct subre **subs; /* subRE pointer vector */ - size_t nsubs; /* length of vector */ + int nsubs; /* length of vector */ struct subre *sub10[10]; /* initial vector, enough for most */ struct nfa *nfa; /* the NFA */ struct colormap *cm; /* character color map */ @@ -287,8 +287,7 @@ compile( { AllocVars(v); struct guts *g; - int i; - size_t j; + int i, j; FILE *debug = (flags®_PROGRESS) ? stdout : NULL; #define CNOERR() { if (ISERR()) return freev(v, v->err); } @@ -477,7 +476,7 @@ moresubs( size_t wanted) /* want enough room for this one */ { struct subre **p; - size_t n; + int n; assert(wanted > 0 && wanted >= v->nsubs); n = wanted * 3 / 2 + 1; @@ -797,7 +796,7 @@ parseqatom( struct subre *t; int cap; /* capturing parens? */ int pos; /* positive lookahead? */ - size_t subno; /* capturing-parens or backref number */ + int subno; /* capturing-parens or backref number */ int atomtype; int qprefer; /* quantifier short/long preference */ int f; |