aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/make/nonints.h
Commit message (Collapse)AuthorAgeFilesLines
* Move the remaining two prototypes from nonints.h to make.h andHartmut Brandt2005-05-101-50/+0
| | | | | | | | | | remove nonints.h. Patch: 7.204 Submitted by: Max Okumoto <okumoto@ucsd.edu> Notes: svn path=/head/; revision=146060
* Move Cmd_Exec() from main.c to job.c and fix its prototype. ThisHartmut Brandt2005-05-101-1/+0
| | | | | | | | | | results in a warning that will go away soon. Patch: 7.198 Submitted by: Max Okumoto <okumoto@ucsd.edu> Notes: svn path=/head/; revision=146054
* Implement a pseudo-target .WARN that allows toggeling the warning flagsHartmut Brandt2005-04-291-1/+1
| | | | | | | | for the current make. This does not override flags specified on the command line and these settings are not passed to sub-makes. Notes: svn path=/head/; revision=145679
* Introduce Buf_StripNewLines() and use it where appropriate.Hartmut Brandt2005-02-071-2/+4
| | | | | | | Submitted by: Max Okumoto <okumoto@ucsd.edu> Notes: svn path=/head/; revision=141454
* Some more easy constification.Hartmut Brandt2005-02-041-1/+1
| | | | | | | Submitted by: Max Okumoto <okumoto@ucsd.edu> Notes: svn path=/head/; revision=141252
* Clean up include files and file including. Split nonints.h into piecesHartmut Brandt2005-02-011-96/+3
| | | | | | | | | | | | | | | | 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> Notes: svn path=/head/; revision=141104
* Fix quoting of the MAKEFLAGS environment variable by only quoting spacesHartmut Brandt2005-01-261-1/+3
| | | | | | | | | | | | | and tabs. This is still not correct for command line variable values ending in a backslash because this would require a larger effort. Document this limitation in the BUGS section of the man page. The quoting is mostly compatible with that of gmake and smake. Tested by: Max Okumoto and Joerg Sonnenberger from DragonFly BSD Reviewed by: ru (man page, partly) Notes: svn path=/head/; revision=140870
* Remove all the cleanup functions. There is no reason to free memoryHartmut Brandt2004-12-171-6/+0
| | | | | | | | just before exiting (especially given the number of memory leaks) - it just costs time. Notes: svn path=/head/; revision=138972
* Instead of dynamically allocating list heads allocated them staticallyHartmut Brandt2004-12-161-2/+2
| | | | | | | | | | | 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. Notes: svn path=/head/; revision=138916
* Consify the arguments to str_concat. Remove the STR_DOFREE flag for thatHartmut Brandt2004-12-081-1/+1
| | | | | | | | | | purpose and explicitely free the input string in the one place that was calling str_concat with that flag. Submitted by: Max Okumoto <okumoto@ucsd.edu> Notes: svn path=/head/; revision=138547
* Typedefs of pointers to structs are evil. Make Lst and LstNode typedef ofHartmut Brandt2004-12-071-6/+6
| | | | | | | | | the structs itself not of pointers to them. This will simplify constification. Checked by: diff on the object files Notes: svn path=/head/; revision=138512
* Fix breakage introduced on 64-bit platforms with my last commit. NeedHartmut Brandt2004-12-031-1/+1
| | | | | | | to change to size_t in a couple of other places too. Notes: svn path=/head/; revision=138346
* Put variable assignments on .MAKEFLAGS and .MFLAGS targets intoHartmut Brandt2004-08-121-1/+1
| | | | | | | | | | | | the .MAKEFLAGS variable so that these are also passed to sub-makes. This makes the handling of variables in the command environment more consistent. PR: bin/68853 Submitted by: Martin Kamerhofer <data@sbox.tugraz.at> Notes: svn path=/head/; revision=133562
* Put variable assignments from the command line into the MAKEFLAGSHartmut Brandt2004-08-031-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | variable as required by POSIX. This causes such variables to be pushed into all sub-makes called by the make (except when the MAKEFLAGS variable is explicitely changed in the sub-make's environment). This makes them also mostly un-overrideable in sub-makes except on the sub-make's command line. Therefor specifying 'make CC=icc' will cause icc to be used as C compiler in all sub-makes no matter what the Makefiles itself try to do to the CC variable. This patch also corrects the handling of the MFLAGS variable. MFLAGS contains all the command line flags but not the command line variable assignments. The evaluation of the .MFLAGS or .MAKEFLAGS target now changes both MFLAGS and MAKEFLAGS (they used to change MAKEFLAGS only). Makefiles can use MFLAGS for their own purposes given that they do not except MFLAGS to be undefined at the beginning and that they don't evaluate .MFLAGS or .MAKEFLAGS. MFLAGS should be removed for POSIX compliance, but it is unfortunately heavily used by the X makefiles. This has been extensively tested by port builds (thanks to portmgr), new worlds and kernels. PR: standards/57295 (1st part above) Submitted by: James E. Flemer <jflemer@alum.rpi.edu> Approved by: portmgr Obtained from: NetBSD (1st part above) MFC after: 4 weeks Notes: svn path=/head/; revision=133085
* Implement POSIX's '+' flag for command lines. This flag causes a lineHartmut Brandt2004-07-291-0/+1
| | | | | | | | | | | | | | | | | | to be executed even when -n is given on the command line to make. This is very handy for calls to submakes. This is slightly changed from the original patch as obtained from NetBSD. The NetBSD variant prints lines which have both '+' and '@' when -n is specified. The commited version always obeys '@'. Bump MAKE_VERSION so Makefiles can use this conditionally. PR: standards/66357 (partly) Submitted by: Mark Baushke <mdb@juniper.net> Obtained from: NetBSD Notes: svn path=/head/; revision=132839
* Reworked the fix to print the useful line number on error inRuslan Ermilov2004-03-101-2/+2
| | | | | | | | | | | | | | the .for loop: - Replaced four global variables in parse.c with one. - Made Parse_FromString() accept the "lineno" as an argument. - Fixed line numbering when there are escaped newlines in the body of the .for loop. Adopted from: NetBSD Notes: svn path=/head/; revision=126824
* Split var.c into var.c and var_modify.c and move all the modification funcsJuli Mallett2002-10-281-4/+3
| | | | | | | | | | | to var_modify.c, for readability. constify some low hanging fruit (string manipulation functions) and the upper layers appropriately. No longer use the private strstr(3) implementation, while changing string code. Tested by: lots of successful make buildworld. Notes: svn path=/head/; revision=106106
* Remove efree(), it isn't used consistently enough to even pretend that itJuli Mallett2002-10-231-3/+0
| | | | | | | | | 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. Notes: svn path=/head/; revision=105826
* Make the DEBUGF() macro portable by (ugh) adding a Debug() function, whichJuli Mallett2002-09-181-0/+1
| | | | | | | | 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. Notes: svn path=/head/; revision=103545
* #define<space> -> #define<tab>Juli Mallett2002-09-171-1/+1
| | | | Notes: svn path=/head/; revision=103503
* Remove local prototypes for main().Juli Mallett2002-08-191-1/+0
| | | | Notes: svn path=/head/; revision=102084
* The error functions take constant pointers to strings for their format.Juli Mallett2002-06-121-4/+4
| | | | Notes: svn path=/head/; revision=98136
* str_concat() doesn't really take const arguments.Juli Mallett2002-05-221-1/+1
| | | | | | | | Submitted by: bde Pointy hat to: jmallett Notes: svn path=/head/; revision=97123
* Fix copyrights, and undo SCS ID damage.David E. O'Brien2002-04-131-1/+1
| | | | Notes: svn path=/head/; revision=94589
* De'register.David E. O'Brien2002-04-131-1/+1
| | | | Notes: svn path=/head/; revision=94584
* remove __PWarner Losh2002-03-221-85/+85
| | | | Notes: svn path=/head/; revision=92921
* There's also no point in #typedef'ing void/char pointers. Accordingly,Will Andrews2000-12-021-3/+3
| | | | | | | | | rip out ClientData/Address pointers and use standard types. Obtained from: OpenBSD Notes: svn path=/head/; revision=69531
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50477
* Merge style- and trivial- only changes from OpenBSD (dated 1999/07/29-19:55+1).Tim Vanderhoek1999-08-171-1/+4
| | | | | | | Obtained from: OpenBSD, sometimes indirected from NetBSD; myself Notes: svn path=/head/; revision=49938
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
| | | | Notes: svn path=/head/; revision=23006
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | 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. Notes: svn path=/head/; revision=21673
* O' to be bitten by CVS. Cleanup after importSteve Price1996-10-081-0/+1
| | | | | | | | | of Christos' version of make(1) and add Id's. Set straight by: Bruce Evans and Peter Wemm :) Notes: svn path=/head/; revision=18804
* Merge in NetBSD's changes to make(1). Changes include:Steve Price1996-10-061-2/+6
| | | | | | | | | | | | | | | | | | | - 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 Notes: svn path=/head/; revision=18730
* Bring in a number of changes from NetBSD's make, fixing quite a fewJordan K. Hubbard1995-01-231-10/+18
| | | | | | | | | | | | | | | 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) Notes: svn path=/head/; revision=5814
* BSD 4.4 Lite Usr.bin SourcesRodney W. Grimes1994-05-271-0/+132
Notes: svn path=/cvs2svn/branches/CHRISTOS/; revision=1590