DragonFly BSD
DragonFly commits List (threaded) for 2005-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

cvs commit: src/usr.bin/make cond.c cond.h for.c for.h main.c parse.c parse.h


From: Max Okumoto <okumoto@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 15 Apr 2005 14:01:27 -0700 (PDT)

okumoto     2005/04/15 14:01:27 PDT

DragonFly src repository

  Modified files:
    usr.bin/make         cond.c cond.h for.c for.h main.c parse.c 
                         parse.h 
  Log:
  FreeBSD-Date: 2005/04/11 08:20:09
  FreeBSD-Date: 2005/04/11 08:26:21
  FreeBSD-Date: 2005/04/11 08:40:54
  
  Author: harti
  
  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.
  
  Revision  Changes    Path
  1.36      +155 -163  src/usr.bin/make/cond.c
  1.4       +20 -1     src/usr.bin/make/cond.h
  1.38      +105 -107  src/usr.bin/make/for.c
  1.3       +4 -1      src/usr.bin/make/for.h
  1.71      +0 -2      src/usr.bin/make/main.c
  1.69      +387 -339  src/usr.bin/make/parse.c
  1.6       +0 -1      src/usr.bin/make/parse.h


http://www.dragonflybsd.org/cvsweb/src/usr.bin/make/cond.c.diff?r1=1.35&r2=1.36&f=u
http://www.dragonflybsd.org/cvsweb/src/usr.bin/make/cond.h.diff?r1=1.3&r2=1.4&f=u
http://www.dragonflybsd.org/cvsweb/src/usr.bin/make/for.c.diff?r1=1.37&r2=1.38&f=u
http://www.dragonflybsd.org/cvsweb/src/usr.bin/make/for.h.diff?r1=1.2&r2=1.3&f=u
http://www.dragonflybsd.org/cvsweb/src/usr.bin/make/main.c.diff?r1=1.70&r2=1.71&f=u
http://www.dragonflybsd.org/cvsweb/src/usr.bin/make/parse.c.diff?r1=1.68&r2=1.69&f=u
http://www.dragonflybsd.org/cvsweb/src/usr.bin/make/parse.h.diff?r1=1.5&r2=1.6&f=u



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]