summaryrefslogtreecommitdiff
path: root/usr.bin/make/cond.c
AgeCommit message (Expand)Author
2009-11-06Change enum values so that TOK_FALSE is 0 and TOK_TRUE is 1.dsl
2009-01-30Rename all the members of 'enum Token' to TOK_FOO.dsl
2009-01-30Treat .ifdef ${foo} as .if defined(${foo}) not .if "${foo}" != "".dsl
2009-01-29Avoid infinite loop.enami
2009-01-28Allow for () in the argument to .ifdef et al.dsl
2009-01-23Sprinkle some const.dsl
2009-01-23Change 'ClientData' to 'void *' so that relevant parameters candsl
2009-01-23There is no point in saving the last character of a NUL-terminateddsl
2009-01-18Revert previous - cause grief with .ifdef (foo)dsl
2009-01-18Only terminate a conditional function argument on ')' if we expect thedsl
2009-01-17Change 'Buffer' so that it is the actual struct, not a pointer to it.dsl
2008-12-13Use NULL instead of -1 cast to the relavant type (usually via NIL).dsl
2008-11-29Before deciding to use the default function in a .if, check whether thedsl
2008-11-29Common up parsing .if defined() make() exists() target() commands() and empty()dsl
2008-11-23Do a string compare if the rh argument doesn't completely convert to a numberdsl
2008-11-22Fix conversion of hex numerics in comparisons.dsl
2008-11-22Move two great chunks of code out of a switch statement and intodsl
2008-11-22If there is a syntax error in a .if expression then ignore the entiredsl
2008-10-29If Parse_Error is called after curFile is invalid, set it to a dummysjg
2008-02-15back all changes out until I fix it properly.christos
2008-02-14- use pid_t/size_t as appropriate instead of int.christos
2008-02-07Print the complain about random stuff after empty only once.joerg
2008-02-06Warn for constructs likejoerg
2007-02-04Add code to ensure that .if/.endif are correctly nested with .for/.endfordsl
2006-12-02Simplify the code that processes .if lines.dsl
2006-10-27Since 'ClientData' is 'void *', nuke almost all the (ClientData) casts.dsl
2006-10-15Output all debug trace output through 'debug_file' defaulting to 'stdout'.dsl
2006-07-28Add debug output for CondDoExists() - the results can be surprising.sjg
2006-04-22Coverity CID 526: Check for condTop < 0 where we decrement it, not laterchristos
2006-04-02Remove bogus debugging code I accidentally committed.christos
2006-03-31Add some coverity allocation comments, and change the way the allocatorchristos
2005-08-08From Max Okumoto:christos
2005-07-25Whitespace KNF cleanup from Max Okumotochristos
2005-06-02appease gcc -Wuninitializedlukem
2005-03-01When parsing conditional tokens, make sure that the token is followed bychristos
2005-02-16PR/29203, PR/29204: Max Okumoto: KNF changes to make [no functional changes]christos
2004-05-07Simplify build, no functional changes.ross
2004-04-13Allow "string" and "${varspec}" on lhs of conditionals.sjg
2004-04-08Revised patch for catching extraneous .else'ssjg
2004-04-08Back out previous patch for now.sjg
2004-04-08Add check for extraneous .else's - based on patch from Arne H. Juulsjg
2004-01-06Handle more complex conditional expressions.sjg
2003-09-06Make empty() consider an undefined variable as empty,sjg
2003-08-07Move UCB-licensed code from 4-clause to 3-clause licence.agc
2003-07-14Pass WARNS=3christos
2003-04-17math.h is not needed and including it introduces uncessary dependenciessjg
2002-12-30Treat an unquoted '#' as end of line when parsing conditionals.sjg
2002-06-15Remove !__STDC__ stuff, de-__P(), ANSIfy, and de-register.wiz
2001-01-14Provide a new .if commands(<target>) primitive that returns true if thechristos
1998-09-18Fix conditional variable expression parsing (reported by cgd)christos