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

Hartmut Brandt harti at FreeBSD.org
Wed Mar 30 07:18:59 PST 2005


harti       2005-03-30 15:18:58 UTC

  FreeBSD src repository

  Modified files:
    usr.bin/make         cond.c cond.h globals.h parse.c parse.h 
  Log:
  Make the structure for handling the input stack local to the parse
  module. The only module accessing it (the current line number) was the
  condition module, so pass the current line number as a function argument.
  Centralize the pushing of new input sources into one function
  ParsePushInput() and rename the function handling the popping from ParseEOF()
  to ParsePopInput(). Make the entire thing a little bit clearer, by holding
  the current input source in the top element of the stack instead of
  using extra variables for this. Use a type-safe intrusive list for the
  input stack.
  
  Revision  Changes    Path
  1.44      +1 -3      src/usr.bin/make/cond.c
  1.2       +1 -1      src/usr.bin/make/cond.h
  1.3       +0 -3      src/usr.bin/make/globals.h
  1.91      +124 -143  src/usr.bin/make/parse.c
  1.2       +1 -15     src/usr.bin/make/parse.h


More information about the cvs-src mailing list