summaryrefslogtreecommitdiff
path: root/usr.bin/make
AgeCommit message (Collapse)Author
2002-01-16Use the volatile specifier to fix warnings about variables beingTodd C. Miller
clobbered by longjmp / vfork instead of the gcc "(void)&foo;" hack.
2001-12-02Put back the interrupt fixed code, since it's not the issue.Marc Espie
2001-11-23back out changes that break kernel compiles. good testing jobmk install!Theo de Raadt
2001-11-22Remove broken interrupt handler.Marc Espie
Nothing of what it did is allowed in an interrupt handler. Rather, just mark that an interrupt occurred, and check for interrupts in the wait of RunCommand (that's the correct point to check for interrupts anyways). Okay miod@, millert@ approves (as he's too tired to look at the code)
2001-11-22Explicitly mark nodes whose commands have been filled withMarc Espie
implicit (suffix) rules. Then, only expand the IMPSRC/< variable if the node has been marked. This matches what Single Unix 2 and common sense say: implicit rules shouldn't count when an explicit rule has been found (an explicit rule being a full-scale dependency, with some associated commands) Note that Single Unix leaves the `PREFIX' question open, so we leave the PREFIX code as it is. This fixes regression case mk14, which now fails as it should. This is just a bug-fix. Some more correct (and faster) code should probably be substituted. Namely, right now, the suffix code is too greedy, whereas it should test for explicit rules earlier, and not even bother instantiating implicit rules from templates when they duplicate actual existing rules. ok millert@
2001-11-17do not exit() from signal handlerTheo de Raadt
2001-11-17errno savingTheo de Raadt
2001-11-11Fixed version... don't see how this could work on i386, since it didn'tMarc Espie
initialize create in main.c.
2001-11-11undo changes that crash on (at least) the alphaTheo de Raadt
2001-11-11Redo LstInit as a macro: smaller and faster code in all cases, zeroing twoMarc Espie
pointers is simpler than calling a function. Recognize purely static lst headers, which don't really need any initialization. ok miod@
2001-09-19occured->occurredMike Pechkin
idea from deraadt@ via NetBSD millert@ ok p.s. Next commit will fix a typo in the sys/
2001-09-16Make make cross-compilable.Artur Grabowski
2001-09-15fix a pasto, fix pr 1969Michael Shalayeff
2001-09-07Repair regular expression substitution.Marc Espie
Even though the code can share some common parts, there is an important difference I had missed.
2001-09-05make sure that va_start() has matching va_end()Theo de Raadt
2001-09-04Replace the deprecated BSD sigsetmask/sigblock/sigpause functions with their ↵Todd C. Miller
POSIX counterparts.
2001-08-20Powered by @mantoya.Mike Pechkin
o) fix bogus .Xr usage; millert@ ok.
2001-08-19byebye. Not used. Just keeps getting out of synch.Marc Espie
2001-07-18Avoid dumping core when reporting open conditionals.Marc Espie
Turns out that current is NULL when Parse_Fatal is called in this case, so just do something sensible in error reporting functions when current is NULL...
2001-07-18CDIAGFLAGSMarc Espie
2001-07-11Typo in commentMarc Espie
2001-06-12Replace the most used static lists in make by persistent growable arrays.Marc Espie
5% speed increase on a make build. ok miod@
2001-06-07Better warning fix, in line with the rest of the codeMarc Espie
(__attribute((__unused__)) denotes parameters that MAY be unused in the code, e.g., it's mostly a `shut up warnings' device).
2001-06-05calloc stats in one-shot case.Marc Espie
2001-06-05Use Str_concat instead of fixed buffers and snprintf in building paths.Marc Espie
Replace MAXPATHLEN with PATH_MAX (synch with op-make). ok naddy@
2001-06-03Make sure targs get initialized.Marc Espie
Don't bother cleaning it up for speed
2001-05-31Simple guard against overflow. Better code to appear.Marc Espie
2001-05-30-Wall cleanup, mostly useless otherwiseTheo de Raadt
2001-05-29Protect against copying a too long PWD.Marc Espie
This is temporary, this code needs better fixes.
2001-05-29Take includes out of lst.h, re-add what's needed to separate files.Marc Espie
Removes remaining lint stuff from lst.lib.
2001-05-29SynchMarc Espie
2001-05-29Blech! gcc is a stupid program. Compiling with -fno-builtin shows lotsMarc Espie
of missing function declarations.
2001-05-27Fix DirExpandCurlyi. Noticed by ho@. Okay miod@.Marc Espie
2001-05-23Mostly clean-up:Marc Espie
- cut up those huge include files into separate interfaces for all modules. Put the interface documentation there, and not with the implementation. - light-weight includes for needed concrete types (lst_t.h, timestamp_t.h). - cut out some more logically separate parts: cmd_exec, varname, parsevar, timestamp. - put all error handling functions together, so that we will be able to clean them up. - more systematic naming: functioni to handle interval, function to handle string. - put the init/end code apart to minimize coupling. - kill weird types like ReturnStatus and Boolean. Use standard bool (with a fallback for non-iso systems) - better interface documentation for lots of subsystems. As a result, make compilation goes somewhat faster (5%, even considering the largish BSD copyrights to read). The corresponding preprocessed source goes down from 1,5M to 1M. A few minor code changes as well: Parse_DoVar is no longer destructive. Parse_IsVar functionality is folded into Parse_DoVar (as it knows what an assignment is), a few more interval handling functions. Avoid calling XXX_End when they do nothing, just #define XXX_End to nothing. Parse_DoVar is slightly more general: it will handle compound assignments as long as they make sense, e.g., VAR +!= cmd will work. As a side effect, VAR++=value now triggers an error (two + in assignment). - this stuff doesn't occur in portable Makefiles. - writing VAR++ = value or VAR+ +=value disambiguates it. - this is a good thing, it uncovered a bug in bsd.port.mk. Tested by naddy@. Okayed millert@. I'll handle the fallback if there is any. This went through a full make build anyways, including isakmpd (without mickey's custom binutils, as he didn't see fit to share it with me).
2001-05-15Don't go beyond end of string.Marc Espie
Handles unterminated variables, and fixes regression test #10
2001-05-15thinko in my rewrite. Repair var:sh = somethingMarc Espie
Looks like nobody is using this anyways.
2001-05-14Ensure IFile str is always intialized, so that we can free it withoutMarc Espie
problems. Bug found by wilfried@.
2001-05-07some complex situations need those functions to be reentrant, hence noMarc Espie
static VarPatterns... Old make could use dynamic variables because everything was jumbled into one single function.
2001-05-07avoid closing the same file twice. parse module assumes ownership ofMarc Espie
file handles it's passed to. (this is apparently harmless on BSDs, but is still a bug).
2001-05-07Even though str_concati is supposed to handle intervals, it was stillMarc Espie
assuming '\0' at the end. -> importance of proper make bug reports, this was first diagnosed as a for loop issue...
2001-05-05Document for loop mechanics for several variables.Marc Espie
Idea taken from NetBSD. implementation completely different, as our loop implementation diverged a while back.
2001-05-03Bump bootstrap stuff from op-make. Mostly from fries@Marc Espie
2001-05-03Minor manpage tweaksMarc Espie
2001-05-03Synch with my current work.Marc Espie
Numerous changes: - generate can build several tables - style cleanup - statistics code - use variable names throughout (struct Name) - recursive variables everywhere - faster parser (pass buffer along instead of allocating multiple copies) - correct parser. Handles comments everywhere, and ; correctly - more string intervals - simplified dir.c, less recursion. - extended for loops - sinclude() - finished removing extra junk from Lst_* - handles ${@D} and friends in a simpler way - cleaned up and modular VarModifiers handling. - recognizes some gnu Makefile usages and errors out about them. Additionally, some extra functionality is defined by FEATURES. The set of functionalities is currently hardcoded to OpenBSD defaults, but this may include support for some NetBSD extensions, like ODE modifiers. Backed by miod@ and millert@, who finally got sick of my endless patches...
2001-05-03old fileMarc Espie
2001-03-29Pretty.Aaron Campbell
2001-03-02Use the ohash_* that's now in libc.Marc Espie
2001-02-17Guard against Var_Value() being applied to an empty string, which itMarc Espie
doesn't do [for efficiency reason, hash_interval does not deal with empty strings not declared as intervals. More recent incarnations of this code will use Var_Value_interval extensively instead] Problem found by Peter Stromberg.
2001-01-29$OpenBSD$Niklas Hallqvist
2001-01-28Missing copyrightMarc Espie