cvs commit: src/usr.bin/make src/usr.bin/make/lst.lib

Max Okumoto okumoto at crater.dragonflybsd.org
Fri Dec 17 00:02:11 PST 2004


okumoto     2004/12/17 00:01:40 PST

DragonFly src repository

  Modified files:
    usr.bin/make         lst.h suff.c 
    usr.bin/make/lst.lib lstConcat.c lstDeQueue.c lstDestroy.c 
                         lstRemove.c 
  Log:
  o Don't free the second list in Lst_Concat for LST_CONCLINK; free
    it in the caller instead.
  
  o Remove return value from Lst_Concat. None of the callers ever
    checked it. Remove stuff that was needed for circular lists.
  
  o Don't check the return code from Lst_Remove. There is no way that
    the list's first element is not on the list.
  
  o No caller checks the return code from Lst_Remove, so don't return
    one.  Simplify the algorithm now that circular lists are gone.
  
  o Now that circular lists are gone remove stuff for them. Simplify
    somewhat so that we can remove a local variable.
  
  Taken-from: FreeBSD
  Author: harti
  
  Revision  Changes    Path
  1.16      +2 -2      src/usr.bin/make/lst.h
  1.21      +3 -0      src/usr.bin/make/suff.c
  1.9       +19 -38    src/usr.bin/make/lst.lib/lstConcat.c
  1.8       +2 -5      src/usr.bin/make/lst.lib/lstDeQueue.c
  1.11      +6 -10     src/usr.bin/make/lst.lib/lstDestroy.c
  1.10      +11 -29    src/usr.bin/make/lst.lib/lstRemove.c


http://www.dragonflybsd.org/cvsweb/src/usr.bin/make/lst.h.diff?r1=1.15&r2=1.16&f=u
http://www.dragonflybsd.org/cvsweb/src/usr.bin/make/suff.c.diff?r1=1.20&r2=1.21&f=u
http://www.dragonflybsd.org/cvsweb/src/usr.bin/make/lst.lib/lstConcat.c.diff?r1=1.8&r2=1.9&f=u
http://www.dragonflybsd.org/cvsweb/src/usr.bin/make/lst.lib/lstDeQueue.c.diff?r1=1.7&r2=1.8&f=u
http://www.dragonflybsd.org/cvsweb/src/usr.bin/make/lst.lib/lstDestroy.c.diff?r1=1.10&r2=1.11&f=u
http://www.dragonflybsd.org/cvsweb/src/usr.bin/make/lst.lib/lstRemove.c.diff?r1=1.9&r2=1.10&f=u





More information about the Commits mailing list