Date: Wed, 30 Mar 2005 15:18:58 +0000 (UTC) From: Hartmut Brandt <harti@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.bin/make cond.c cond.h globals.h parse.c parse.h Message-ID: <200503301518.j2UFIwtp042067@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200503301518.j2UFIwtp042067>