The NetBSD Project

CVS log for src/usr.bin/make/cond.c

[BACK] Up to [cvs.NetBSD.org] / src / usr.bin / make

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.67 / (download) - annotate - [select for diffs], Sat Nov 3 13:59:27 2012 UTC (21 months, 2 weeks ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, tls-maxphys-nbase, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-7-base, netbsd-7, dholland-make-base, agc-symver-base, agc-symver, HEAD
Changes since 1.66: +8 -8 lines
Diff to previous 1.66 (colored)

off-by-one

Revision 1.66 / (download) - annotate - [select for diffs], Sat Nov 3 04:51:17 2012 UTC (21 months, 2 weeks ago) by pgoyette
Branch: MAIN
Changes since 1.65: +4 -4 lines
Diff to previous 1.65 (colored)

Fix build break due to signed/unsigned comparison

Revision 1.65 / (download) - annotate - [select for diffs], Sat Nov 3 02:25:13 2012 UTC (21 months, 2 weeks ago) by sjg
Branch: MAIN
Changes since 1.64: +19 -16 lines
Diff to previous 1.64 (colored)

Allow cond_state[] to grow.
The need is rare, but real.

Reviewed by: christos

Revision 1.64 / (download) - annotate - [select for diffs], Tue Jun 12 19:21:50 2012 UTC (2 years, 2 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-pagecache-base6
Branch point for: tls-maxphys
Changes since 1.63: +10 -10 lines
Diff to previous 1.63 (colored)

Replace __dead, __unused and the various printf format attributes
with versions prefixed by MAKE_ATTR_* to avoid modifying the
implementation namespace. Make sure they are available in all places
using nonints.h to fix bootstrap on Linux.

Revision 1.63 / (download) - annotate - [select for diffs], Mon May 21 06:30:02 2012 UTC (2 years, 2 months ago) by sjg
Branch: MAIN
CVS Tags: yamt-pagecache-base5
Changes since 1.62: +4 -4 lines
Diff to previous 1.62 (colored)

In meta mode, level 0 can legitimately see > 64 nested .if's

Revision 1.62 / (download) - annotate - [select for diffs], Tue Mar 29 17:19:22 2011 UTC (3 years, 4 months ago) by sjg
Branch: MAIN
CVS Tags: yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, cherry-xenmp-base, cherry-xenmp
Branch point for: yamt-pagecache
Changes since 1.61: +7 -7 lines
Diff to previous 1.61 (colored)

CondDoExists: Avoid use after free()

Revision 1.61 / (download) - annotate - [select for diffs], Sun Feb 13 21:24:42 2011 UTC (3 years, 6 months ago) by sjg
Branch: MAIN
CVS Tags: bouyer-quota2-nbase, bouyer-quota2-base
Changes since 1.60: +10 -10 lines
Diff to previous 1.60 (colored)

Mark unused args.

Revision 1.60 / (download) - annotate - [select for diffs], Fri Nov 6 19:44:06 2009 UTC (4 years, 9 months ago) by dsl
Branch: MAIN
CVS Tags: matt-premerge-20091211, matt-mips64-premerge-20101231
Branch point for: bouyer-quota2
Changes since 1.59: +28 -24 lines
Diff to previous 1.59 (colored)

Change enum values so that TOK_FALSE is 0 and TOK_TRUE is 1.
Use this fact to remove loads of ? : clauses.

Revision 1.59 / (download) - annotate - [select for diffs], Fri Jan 30 23:07:17 2009 UTC (5 years, 6 months ago) by dsl
Branch: MAIN
CVS Tags: jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend
Changes since 1.58: +69 -68 lines
Diff to previous 1.58 (colored)

Rename all the members of 'enum Token' to TOK_FOO.
Makes it rather more obvious wherethey belong - especially since
two of them were 'True' and 'False' (and not 1 and 0 either).

Revision 1.58 / (download) - annotate - [select for diffs], Fri Jan 30 22:35:10 2009 UTC (5 years, 6 months ago) by dsl
Branch: MAIN
Changes since 1.57: +48 -36 lines
Diff to previous 1.57 (colored)

Treat .ifdef ${foo} as .if defined(${foo}) not .if "${foo}" != "".
(and similarly for the other .ifxxx).
Do comparison against "" or 0 for .if "foo" and .if <numeric> directly
instead of faking up the operator string.
Rename error: to done: and use it for more exit paths.
Elucidate and correct some comments.

Fixes problems with makefiles that do:
.for var in var_1 var_2
.ifdef ${var}
...
which used to check whether var_1 was defined - because the .ifdef saw the
literal var_1, not a variable expansion due to the way .for loop variables
were substituted.

Revision 1.57 / (download) - annotate - [select for diffs], Thu Jan 29 07:48:39 2009 UTC (5 years, 6 months ago) by enami
Branch: MAIN
Changes since 1.56: +4 -4 lines
Diff to previous 1.56 (colored)

Avoid infinite loop.

Revision 1.56 / (download) - annotate - [select for diffs], Wed Jan 28 21:38:12 2009 UTC (5 years, 6 months ago) by dsl
Branch: MAIN
Changes since 1.55: +67 -46 lines
Diff to previous 1.55 (colored)

Allow for () in the argument to .ifdef et al.
Save/restore current values of global data across expression evaluation
to give ${foo:? ...} a change of working inside another .if.

Revision 1.55 / (download) - annotate - [select for diffs], Fri Jan 23 21:58:27 2009 UTC (5 years, 6 months ago) by dsl
Branch: MAIN
Changes since 1.54: +19 -19 lines
Diff to previous 1.54 (colored)

Sprinkle some const.
In particular for Lst_Find() and Lst_FindFrom().
Remove some unneeded casts and some now-undeeded UNCONST().

Revision 1.54 / (download) - annotate - [select for diffs], Fri Jan 23 21:26:30 2009 UTC (5 years, 6 months ago) by dsl
Branch: MAIN
Changes since 1.53: +6 -6 lines
Diff to previous 1.53 (colored)

Change 'ClientData' to 'void *' so that relevant parameters can
be made 'const void *'.

Revision 1.53 / (download) - annotate - [select for diffs], Fri Jan 23 20:22:50 2009 UTC (5 years, 6 months ago) by dsl
Branch: MAIN
Changes since 1.52: +6 -40 lines
Diff to previous 1.52 (colored)

There is no point in saving the last character of a NUL-terminated
string in order to overwrite with a NUL, then restore the original value!
Remove and simplify the CondDoFoo() functions.

Revision 1.52 / (download) - annotate - [select for diffs], Sun Jan 18 17:30:19 2009 UTC (5 years, 7 months ago) by dsl
Branch: MAIN
Changes since 1.51: +7 -12 lines
Diff to previous 1.51 (colored)

Revert previous - cause grief with .ifdef (foo)
Instead return False for exists(), defined(), make() etc when the
argument has length zero.

Revision 1.51 / (download) - annotate - [select for diffs], Sun Jan 18 12:50:15 2009 UTC (5 years, 7 months ago) by dsl
Branch: MAIN
Changes since 1.50: +16 -17 lines
Diff to previous 1.50 (colored)

Only terminate a conditional function argument on ')' if we expect the
argument to be exclosed in (...).
'.if exists()' is parsed as '.ifdef exists()' and the ')' must not be
left over at the end.
I have no idea why any of my recent changes have affected this.
But pkgsrc/mk/compiler/gcc.mk (line 488) does .if exists(${FCPATH})
even though FCPATH is only set when the file exists.

Revision 1.50 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:37 2009 UTC (5 years, 7 months ago) by dsl
Branch: MAIN
Changes since 1.49: +19 -19 lines
Diff to previous 1.49 (colored)

Change 'Buffer' so that it is the actual struct, not a pointer to it.
Saves having to malloc/free a fixed size structure.
Buf_Init() now takes ptr to Buffer to initialiase.
Change Buf_Destroy() to return ptr to string when not freed.
Remove large number of casts to (Byte) and (Byte *) - 'Byte' is 'char' here.
Buf_AddByte[s] guarantees that the data is 0 termininated, so never add '\0'.
Keep 'count' not 'left' and 'inPtr', code is simplier with only one update.
Fix fallou, no functional change.

Revision 1.49 / (download) - annotate - [select for diffs], Sat Dec 13 15:19:29 2008 UTC (5 years, 8 months ago) by dsl
Branch: MAIN
Changes since 1.48: +6 -6 lines
Diff to previous 1.48 (colored)

Use NULL instead of -1 cast to the relavant type (usually via NIL).
This was a suggestion from christos - so blame him if there is a deep
reason for using -1 :-)

Revision 1.48 / (download) - annotate - [select for diffs], Sat Nov 29 14:42:21 2008 UTC (5 years, 8 months ago) by dsl
Branch: MAIN
Changes since 1.47: +22 -5 lines
Diff to previous 1.47 (colored)

Before deciding to use the default function in a .if, check whether the
token that follows the argument might be '==' or '!='.
If so then treat as a string comparison instead.
Fixes bin/15233 and bin/30967 provided some whitespace is present.
".if A==A" remains a check for defined(A==A) since make places no
restrictions on the names of variables!

Revision 1.47 / (download) - annotate - [select for diffs], Sat Nov 29 14:12:48 2008 UTC (5 years, 8 months ago) by dsl
Branch: MAIN
Changes since 1.46: +142 -190 lines
Diff to previous 1.46 (colored)

Common up parsing .if defined() make() exists() target() commands() and empty()
Add a check for the '(' following the function name, if absent then treat
as if the function name is unknown - usually leading to a syntax error.
No other functional changes intended.

Revision 1.46 / (download) - annotate - [select for diffs], Sun Nov 23 10:52:58 2008 UTC (5 years, 8 months ago) by dsl
Branch: MAIN
Changes since 1.45: +30 -40 lines
Diff to previous 1.45 (colored)

Do a string compare if the rh argument doesn't completely convert to a number
(instead of silently ignoring the chars that failed to convert).
Use strtoul() instead of homebrew copy.
Only use strtod() if strtoul() fails because the value is too large or
contains '.', 'e' or 'E'.
Do a compare for strings that start '-' or '+' as well as digits.

Revision 1.45 / (download) - annotate - [select for diffs], Sat Nov 22 23:42:16 2008 UTC (5 years, 8 months ago) by dsl
Branch: MAIN
Changes since 1.44: +4 -4 lines
Diff to previous 1.44 (colored)

Fix conversion of hex numerics in comparisons.
Broken by a fix from christos 14 years ago.

Revision 1.44 / (download) - annotate - [select for diffs], Sat Nov 22 18:47:47 2008 UTC (5 years, 8 months ago) by dsl
Branch: MAIN
Changes since 1.43: +323 -311 lines
Diff to previous 1.43 (colored)

Move two great chunks of code out of a switch statement and into
separate functions.
No functional change.

Revision 1.43 / (download) - annotate - [select for diffs], Sat Nov 22 18:05:13 2008 UTC (5 years, 8 months ago) by dsl
Branch: MAIN
Changes since 1.42: +25 -11 lines
Diff to previous 1.42 (colored)

If there is a syntax error in a .if expression then ignore the entire
conditional block (ie down to the matching .endif) instead of passing
the input line back to the normal parsing code.
Do the same if the maximum .if nesting (64 levels) is breached.

Revision 1.42 / (download) - annotate - [select for diffs], Wed Oct 29 15:37:08 2008 UTC (5 years, 9 months ago) by sjg
Branch: MAIN
CVS Tags: netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b
Changes since 1.41: +12 -3 lines
Diff to previous 1.41 (colored)

If Parse_Error is called after curFile is invalid, set it to a dummy
to avoid seg-fault.  Also the NULL filename will cause ParseVErrorInternal
to skip trying to report file and line number info.

If CondToken is called outside the context of a .if etc, variables in
the expression being parsed will already be expanded, so allow for
an unqouted number to jump us back into the compare logic.
This allows ${${SomeNumber:U42} > 0:?True:False} to work anywhere.

Job_Finish should process postCommands if it has commands or children.

Revision 1.41 / (download) - annotate - [select for diffs], Fri Feb 15 21:29:50 2008 UTC (6 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, mjf-devfs2-base, mjf-devfs2, matt-mips64-base2, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base
Changes since 1.40: +5 -6 lines
Diff to previous 1.40 (colored)

back all changes out until I fix it properly.

Revision 1.40 / (download) - annotate - [select for diffs], Thu Feb 14 22:11:20 2008 UTC (6 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: christos-broken
Changes since 1.39: +9 -8 lines
Diff to previous 1.39 (colored)

- use pid_t/size_t as appropriate instead of int.
- use %ld to print pids.
- fix a bit of lint.
- WARNS=4

Revision 1.39 / (download) - annotate - [select for diffs], Thu Feb 7 00:49:38 2008 UTC (6 years, 6 months ago) by joerg
Branch: MAIN
Changes since 1.38: +10 -5 lines
Diff to previous 1.38 (colored)

Print the complain about random stuff after empty only once.

Revision 1.38 / (download) - annotate - [select for diffs], Wed Feb 6 18:26:37 2008 UTC (6 years, 6 months ago) by joerg
Branch: MAIN
Changes since 1.37: +10 -7 lines
Diff to previous 1.37 (colored)

Warn for constructs like
.if empty xxx(foo)
which are interpreted as
.if empty(foo)
or
.if empty (foo)

This is based on rillig's commit to pkgsrc/devel/bmake, but doesn't warn
for the third case. Discussed with sjg.

Revision 1.37 / (download) - annotate - [select for diffs], Sun Feb 4 19:23:49 2007 UTC (7 years, 6 months ago) by dsl
Branch: MAIN
CVS Tags: matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf
Branch point for: matt-armv6
Changes since 1.36: +26 -12 lines
Diff to previous 1.36 (colored)

Add code to ensure that .if/.endif are correctly nested with .for/.endfor
and also include files don't have mismatched .if/.endif
It has been suggested that make used to have this test, but I can't
remember removing any code that might have performed it.

Revision 1.36 / (download) - annotate - [select for diffs], Sat Dec 2 15:50:45 2006 UTC (7 years, 8 months ago) by dsl
Branch: MAIN
Changes since 1.35: +126 -142 lines
Diff to previous 1.35 (colored)

Simplify the code that processes .if lines.
It doesn't need a two-dimensional array to remember the states of .if lines.
It would be even simpler if we didn't try to detect .else and .elif lines
that follow .else lines.
Unfortunately this isn't the code that is stupendously slow...

Revision 1.35 / (download) - annotate - [select for diffs], Fri Oct 27 21:00:18 2006 UTC (7 years, 9 months ago) by dsl
Branch: MAIN
CVS Tags: netbsd-4-base
Branch point for: netbsd-4
Changes since 1.34: +4 -4 lines
Diff to previous 1.34 (colored)

Since 'ClientData' is 'void *', nuke almost all the (ClientData) casts.

Revision 1.34 / (download) - annotate - [select for diffs], Sun Oct 15 08:38:21 2006 UTC (7 years, 10 months ago) by dsl
Branch: MAIN
Changes since 1.33: +6 -6 lines
Diff to previous 1.33 (colored)

Output all debug trace output through 'debug_file' defaulting to 'stdout'.
(Almost all the debug output went there, but some went to stderr.)
Split the parsing of -d (debug flags) out into its own routine.
Allow the output filename to be changed by specifying -dF<file> to create
a log file, or -dF+<file> to append to it. <file> may be stdout or stderr.
Also change so that -d-<flags> acts on <flags> locally but doesn't copy
them to MAKEFLAGS so they aren't inherited by child makes.
I'm not 100% happy with the command line syntax for the above, so they are
currently undocumented.

Revision 1.33 / (download) - annotate - [select for diffs], Fri Jul 28 17:07:33 2006 UTC (8 years ago) by sjg
Branch: MAIN
CVS Tags: abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.32: +7 -3 lines
Diff to previous 1.32 (colored)

Add debug output for CondDoExists() - the results can be surprising.

Revision 1.32 / (download) - annotate - [select for diffs], Sat Apr 22 18:53:32 2006 UTC (8 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: chap-midi-nbase, chap-midi-base, chap-midi
Changes since 1.31: +14 -15 lines
Diff to previous 1.31 (colored)

Coverity CID 526: Check for condTop < 0 where we decrement it, not later
when the damage is already done.

Revision 1.31 / (download) - annotate - [select for diffs], Sun Apr 2 00:15:53 2006 UTC (8 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.30: +6 -7 lines
Diff to previous 1.30 (colored)

Remove bogus debugging code I accidentally committed.

Revision 1.30 / (download) - annotate - [select for diffs], Fri Mar 31 21:58:08 2006 UTC (8 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.29: +46 -31 lines
Diff to previous 1.29 (colored)

Add some coverity allocation comments, and change the way the allocator
functions work. When they allocate storage that needs to be freed, instead
of setting a boolean, set the pointer to be freed. Plug some more memory
leaks found by inspection.

Revision 1.29 / (download) - annotate - [select for diffs], Mon Aug 8 16:42:54 2005 UTC (9 years ago) by christos
Branch: MAIN
Changes since 1.28: +9 -9 lines
Diff to previous 1.28 (colored)

From Max Okumoto:
- Remove casts to NULL.
- Remove space between cast and object.

Revision 1.28 / (download) - annotate - [select for diffs], Mon Jul 25 22:55:58 2005 UTC (9 years ago) by christos
Branch: MAIN
Changes since 1.27: +5 -5 lines
Diff to previous 1.27 (colored)

Whitespace KNF cleanup from Max Okumoto

Revision 1.27 / (download) - annotate - [select for diffs], Thu Jun 2 02:03:19 2005 UTC (9 years, 2 months ago) by lukem
Branch: MAIN
Changes since 1.26: +4 -3 lines
Diff to previous 1.26 (colored)

appease gcc -Wuninitialized

Revision 1.26 / (download) - annotate - [select for diffs], Tue Mar 1 04:34:55 2005 UTC (9 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3
Changes since 1.25: +18 -12 lines
Diff to previous 1.25 (colored)

When parsing conditional tokens, make sure that the token is followed by
a non-alpha character, so that .elsefoo is not parsed as .else leading
to confusion later.

Revision 1.25 / (download) - annotate - [select for diffs], Wed Feb 16 15:11:52 2005 UTC (9 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.24: +17 -17 lines
Diff to previous 1.24 (colored)

PR/29203, PR/29204: Max Okumoto: KNF changes to make [no functional changes]

Revision 1.24 / (download) - annotate - [select for diffs], Fri May 7 00:04:38 2004 UTC (10 years, 3 months ago) by ross
Branch: MAIN
Changes since 1.23: +4 -4 lines
Diff to previous 1.23 (colored)

Simplify build, no functional changes.

Instead of adding MAKE_BOOTSTRAP for hosted environments, i.e., when
you want things simple, instead add MAKE_NATIVE to get those hugely
important features like __RCSID().

It's now possible to build make on some hosts with: cc *.c */*.c

Revision 1.23 / (download) - annotate - [select for diffs], Tue Apr 13 16:06:23 2004 UTC (10 years, 4 months ago) by sjg
Branch: MAIN
Changes since 1.22: +144 -136 lines
Diff to previous 1.22 (colored)

Allow "string" and "${varspec}" on lhs of conditionals.
This makes it possible to use expressions like
${("${LIST:Msomething"}):?present:absent}
it also makes treatment of lhs and rhs more consistent, and
makes CondToken easier to read.

Update unit-test/cond1 to test new features.

Revision 1.22 / (download) - annotate - [select for diffs], Thu Apr 8 07:24:26 2004 UTC (10 years, 4 months ago) by sjg
Branch: MAIN
Changes since 1.21: +17 -4 lines
Diff to previous 1.21 (colored)

Revised patch for catching extraneous .else's
We actually need to tack condTop and skipIfLevel.
Bump MAXIF while here.
Enhance the unit-test for conditionals to exercise more code.

PR: 24420

Revision 1.21 / (download) - annotate - [select for diffs], Thu Apr 8 01:35:33 2004 UTC (10 years, 4 months ago) by sjg
Branch: MAIN
Changes since 1.20: +3 -11 lines
Diff to previous 1.20 (colored)

Back out previous patch for now.
Breaks bsd.obj.mk

Revision 1.20 / (download) - annotate - [select for diffs], Thu Apr 8 00:59:01 2004 UTC (10 years, 4 months ago) by sjg
Branch: MAIN
Changes since 1.19: +11 -3 lines
Diff to previous 1.19 (colored)

Add check for extraneous .else's - based on patch from Arne H. Juul
in PR/24420.
Add a unit-test for conditionals.
Also in the unit-test makefile strip any .CURDIR in output.

PR: 24420

Revision 1.19 / (download) - annotate - [select for diffs], Tue Jan 6 01:18:52 2004 UTC (10 years, 7 months ago) by sjg
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.18: +21 -18 lines
Diff to previous 1.18 (colored)

Handle more complex conditional expressions.
CondCvtArg now returns NULL if it consumed all input, or a pointer
to any left overs.

Revision 1.18 / (download) - annotate - [select for diffs], Sat Sep 6 06:52:08 2003 UTC (10 years, 11 months ago) by sjg
Branch: MAIN
Changes since 1.17: +4 -4 lines
Diff to previous 1.17 (colored)

Make empty() consider an undefined variable as empty,
rather than throw a syntax error.

Revision 1.17 / (download) - annotate - [select for diffs], Thu Aug 7 11:14:49 2003 UTC (11 years ago) by agc
Branch: MAIN
Changes since 1.16: +34 -3 lines
Diff to previous 1.16 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22365, verified by myself.

Revision 1.16 / (download) - annotate - [select for diffs], Mon Jul 14 18:19:11 2003 UTC (11 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.15: +8 -8 lines
Diff to previous 1.15 (colored)

Pass WARNS=3

Revision 1.15 / (download) - annotate - [select for diffs], Thu Apr 17 15:57:52 2003 UTC (11 years, 4 months ago) by sjg
Branch: MAIN
Changes since 1.14: +3 -4 lines
Diff to previous 1.14 (colored)

math.h is not needed and including it introduces uncessary dependencies
on some systems.

PR: 21204

Revision 1.14 / (download) - annotate - [select for diffs], Mon Dec 30 18:03:09 2002 UTC (11 years, 7 months ago) by sjg
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.13: +4 -3 lines
Diff to previous 1.13 (colored)

Treat an unquoted '#' as end of line when parsing conditionals.
This ensures that comments are ok at the end of line.

PR: 19596
Reviewed by: christos

Revision 1.13 / (download) - annotate - [select for diffs], Sat Jun 15 18:24:56 2002 UTC (12 years, 2 months ago) by wiz
Branch: MAIN
Changes since 1.12: +48 -67 lines
Diff to previous 1.12 (colored)

Remove !__STDC__ stuff, de-__P(), ANSIfy, and de-register.

Revision 1.12 / (download) - annotate - [select for diffs], Sun Jan 14 20:44:26 2001 UTC (13 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6
Changes since 1.11: +52 -3 lines
Diff to previous 1.11 (colored)

Provide a new .if commands(<target>) primitive that returns true if the
target has commands associated with it.

Revision 1.11 / (download) - annotate - [select for diffs], Fri Sep 18 20:35:11 1998 UTC (15 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5, netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, minoura-xpg4dl-base, minoura-xpg4dl, comdex-fall-1999-base, comdex-fall-1999
Changes since 1.10: +41 -37 lines
Diff to previous 1.10 (colored)

Fix conditional variable expression parsing (reported by cgd)

Revision 1.10 / (download) - annotate - [select for diffs], Wed Apr 1 14:18:10 1998 UTC (16 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.9: +67 -33 lines
Diff to previous 1.9 (colored)

Add conditional variable evaluation from Alistair Crooks.

Revision 1.9 / (download) - annotate - [select for diffs], Sun Sep 28 03:31:01 1997 UTC (16 years, 10 months ago) by lukem
Branch: MAIN
CVS Tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH001, netbsd-1-3-BETA
Branch point for: netbsd-1-3
Changes since 1.8: +6 -2 lines
Diff to previous 1.8 (colored)

wrap #include <sys/cdefs.h>, __RCSID(...) stuff in #ifndef MAKE_BOOTSTRAP

Revision 1.8 / (download) - annotate - [select for diffs], Tue Jul 1 21:17:14 1997 UTC (17 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.7: +3 -2 lines
Diff to previous 1.7 (colored)

Add WARNS=1
RCSID police

Revision 1.7 / (download) - annotate - [select for diffs], Wed Nov 6 17:59:02 1996 UTC (17 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.6: +27 -25 lines
Diff to previous 1.6 (colored)

- Merge in FreeBSD and Lite2 changes.
- Fix bug where a non-archive target with a .a suffix would always
  be considered to be out of date, since it does not have a TOC.

Revision 1.6 / (download) - annotate - [select for diffs], Wed Jun 14 15:18:58 1995 UTC (19 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-BETA, netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Branch point for: netbsd-1-2
Changes since 1.5: +7 -2 lines
Diff to previous 1.5 (colored)

- $NetBSD$ rcsids
- Fixed so that .[A-Z]* targets that do not match keywords are ignored as
  Posix mandates
- Added .PHONY target keyword

Revision 1.5 / (download) - annotate - [select for diffs], Mon Jun 6 22:45:23 1994 UTC (20 years, 2 months ago) by jtc
Branch: MAIN
CVS Tags: netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0, netbsd-1-0
Changes since 1.4: +20 -15 lines
Diff to previous 1.4 (colored)

Fixes from Christos Zoulas, who used purify, objectcenter and testcenter
to find memory leaks and illegal memory accesses.

Revision 1.4 / (download) - annotate - [select for diffs], Sat Mar 5 00:34:39 1994 UTC (20 years, 5 months ago) by cgd
Branch: MAIN
Changes since 1.3: +110 -73 lines
Diff to previous 1.3 (colored)

fixes/improvements from Christos Zoulas <christos@deshaw.com>.

Revision 1.3 / (download) - annotate - [select for diffs], Thu Jan 13 21:01:45 1994 UTC (20 years, 7 months ago) by jtc
Branch: MAIN
Changes since 1.2: +3 -1 lines
Diff to previous 1.2 (colored)

Include appropriate header files to bring prototypes into scope.

Revision 1.2 / (download) - annotate - [select for diffs], Sun Aug 1 18:11:52 1993 UTC (21 years ago) by mycroft
Branch: MAIN
Changes since 1.1: +2 -1 lines
Diff to previous 1.1 (colored)

Add RCS identifiers.

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (21 years, 5 months ago) by cgd
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>