summaryrefslogtreecommitdiff
path: root/dep.h
Commit message (Collapse)AuthorAgeFilesLines
* Update Copyright statements for 2014.Paul Smith2014-09-301-1/+1
|
* [Bug #39310] Parse simple pattern prereqs for globbing.Paul Smith2013-07-221-0/+2
| | | | | | | We tried to get some efficiency by avoiding a parse_file_seq() for simple pattern prerequisites, but this also means no wildcard expansion was happening, so add it back. Add regression tests for wildcards in target and prerequisite lists.
* Modify the update_status field in struct file to be an enum.Paul Smith2013-07-141-1/+1
| | | | | Makes the code a little clearer/cleaner, and solves a problem on systems where a char is unsigned by default.
* Create a character map to use for locating stop-points in strings.Paul Smith2013-06-221-8/+7
| | | | | | | | | In various places we were passing flags and characters to compare, then using complex conditionals to see where to stop in string searches. Performance numbers reveal that we were spending as much as 23% of our processing time in these functions, most of it in the comparison lines. Instead create a character map and use a single bitwise comparison to determine if this is any one of the stop characters.
* Update source file format: remove TABs, use GNU coding styles.Paul Smith2013-05-171-5/+5
|
* Update copyright for changes in 2013.Paul Smith2013-05-171-1/+1
|
* Use ENULLLOOP to handle EINTR during realpath(). Fixes Savannah bug #38420Paul Smith2013-02-281-0/+1
|
* Expand the loadable object support.Paul Smith2013-02-251-1/+0
| | | | | | | Provide a simple API for loaded objects to interact with GNU make. I still won't guarantee that this API won't change but it's much closer to something that's supported and provides easy-to-use interfaces with a public header file.
* Simplify copyrights using ranges of years.Paul Smith2012-03-051-3/+1
| | | | | The new GNU Maintainer's Manual allows the use of year ranges in certain situations; take advantage of this simplification.
* Convert all "`'" quotes to "''" per new GNU Coding Standard guidelines.Paul Smith2012-03-041-5/+5
| | | | Fixes Savannah bug #34530.
* Update copyright notices.Paul Smith2012-01-161-3/+3
|
* Update copyrights for 2010.Paul Smith2010-07-131-2/+2
|
* Do not consider filenames that contain parens but don't END in a paren,Paul Smith2010-07-031-3/+4
| | | | to be an archive group. Fixes Savannah bug #28525.
* Update copyright years.Paul Smith2009-10-251-2/+2
|
* Various simple code cleanups.Paul Smith2009-10-251-1/+1
|
* Fix savannah bug 25780. Optimize things a bit.Boris Kolpackov2009-10-061-1/+0
|
* Fix Savannah bugs #15110, #25493, #12686, and #17740.Boris Kolpackov2009-09-301-0/+1
|
* - Add static pattern targets to the string cache.Paul Smith2009-09-271-1/+2
| | | | - Use specific free_*() calls where appropriate.
* - Rework secondary expansion so we only defer it if there's a possibilityPaul Smith2009-09-241-3/+6
| | | | | | it might be needed: for most situations we parse prereqs immediately as we used to. Reduces memory usage. - Fixes Savannah bug #18622.
* - Add xcalloc() and call itPaul Smith2009-09-161-5/+13
| | | | | | | | | - Fix memory errors found by valgrind - Remove multi_glob() and empower parse_file_seq() to do its job: the goal here is to remove the confusing reverse/re-reverse we do on the file lists: needed for future fixes. - Add a prefix arg to parse_file_seq() - Make concat() variadic so it can take arbitrary #'s of strings
* - Fix Savannah bug 17825Paul Smith2009-06-131-1/+1
| | | | - Fix Savannah bug 21231
* * Update to GPLv3Paul Smith2007-07-041-4/+4
| | | | | * Update copyright to 2007 * Fix download URL for translation files (thanks to Thiemo Seufer)
* This is a major update, which switches virtually every allocated-but-not-freedPaul Smith2007-03-201-10/+5
| | | | | | | | | | | | | | | string into the strcache. As a side-effect, many more structure members and function arguments can/should be declared const. As mentioned in the changelog, unfortunately measurement shows that this change does not yet reduce memory. The problem is with secondary expansion: because of this we store all the prerequisites in the string cache twice. First we store the prerequisite string after initial expansion but before secondary expansion, then we store each individual file after secondary expansion and expand_deps(). I plan to change expand_deps() to be callable in either context (eval or snap_deps) then have non-second-expansion targets call expand_deps() during eval, so that we only need to store that dependency list once.
* Fix from Eli for incorrect value of $(MAKE) on Cygwin.Paul Smith2006-11-181-1/+1
| | | | | | | | | | | | | | | | A few changes from char* to void* where appropriate, and removing of unnecessary casts. Much more work on const-ifying the codebase. This round involves some code changes to make it correct. NOTE!! There will almost certainly be problems on the non-POSIX ports that will need to be addressed after the const changes are finished: they will need to be const-ified properly and there may need to be some changes to allocate memory, etc. as well. The next (last?) big push for this, still to come, is const-ifying the filenames in struct file, struct dep, etc. This will allow us to store file names in the string cache and finally resolve Savannah bug #15182 (make uses too much memory), among other advantages.
* Code cleanup: Remove all references to PARAMS() & ansi2knr.Paul Smith2006-04-071-15/+15
|
* Fixed Savannah bug #16053.Boris Kolpackov2006-03-171-1/+5
|
* Last of the copyright updates.Paul Smith2006-02-111-1/+2
|
* Update copyright and license notices on all files.Paul Smith2006-02-111-13/+11
| | | | Added new file strcache.c to various non-UNIX makefiles and build scripts.
* Make second expansion optional (partial implementation).Paul Smith2005-10-241-1/+3
| | | | | | | | | | | | | | | | I decided this feature was too impacting to make the permanent default behavior. This set of changes makes the default behavior of make the old behavior (no second expansion). If you want second expansion, you must define the .SECONDEXPANSION: special target before the first target that needs it. This set of changes ONLY fixes explicit and static pattern rules to work like this. Implicit rules still have second expansion enabled all the time: I'll work on that next. Note that there is still a backward-incompatibility: now to get the old SysV behavior using $$@ etc. in the prerequisites list you need to set .SECONDEXPANSION: as well.
* Fix performance degradation introduced by the second expansion feature.Paul Smith2005-04-131-0/+1
| | | | | | | | | | | | | | | | | | I did this by adding intelligence into the algorithm such that the second expansion was only actually performed when the prerequisite list contained at least one "$", so we knew it is actually needed. Without this we were using up a LOT more memory, since every single target (even ones never used by make) had their file variables initialized. This also used a lot more CPU, since we needed to create and populate a new variable hash table for every target. There is one issue remaining with this feature: it leaks memory. In pattern_search() we now initialize the file variables for every pattern target, which allocates a hash table, etc. However, sometimes we recursively invoke pattern_search() (for intermediate files) with an automatic variable (alloca() I believe) as the file. When that function returns, obviously, the file variable hash memory is lost.
* Implementation of the .DEFAULT_TARGET special variable.Boris Kolpackov2005-02-271-1/+1
|
* Implementation of the second expansion in explicitBoris Kolpackov2005-02-271-0/+1
| | | | rules, static pattern rules and implicit rules.
* Various enhancementsPaul Smith2004-05-161-1/+1
| | | | | | | - OS/2 Patches - OpenVMS updates - Sanitize the handling of -include/sinclude with and without -k - Fix the setting of $< for order-only rules.
* Various cleanups reported by people using the alpha release.Paul Smith2002-07-081-1/+2
| | | | | | | Incorporate "order-only" prerequisites patch. Wrote a test for it. The test shows what might be a bug in the code; I need to look at it more closely (anyway it doesn't behave as I expected). Also I haven't done the docs yet.
* Major updates in preparation for 3.80.Paul Smith2002-07-081-0/+1
| | | | | | | New version of the manual, put into the doc subdir. Enhancements: $(eval ...) and $(value ...) functions, various bug fixes, etc. See the ChangeLog. More to come.
* * Fix up and document $(apply ...) function.Paul Smith1999-07-151-2/+1
|
* * Fixed error rebuilding makefiles with -j>1Paul Smith1999-07-091-1/+2
| | | | * Fixed problem with job pipe and -j>1 when waiting on -l loads.
* * Update FSF address info in copyright notices.Paul Smith1999-03-051-1/+2
| | | | | | | | * Update maintainers build process; remove GNUmakefile. Require builders to run automake && autoreconf by hand. * Use AC_SUBST_FILE to get the maintMakefile included, rather than GNU make's include directive, which conflicts with automake 1.4's include directive.
* Checkpoint changes. Bug fixes, mostly.Paul Smith1998-10-031-9/+13
|
* Thu May 9 13:54:49 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>Roland McGrath1996-05-091-2/+2
| | | | | | * read.c (parse_file_seq): Use `int' for char arg to avoid widening conflict issues. * dep.h: Fix prototype.
* Tue Mar 19 20:21:34 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>Roland McGrath1996-03-201-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merged VMS port from Klaus Kaempf <kkaempf@didymus.rmi.de>. * make.h (PARAMS): New macro. * config.h-vms: New file. * makefile.com: New file. * makefile.vms: New file. * readme.vms: New file. * vmsdir.h: New file. * vmsfunctions.c: New file. * vmsify.c: New file. * file.h: Renamed to filedef.h to avoid conflict with VMS system hdr. * ar.c: Added prototypes and changes for VMS. * commands.c: Likewise. * commands.h: Likewise. * default.c: Likewise. * dep.h: Likewise. * dir.c: Likewise. * expand.c: Likewise. * file.c: Likewise. * function.c: Likewise. * implicit.c: Likewise. * job.c: Likewise. * job.h: Likewise. * main.c: Likewise. * make.h: Likewise. * misc.c: Likewise. * read.c: Likewise. * remake.c: Likewise. * remote-stub.c: Likewise. * rule.c: Likewise. * rule.h: Likewise. * variable.c: Likewise. * variable.h: Likewise. * vpath.c: Likewise. * compatMakefile (srcs): Rename file.h to filedef.h.
* entered into RCSRoland McGrath1994-03-231-1/+2
|
* Formerly dep.h.~6~Roland McGrath1993-08-031-9/+5
|
* Formerly dep.h.~5~Roland McGrath1993-07-141-0/+15
|
* Formerly dep.h.~4~Roland McGrath1993-06-101-0/+3
|
* Formerly dep.h.~3~Roland McGrath1993-06-071-1/+2
|
* Formerly dep.h.~2~Roland McGrath1992-08-021-3/+3
|
* Initial revisionRoland McGrath1991-06-031-0/+50