cvs commit: src/usr.bin/make cond.c cond.h for.c for.h parse.c
parse.h
Kris Kennaway
kris at obsecurity.org
Mon Apr 11 00:40:27 PDT 2005
On Mon, Apr 11, 2005 at 07:20:10AM +0000, Hartmut Brandt wrote:
> harti 2005-04-11 07:20:10 UTC
>
> FreeBSD src repository
>
> Modified files:
> usr.bin/make cond.c cond.h for.c for.h parse.c parse.h
> Log:
> Rework the directive parsing code. Instead of using a lot of strcmp()s
> on every line that starts with a dot use a minimal perfect hash
> function and a single strcmp() on the first word after the dot
> to find out whether it is really a directive call and, if yes, which
> one. Then directly dispatch to a handler function for that directive
> (or fall through to the dependency handling code). This makes the
> directive parse a little bit more strict about the syntax: the directive
> word must be followed by a character that is not alphanumerical and not
> an underline (making .undefFOO illegal); .endif and .else can only be
> followed by comments.
I assume you've tested that this doesn't cause problems for anything
in the ports collection?
Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-src/attachments/20050411/c9325fd9/attachment.bin
More information about the cvs-src
mailing list