diff options
author | dgp <dgp@noemail.net> | 2007-11-13 14:30:07 (GMT) |
---|---|---|
committer | dgp <dgp@noemail.net> | 2007-11-13 14:30:07 (GMT) |
commit | 6cf7c090fe5bc76c1abbba00da5d1cffd1f81cd3 (patch) | |
tree | d229ebdba872bbd8c9b999adaf4939b220e0be1b /generic/regcomp.c | |
parent | d73d8d724ddeccc22d545d20183bc987bdaafce8 (diff) | |
download | tcl-6cf7c090fe5bc76c1abbba00da5d1cffd1f81cd3.zip tcl-6cf7c090fe5bc76c1abbba00da5d1cffd1f81cd3.tar.gz tcl-6cf7c090fe5bc76c1abbba00da5d1cffd1f81cd3.tar.bz2 |
* generic/regcomp.c: Convert optst() from expensive no-op to a
cheap no-op.
FossilOrigin-Name: c3453d7b63f249d715cfaf1269b7163255b7b61b
Diffstat (limited to 'generic/regcomp.c')
-rw-r--r-- | generic/regcomp.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/generic/regcomp.c b/generic/regcomp.c index b9169f9..7faf793 100644 --- a/generic/regcomp.c +++ b/generic/regcomp.c @@ -2103,6 +2103,7 @@ optst( struct vars *v, struct subre *t) { +#if 0 if (t == NULL) { return; } @@ -2117,6 +2118,15 @@ optst( if (t->right != NULL) { optst(v, t->right); } +#else + /* + * DGP (2007-11-13): I assume it was the programmer's intent to + * eventually come back and add code above to optimize subRE trees, + * but the routine coded just spends effort traversing the tree and + * doing nothing. We can do nothing with less effort. + */ + return; +#endif } /* |