#
267654 |
|
19-Jun-2014 |
gjb |
Copy stable/9 to releng/9.3 as part of the 9.3-RELEASE cycle.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
#
225736 |
|
22-Sep-2011 |
kensmith |
Copy head to stable/9 as part of 9.0-RELEASE release cycle.
Approved by: re (implicit)
|
#
146625 |
|
25-May-2005 |
harti |
Under certain conditions the condition parser would go one past end of the string. Until now this caused no harm, because the buffer code used to tack two NULs onto buffers. With the new, soon to come, parsing code this isn't the case anymore in all cases, so fix this.
|
#
146580 |
|
24-May-2005 |
harti |
Get rid of the third argument to Var_Value() the pointer it pointed to has always been set to NULL for some time now.
Obtained from: DragonFlyBSD
|
#
146177 |
|
13-May-2005 |
harti |
Move the Boolean and ReturnStatus stuff from sprite.h to util.h and get rid of sprite.h.
Obtained from: DragonFlyBSD
|
#
146154 |
|
12-May-2005 |
harti |
Use a variable initialized to a string instead of the string directly to get rid of a const warning.
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.244)
|
#
146153 |
|
12-May-2005 |
harti |
Move code in CondToken() and get rid of a goto.
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.243)
|
#
146152 |
|
12-May-2005 |
harti |
Remove a useless else and un-indent the following code.
|
#
145679 |
|
29-Apr-2005 |
harti |
Implement a pseudo-target .WARN that allows toggeling the warning flags for the current make. This does not override flags specified on the command line and these settings are not passed to sub-makes.
|
#
145627 |
|
28-Apr-2005 |
harti |
Introduce a flag to enable extended warnings (-x) and make them off by default. This should fix the problem of getting lots of errors when building with an up-to-date make and old *.mk files.
|
#
144894 |
|
11-Apr-2005 |
harti |
Rework the directive parsing code. Instead of using a lot of strcmp()s on every line that starts with a dot use a minimal perfect hash function and a single strcmp() on the first word after the dot to find out whether it is really a directive call and, if yes, which one. Then directly dispatch to a handler function for that directive (or fall through to the dependency handling code). This makes the directive parse a little bit more strict about the syntax: the directive word must be followed by a character that is not alphanumerical and not an underline (making .undefFOO illegal); .endif and .else can only be followed by comments.
|
#
144473 |
|
01-Apr-2005 |
harti |
Style: fix indentation.
|
#
144341 |
|
30-Mar-2005 |
harti |
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.
|
#
144020 |
|
23-Mar-2005 |
harti |
Make paths an explicite datatype instead of using the generic Lst. A Path is now a TAILQ of PathElements each of which just points to a reference counted directory. Rename all functions dealing with Paths from the Dir_ prefix to a Path_ prefix.
|
#
143959 |
|
22-Mar-2005 |
harti |
Simplify buffer access by using Buf_Data() and Buf_Peel() where appropriate.
Patch: 7.147-7.151
Submitted by: Max Okumoto <okumoto@ucsd.edu>
|
#
143810 |
|
18-Mar-2005 |
harti |
Replace Lst_Find calls with LST_FOREACH loops. This helps in constification und simplifies the code because the one-liner predicates can be inlined into the code.
|
#
142937 |
|
01-Mar-2005 |
harti |
Make sure the length variable is initialized to 0 before passing it to Var_Parse().
Patch: 7.85
Submitted by: Max Okumoto <okumoto@ucsd.edu>
|
#
141436 |
|
07-Feb-2005 |
harti |
Invent a Buf_Append function to append a NUL-terminated string and use it thoughout the code.
Submitted by: Max Okumoto <okumoto@ucsd.edu>
|
#
141255 |
|
04-Feb-2005 |
harti |
Style: line up with tabulators.
|
#
141254 |
|
04-Feb-2005 |
harti |
Use a typedef for the conditional handler function so that declaring pointers to these functions is easier.
Submitted by: Max Okumoto <okumoto@ucsd.edu>
|
#
141192 |
|
03-Feb-2005 |
harti |
Constify an argument to a function.
Submitted by: Max Okumoto <okumoto@ucsd.edu>
|
#
141133 |
|
02-Feb-2005 |
harti |
Convert several typedefs from beeing pointers to structs to be the structs itself. This will ease constification (think of what 'const Ptr foo' means if Ptr is a pointer to a struct).
Submitted by: Max Okumoto <okumoto@ucsd.edu>
|
#
141104 |
|
01-Feb-2005 |
harti |
Clean up include files and file including. Split nonints.h into pieces that get included just where they are needed. All headers include the headers that they need to compile (just with an empty .c file). Sort includes alphabetically where apropriate and fix some duplicate commenting for struct Job, struct GNode and struct Shell by removing one version and inlining the comments into the structure declaration (the comments have been somewhat outdated).
This patch does not contain functional changes (checked with md5).
Submitted by: Max Okumoto <okumoto@ucsd.edu>
|
#
138916 |
|
16-Dec-2004 |
harti |
Instead of dynamically allocating list heads allocated them statically now that their size is only two pointers. This eliminates a lot of calls to Lst_Init and from there to malloc together with many calls to Lst_Destroy (in places where the list is obviously empty). This also reduces the chance to leave a list uninitilized so we can remove more NULL pointer checks and probably eliminates a couple of memory leaks.
|
#
138561 |
|
08-Dec-2004 |
harti |
Constify the arguments to the list compare function. This temporarily requires to make a copy of the filename in ReadMakefile and to duplicate two small functions in suff.c. This hopefully will go away when everything is constified.
Submitted by: Max Okumoto <okumoto@ucsd.edu> (partly)
|
#
138346 |
|
03-Dec-2004 |
harti |
Fix breakage introduced on 64-bit platforms with my last commit. Need to change to size_t in a couple of other places too.
|
#
138264 |
|
01-Dec-2004 |
harti |
Style: remove a lot of unnecessary casts, add some and spell the null pointer constant as NULL.
Checked by: diff -r on the object files before and after
|
#
138232 |
|
30-Nov-2004 |
harti |
Stylification: missing spaces, extra space after function names, casts and the sizeof operator, missing empty lines, void casts, extra empty lines.
Checked by: diff on make *.o lst.lib/*.o
Submitted by: Max Okumoto <okumoto@soe.ucsd.edu> (partly)
|
#
132439 |
|
20-Jul-2004 |
harti |
Improve make's diagnostic of mistmatched .if-.endif. This patch is slightly different from the patch in the PR. The problem is, that make handles .if clauses inside false .if clauses simply by counting them - it doesn't put them onto the conditional stack, nor even parses them so we need an extra line number stack for these ifs.
PR: bin/61257 Submitted by: Mikhail Teterin <mi@aldan.algebra.com>
|
#
119818 |
|
07-Sep-2003 |
imp |
Keep up with minor changes to NetBSD. Consider a variable empty when not define.
Obtained From: NetBSD (rev 1.18; sjg)
|
#
117226 |
|
04-Jul-2003 |
ru |
Fixed broken arithmetic expression parser.
Reminded by: bde In memory of: alane
|
#
105826 |
|
23-Oct-2002 |
jmallett |
Remove efree(), it isn't used consistently enough to even pretend that it might help on the systems it could possibly be used as a bandaid for. In fact, the only thing it's useful for is instrumenting free(3) calls, and in that capacity, it's better served as a local patch, than a public wrapper.
|
#
104696 |
|
09-Oct-2002 |
jmallett |
Convert make(1) to use ANSI style function declarations. Variable documentation already adequatedly existed in the description in most cases. Where it did not, it was added. If no documentation existed beforehand, then none was added. Some unused dummies for use in the traversal functions were marked as __unused during the conversion. Occasionally, local style fixes were applied to lines already being modified or influenced.
Now make(1) should always build with WARNS=3.
|
#
104108 |
|
28-Sep-2002 |
jmallett |
Add empty default cases where they should be, remove non-local execution stuff in compat.c which doesn't even have preprocessor-conditional-hidden support code, and add a debugging statement where we might end up with a nil list somehow, but where I doubt it.
First confirmed userland kill for Flexelint.
Sponsored by: Bright Path Solutions
|
#
103545 |
|
18-Sep-2002 |
jmallett |
Make the DEBUGF() macro portable by (ugh) adding a Debug() function, which is merely printf() but to stderr. This takes care of the caveat which lead to the use of a vararg macro -- getting everything to stderr.
|
#
103508 |
|
17-Sep-2002 |
jmallett |
Move common use of if (DEBUG(FOO)) printf... to DEBUGF(FOO, ...), using variable length arguments to a macro. Bump version as this makes DEBUG statements *always* go to stderr rather than sometimes stdout. There are a few stragglers, which I will take care of as soon as I can. Mostly these relate to the need-for-death-of some of the remote job code.
Nearby stylistic nits and XXX added/fixed where appropriate.
|
#
98500 |
|
20-Jun-2002 |
jmallett |
Diff reduction for great justice against NetBSD, cast to unsigned char when passing an argument to isspace(3).
|
#
94589 |
|
13-Apr-2002 |
obrien |
Fix copyrights, and undo SCS ID damage.
|
#
94587 |
|
13-Apr-2002 |
obrien |
Update SCM ID method.
|
#
94584 |
|
13-Apr-2002 |
obrien |
De'register.
|
#
92921 |
|
21-Mar-2002 |
imp |
remove __P
|
#
69531 |
|
02-Dec-2000 |
will |
There's also no point in #typedef'ing void/char pointers. Accordingly, rip out ClientData/Address pointers and use standard types.
Obtained from: OpenBSD
|
#
69527 |
|
02-Dec-2000 |
will |
There's no reason to use fancy forms of NULL. Replace all instances of NIL, NILLST, NILLGNODE, etc. with NULL.
Obtained from: OpenBSD
|
#
62833 |
|
09-Jul-2000 |
wsanchez |
Use __RCSID()
|
#
51150 |
|
11-Sep-1999 |
hoek |
Unduplicate IDs from comments, do $Id -> $FreeBSD$ (submitted-by: bde)
|
#
50477 |
|
27-Aug-1999 |
peter |
$Id$ -> $FreeBSD$
|
#
49938 |
|
16-Aug-1999 |
hoek |
Merge style- and trivial- only changes from OpenBSD (dated 1999/07/29-19:55+1).
Obtained from: OpenBSD, sometimes indirected from NetBSD; myself
|
#
49658 |
|
12-Aug-1999 |
hoek |
Bugfix to last commit: Correctly intuit when an lhs is a string vs. number.
|
#
47494 |
|
25-May-1999 |
hoek |
Handle ".if ${T} > 1 || ${T} < 3" and friends correctly.
Reported-by: asami
|
#
23006 |
|
22-Feb-1997 |
peter |
Revert $FreeBSD$ to $Id$
|
#
21673 |
|
14-Jan-1997 |
jkh |
Make the long-awaited change from $Id$ to $FreeBSD$
This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long.
Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
|
#
18804 |
|
08-Oct-1996 |
steve |
O' to be bitten by CVS. Cleanup after import of Christos' version of make(1) and add Id's.
Set straight by: Bruce Evans and Peter Wemm :)
|
#
18730 |
|
06-Oct-1996 |
steve |
Merge in NetBSD's changes to make(1). Changes include:
- Add the .PHONY, .PARALLEL, and .WAIT directives - Added the -B and -m commandline flags - misc. man page cleanups - numerous job-related enhancements - removed unused header file (bit.h) - add util.c for functions not found in other envs. - and a few coordinated whitespace changes
Special thanks to Christos Zoulas <christos@netbsd.org> for help in the merge. A 'diff -ur' between Net and FreeBSD now only contains sccsid-related diffs. :)
Obtained from: NetBSD, christos@netbsd.org, and me
|
#
8874 |
|
30-May-1995 |
rgrimes |
Remove trailing whitespace.
|
#
5814 |
|
23-Jan-1995 |
jkh |
Bring in a number of changes from NetBSD's make, fixing quite a few problems in the process:
1. Quoting should work properly now. In particular, Chet's reported bash make problem has gone away. 2. A lot of memory that just wasn't being free'd after use is now freed. This should cause make to take up a LOT less memory when dealing with archive targets. 3. Give proper credit to Adam de Boor in a number of files. Obtained from: NetBSD (and Adam de Boor)
|
#
1591 |
|
27-May-1994 |
rgrimes |
This commit was generated by cvs2svn to compensate for changes in r1590, which included commits to RCS files with non-trunk default branches.
|
#
1590 |
|
27-May-1994 |
rgrimes |
BSD 4.4 Lite Usr.bin Sources
|