#
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)
|
#
187475 |
|
20-Jan-2009 |
rdivacky |
Remove inlining of functions that are used mostly in different object files. This gets rid of gnu89 style inlining. Also silence gcc by assigning two variables NULL. This lets use to remove NO_WERROR.
Approved by: kib (mentor) Approved by: harti
|
#
186558 |
|
29-Dec-2008 |
obrien |
Consistently use Var_SetGlobal().
|
#
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
|
#
146184 |
|
13-May-2005 |
harti |
Use the print_flags function to print the OP_ flags of a target. Give the function one more argument to decide whether it should print the flags like a C-expression or just space-delimited.
|
#
146149 |
|
12-May-2005 |
harti |
Cleanup SuffFindArchDeps() to get rid of two const-warnings.
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.240)
|
#
146027 |
|
09-May-2005 |
harti |
Split Var_Subst() into two functions: Var_SubstOnly() which substitutes only one variable and Var_Subst() which substitutes all. Split out the test whether a variable should not be expanded into match_var(). Make access to the input string consistently using str[]. Remove two unused functions: Var_GetTail() and Var_GetHead().
Patches: 7.184-7.189 Submitted by: Max Okumoto <okumoto@ucsd.edu>
|
#
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>
|
#
143911 |
|
21-Mar-2005 |
harti |
Replace calls to Lst_Find with either appropriate LST_FOREACH macros plus predicate inlining or a special purpose function with takes and returns the correct types.
|
#
143807 |
|
18-Mar-2005 |
harti |
Fix a bug in matching suffixes. Under certain circumstances the code would access memory before the beginning of the string to match (the suffix match starts at the end of both the string and the suffix and proceedes to the begin until either the start of the suffix is hit or the character does not match). This could lead to a memcpy copying into random memory. Fix this by checking the length of the string to match too and replacing the Lst_Find calls with LST_FOREACH loops (last part by me).
Submitted by: Matt Dillon <dillon@apollo.backplane.com> (in principle)
|
#
143600 |
|
14-Mar-2005 |
harti |
Get rid of another Lst_ForEach in favour of LST_FOREACH. Get rid of the now unused struct LstSrc and collapes two functions into one.
|
#
143567 |
|
14-Mar-2005 |
harti |
Move the creation of a Src structure into its own function.
|
#
143556 |
|
14-Mar-2005 |
harti |
Convert a couple of other uses of Lst_ForEach to LST_FOREACH and simplify code.
|
#
143414 |
|
11-Mar-2005 |
harti |
Simplify the print routines by using LST_FOREACH instead of Lst_ForEach and inlining the small printing utility functions. Create a function that can be used to produce printable representations of flag words.
|
#
143411 |
|
11-Mar-2005 |
harti |
Remove the leading underscore from structure tags. All identifiers with a leading underscore are in the implementation namespace.
|
#
143407 |
|
11-Mar-2005 |
harti |
Style: Fix indentation.
|
#
143372 |
|
10-Mar-2005 |
harti |
Reorganize Suff_EndTransform to be called only for nodes for which it is needed (transforms).
|
#
143353 |
|
10-Mar-2005 |
harti |
Style: fix function style before working on it (mainly intendation).
|
#
143327 |
|
09-Mar-2005 |
harti |
Split SuffExpandChildren into three functions: one that skips variables and expands archive specifications, one that expands wild cards and a driver that loops over the children list and expands each child if necessary replacing it with it's expansions.
|
#
143312 |
|
09-Mar-2005 |
harti |
Var_Subst() cannot return NULL so there is no reason to check for it.
|
#
143297 |
|
08-Mar-2005 |
harti |
Style: fix indentation of SuffExpandChildren before working on it.
|
#
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>
|
#
142457 |
|
25-Feb-2005 |
harti |
Change the return value of Var_Subst to return a Buffer instead of a char *.
Patch: 7.49
Submitted by: Max Okumoto <okumoto@ucsd.edu>
|
#
141271 |
|
04-Feb-2005 |
harti |
Move PrintAddr() from util.c into suff.c - the only file where it is actuall used, and make it static.
Submitted by: Max Okumoto <okumoto@ucsd.edu>
|
#
141270 |
|
04-Feb-2005 |
harti |
General whitespace cleanup: remove mixes of tabs and spaces, remove space after function names, remove spaces on emtpy lines.
Submitted by: Max Okumoto <okumoto@ucsd.edu>
|
#
141252 |
|
04-Feb-2005 |
harti |
Some more easy constification.
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>
|
#
138972 |
|
17-Dec-2004 |
harti |
Remove all the cleanup functions. There is no reason to free memory just before exiting (especially given the number of memory leaks) - it just costs time.
|
#
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.
|
#
138565 |
|
08-Dec-2004 |
harti |
Don't free the second list in Lst_Concat for LST_CONCLINK; free it in the caller instead.
|
#
138564 |
|
08-Dec-2004 |
harti |
Get rid of the sequential access feature of the lists. This was used only in a couple of places and all of them except for one were easily converted to use Lst_First/Lst_Succ. The one place is compatibility mode in job.c where the it was used to advance to the next command on each invocation of JobStart. For this case add a pointer to the node to hold the currently executed command.
|
#
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)
|
#
138512 |
|
07-Dec-2004 |
harti |
Typedefs of pointers to structs are evil. Make Lst and LstNode typedef of the structs itself not of pointers to them. This will simplify constification.
Checked by: diff on the object files
|
#
138510 |
|
07-Dec-2004 |
harti |
Make needs no circular lists so remove them from the list code.
|
#
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)
|
#
128165 |
|
12-Apr-2004 |
ru |
The .DEFAULT target with no commands caused a null pointer dereference.
PR: bin/63405 Obtained from: NetBSD
|
#
108470 |
|
30-Dec-2002 |
schweikh |
Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/ Add FreeBSD Id tag where missing.
|
#
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.
|
#
104121 |
|
28-Sep-2002 |
jmallett |
Make make(1) WARNS=6 clean except for const issues. This mostly involves renaming variables to not shadow libc functions or greater scope locals. Kinda makes one wonder if the extern ones weren't meant in some of these places :)
The only thing I'd still like to do WRT this is possibly combine rstat and status in compat.c -- that should be fine, as I do not think the codepaths will want both around at once.
Sponsored by: Bright Path Solutions
|
#
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.
|
#
103503 |
|
17-Sep-2002 |
jmallett |
#define<space> -> #define<tab>
|
#
94587 |
|
13-Apr-2002 |
obrien |
Update SCM ID method.
|
#
94584 |
|
13-Apr-2002 |
obrien |
De'register.
|
#
92921 |
|
21-Mar-2002 |
imp |
remove __P
|
#
73970 |
|
07-Mar-2001 |
tmm |
Fix two bugs in null suffix handling. Both occured only after the suffix list was cleared. Rules with null suffixes would not be rebuilt when the suffixes were added again. Adding null suffix rules would fail when a rule for the same source was declared before the suffix list was cleared.
PR: 23328, 24102 Reviewed by: will Approved by: rwatson
|
#
72645 |
|
18-Feb-2001 |
asmodai |
Preceed/preceeding are not english words. Use precede and preceding.
|
#
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
|
#
35464 |
|
26-Apr-1998 |
phk |
When all transformation rules to or from a suffix disappeared, make tries to free the suffix. I think, it is a very strange idea. (Or, maybe, it is a POSIX requirement?) And it is done incorrectly. Apparently, it even don't update the list of known suffixes (but it is an other bug).
PR: 4254, 4692, 4783 Reviewed by: phk Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>
|
#
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
|
#
9254 |
|
18-Jun-1995 |
ache |
NetBSD fixes: declare more prototypes, move .OPTIONAL in alphabet order, prevent suffix rule, if direct or children dependances exists, forget to free v->name in var.c My fixes: fix famous ^\t\n bug, correct free order in str_end Reviewed by: bde Obtained from: NetBSD, 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
|