diff options
| author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-08-14 06:42:58 (GMT) |
|---|---|---|
| committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-08-14 06:42:58 (GMT) |
| commit | c9376306301e578615cfee52d2121f78cb31a225 (patch) | |
| tree | b80d507267bc38923d21ef904af4a227e2f4909d /generic/regexec.c | |
| parent | 343b0349d4d4b41ca86832298dead909b1ef055d (diff) | |
| download | tcl-c9376306301e578615cfee52d2121f78cb31a225.zip tcl-c9376306301e578615cfee52d2121f78cb31a225.tar.gz tcl-c9376306301e578615cfee52d2121f78cb31a225.tar.bz2 | |
Remove "register" keyword in various places. Also add some type-casts to help C++ compatibility.
Diffstat (limited to 'generic/regexec.c')
| -rw-r--r-- | generic/regexec.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/generic/regexec.c b/generic/regexec.c index 1a3e114..24c4eac 100644 --- a/generic/regexec.c +++ b/generic/regexec.c @@ -91,7 +91,6 @@ struct smalldfa { struct sset *outsarea[FEWSTATES*2 * FEWCOLORS]; struct arcp incarea[FEWSTATES*2 * FEWCOLORS]; }; -#define DOMALLOC ((struct smalldfa *)NULL) /* force malloc */ /* * Internal variables, bundled for easy passing around. @@ -299,7 +298,7 @@ getsubdfa(struct vars * v, struct subre * t) { if (v->subdfas[t->id] == NULL) { - v->subdfas[t->id] = newDFA(v, &t->cnfa, &v->g->cmap, DOMALLOC); + v->subdfas[t->id] = newDFA(v, &t->cnfa, &v->g->cmap, NULL); if (ISERR()) return NULL; } |
