diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2002-06-11 21:12:12 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2002-06-11 21:12:12 +0000 |
commit | b1c15445b12ccbda5a402ec56b487665b69747ee (patch) | |
tree | 39735876bf91b2f6bf39bfb577853773ffc0f705 /usr.bin/patch/util.c | |
parent | e7478c049fc780b84e5d9267b380f93757391a22 (diff) |
This is the first step in sanitizing the conditional parser.
Change the conditional recognition algorithm:
scan for a sequence of alphabetic characters, hash it, and compare it against
a small table (using ohash functions).
This makes Cond_Eval entry more logical, and allows for some shortcuts in
recognizing .include, .for, .undef.
This also means that conditionals must have an intervening blank between
the keyword and the actual test, e.g.,
.ifA
will no longer work.
(but no-one actually uses this, and it's highly obfuscated)
Okay miod@.
Diffstat (limited to 'usr.bin/patch/util.c')
0 files changed, 0 insertions, 0 deletions