christos
81b135acdf
From Max Okumoto:
...
- Remove casts to NULL.
- Remove space between cast and object.
2005-08-08 16:42:54 +00:00
christos
3692d77541
Whitespace KNF cleanup from Max Okumoto
2005-07-25 22:55:58 +00:00
lukem
a3b235bbd2
appease gcc -Wuninitialized
2005-06-02 01:53:01 +00:00
christos
13481917e0
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.
2005-03-01 04:34:55 +00:00
christos
63fca13660
PR/29203, PR/29204: Max Okumoto: KNF changes to make [no functional changes]
2005-02-16 15:11:52 +00:00
ross
42dbdbd46a
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
2004-05-07 00:04:38 +00:00
sjg
3c6b696332
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.
2004-04-13 16:06:23 +00:00
sjg
df910819de
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
2004-04-08 07:24:26 +00:00
sjg
ab4f0bc644
Back out previous patch for now.
...
Breaks bsd.obj.mk
2004-04-08 01:35:33 +00:00
sjg
8bef426d13
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
2004-04-08 00:59:01 +00:00
sjg
345311007d
Handle more complex conditional expressions.
...
CondCvtArg now returns NULL if it consumed all input, or a pointer
to any left overs.
2004-01-06 01:18:52 +00:00
sjg
435f6fef84
Make empty() consider an undefined variable as empty,
...
rather than throw a syntax error.
2003-09-06 06:52:08 +00:00
agc
89aaa1bb64
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
christos
6a7d20bb25
Pass WARNS=3
2003-07-14 18:19:11 +00:00
sjg
414c86b6d1
math.h is not needed and including it introduces uncessary dependencies
...
on some systems.
PR: 21204
2003-04-17 15:57:52 +00:00
sjg
32a3b241bf
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
2002-12-30 18:03:09 +00:00
wiz
86ebbc3a0e
Remove !__STDC__ stuff, de-__P(), ANSIfy, and de-register.
2002-06-15 18:24:55 +00:00
christos
a73d3d97ca
Provide a new .if commands(<target>) primitive that returns true if the
...
target has commands associated with it.
2001-01-14 20:44:26 +00:00
christos
82ee767393
Fix conditional variable expression parsing (reported by cgd)
1998-09-18 20:35:11 +00:00
christos
84e525a801
Add conditional variable evaluation from Alistair Crooks.
1998-04-01 14:18:10 +00:00
lukem
2ba9e97765
wrap #include <sys/cdefs.h>, __RCSID(...) stuff in #ifndef MAKE_BOOTSTRAP
1997-09-28 03:30:58 +00:00
christos
254d64f064
Add WARNS=1
...
RCSID police
1997-07-01 21:17:00 +00:00
christos
aa49881371
- 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.
1996-11-06 17:58:58 +00:00
christos
b5f782e810
- $NetBSD$ rcsids
...
- Fixed so that .[A-Z]* targets that do not match keywords are ignored as
Posix mandates
- Added .PHONY target keyword
1995-06-14 15:18:37 +00:00
jtc
26a8972fd7
Fixes from Christos Zoulas, who used purify, objectcenter and testcenter
...
to find memory leaks and illegal memory accesses.
1994-06-06 22:45:17 +00:00
cgd
3db59563ee
fixes/improvements from Christos Zoulas <christos@deshaw.com>.
1994-03-05 00:34:29 +00:00
jtc
e890eb6415
Include appropriate header files to bring prototypes into scope.
1994-01-13 21:01:40 +00:00
mycroft
e9d867ef50
Add RCS identifiers.
1993-08-01 17:54:45 +00:00
cgd
61f282557f
initial import of 386bsd-0.1 sources
1993-03-21 09:45:37 +00:00