summaryrefslogtreecommitdiff
path: root/usr.bin/make/cond.c
AgeCommit message (Expand)Author
2017-04-16Replace dead conditional by assert.riastradh
2016-02-18Collapse the 3 boolean parameter to 1 flags parameter. No functional change.christos
2016-01-17remove free NULL checks (Tilman Sauerbeck)christos
2016-01-09Preserve $$ in := assignments..christos
2015-12-02Fix evaluation of defined(FOO) and ${FOO} > 0sjg
2015-11-30Avoid accessing beyond end of empty string.sjg
2015-10-11Add Boolean wantit to Var_Parse and Var_Substsjg
2015-05-05When evaluating condtionals from .if we want to requiresjg
2012-11-03off-by-onechristos
2012-11-03Fix build break due to signed/unsigned comparisonpgoyette
2012-11-03Allow cond_state[] to grow.sjg
2012-06-12Replace __dead, __unused and the various printf format attributesjoerg
2012-05-21In meta mode, level 0 can legitimately see > 64 nested .if'ssjg
2011-03-29CondDoExists: Avoid use after free()sjg
2011-02-13Mark unused args.sjg
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