summaryrefslogtreecommitdiff
path: root/variable.c
AgeCommit message (Collapse)AuthorFilesLines
2007-07-04* Update to GPLv3Paul Smith1-4/+4
* Update copyright to 2007 * Fix download URL for translation files (thanks to Thiemo Seufer)
2007-03-20This is a major update, which switches virtually every allocated-but-not-freedPaul Smith1-27/+28
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.
2006-11-18Fix from Eli for incorrect value of $(MAKE) on Cygwin.Paul Smith1-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.
2006-10-01Fixed a number of documentation bugs, plus some build/install issues:Paul Smith1-1/+1
16304, 16468, 16577, 17701, 17880, 16051, 16652, 16698 Plus some from the mailing list. Imported a patch from Eli to allow Cygwin builds to support DOS-style pathnames.
2006-04-09Another round of cleanups:Paul Smith1-23/+22
- Add more warnings. - Rename variables that mask out-scope vars with the same name. - Remove all casts of return values from xmalloc, xrealloc, and alloca. - Remove casts of the first argument to xrealloc. - Convert all bcopy/bzero/bcmp invocations to use memcp/memmove/memset/memcmp.
2006-03-08Some test updates for Windows.Paul Smith1-1/+2
Handle SHELL set on the command line properly for windows.
2006-02-21Fix a potential core dump when merging aliases. Might fix bug #15818.Paul Smith1-8/+9
Revert intermediate file free code. Suppress some warnings in VMS builds.
2006-02-17Make sure we don't introduce a circularity into the variable set linkedPaul Smith1-7/+13
list. Fixes Savannah bug #15757.
2006-02-14Some memory leak cleanups (found with valgrind).Paul Smith1-8/+17
2006-02-11Last of the copyright updates.Paul Smith1-1/+2
2006-02-11Update copyright and license notices on all files.Paul Smith1-14/+11
Added new file strcache.c to various non-UNIX makefiles and build scripts.
2005-09-26Make sure to assign a boolean value to a 1-bit bitfield. Reported onPaul Smith1-1/+1
the bug-make mailing list. Fix Savannah bug # 14527: remember to free temporary line constructor memory if the line is empty.
2005-06-09Fix Savannah bug #11913: ensure that scopes such as foreach, etc. takePaul Smith1-17/+56
precedence over the global scope when they're used in a global context (such as an eval).
2005-04-08Fix some Savannah bugs.Paul Smith1-2/+2
Updates to docs (still need more work here) and NEWS file. New language.
2005-02-28* New feature: -L optionPaul Smith1-1/+1
* New function: $(info ...) * Disallow $(eval ...) to create prereq relationships inside command scripts (caused core dumps) * Try to allow more tests to succeed in Windows/DOS by sanitizing CRLF and \ * Various bug fixes and code cleanups (see the ChangeLog entry)
2004-12-05Fix bug with SHELL handling: make sure the variable struct is initialized.Paul Smith1-9/+7
2004-11-28Fix for bug #1276: Handle SHELL according to POSIX requirements.Paul Smith1-9/+17
POSIX requires that the value of SHELL in the makefile NOT be exported to sub-commands. Instead, the value in the environment when make was invoked should be passed to the environment of sub-commands. Note that make still uses SHELL to _run_ sub-commands; it just doesn't change the value of the SHELL variable in the environment of sub-commands. As an extension to POSIX, if the makefile explicitly exports SHELL then GNU make _will_ use it in the environment of sub-commands.
2004-10-05Moved expansion of simple pattern-specific variables from the rebuild stageBoris Kolpackov1-4/+19
to the read stage.
2004-09-27bugfix for exported pattern-specific variablesBoris Kolpackov1-4/+11
2004-03-22Numerous updates and bug fixes.Paul Smith1-0/+5
A number of W32 cleanups from J.Grant. A number of OS/2 cleanups from Andreas Buening. Various random bug fixes.
2003-05-02- Fix bug #1405: allow multiple pattern-specific variables to match a target.Paul Smith1-20/+155
- Fix some uncleanliness about the implementation of patterns-specific vars. - Some enhancements to the OS/2 port.
2003-03-24Add support for OS/2, contributed by Andreas Buening <andreas.buening@nexgo.de>Paul Smith1-3/+53
Also a small patch from Hartmut Becker <Hartmut.Becker@compaq.com> for VMS.
2002-10-14Convert the source code to use ANSI C style function definitions andPaul Smith1-82/+55
enable the automake ansi2knr capability. Right now this doesn't quite build using a K&R compiler because of a problem with the loadavg test program, but the rest of the code works. I'm asking the automake list about this problem.
2002-10-04Fix K&R-isms found on SunOS 4.1.4 builds.Paul Smith1-3/+7
2002-09-17Fix bug #940 (from the Savannah bug tracker): make sure that target-Paul Smith1-4/+18
specific variables work correctly in conjunction with double-colon targets.
2002-08-08Change the version.Paul Smith1-1/+0
Update to require new gettext. Change hash.c to by K&R. Redo some strings to make i18n simpler.
2002-08-08Incorporate some VMS fixes.Paul Smith1-11/+40
Add -B option docs. Add .VARIABLES variable. Add a few new tests. Add a new translation: Swedish
2002-08-01New variables, .VARIABLES and .TARGETS.Paul Smith1-12/+83
2002-07-11Install Greg McGary's patches to port the id-utils hashing functions toPaul Smith1-305/+200
GNU make. Also he provides some other performance fixups after doing some profiling of make on large makefiles. Modify the test suite to allow the use of Valgrind to find memory problems.
2002-07-08Major updates in preparation for 3.80.Paul Smith1-140/+176
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.
2002-05-10Fix Debian bug #144306: pass target-specific variables into the environmentPaul Smith1-1/+2
properly. Fix configure: allow cross-compilation; fix getloadavg (still needs _lots_ of work!) Let $(call ...) functions to be self-referencing. Lets us do transitive closures, for example.
2001-08-19Installed the da.po (Danish) translation file.Paul Smith1-1/+2
Fixed some translation string issues.
2001-06-01Fix for EINTR problems when using jobserver.Paul Smith1-0/+1
New translation files. Fix for @+ inside define macros being applied too widely. Various other bug fixes.
2001-01-21Some bug fixes and document updates.Paul Smith1-95/+67
2000-08-21Fix PR/1831. See the ChangeLog.Paul Smith1-50/+57
2000-07-07* Minor code cleanupsPaul Smith1-3/+0
* Fix for PR/1811, from Paul Eggert.
2000-06-07* Lots of bug fixes and cleanup; new i18n files, etc.Paul Smith1-1/+1
2000-03-27* A large number of fixes/enhancements. See the ChangeLog.Paul Smith1-14/+24
* Added a new version of the German translation file.
2000-02-07* Fix for dir.c from Andreas Schwab.filedef-cleanup-basePaul Smith1-3/+15
* Fix += target-specific variables: if your direct parent doesn't have a setting for the variable but his parent does, you'll get recursive expansion errors.
2000-02-05* Fix PR/1407.Paul Smith1-50/+67
* Keep filename/lineno information for variables, for debugging.
2000-01-22* Merge VMS patches by Hartmut Becker.Paul Smith1-0/+67
1999-12-18* Fix problems with double-colon rules.Paul Smith1-1/+1
* Fix problems with INTERMEDIATE rules.
1999-12-08* Various changes and fixes. See ChangeLog.Paul Smith1-0/+1
1999-11-17* Many cleanups and bugfixes.Paul Smith1-1/+15
* New handling of += in target-specific variables.
1999-10-15* Fix PR/1394.Paul Smith1-3/+3
* Apply changes from Paul Eggert. * Many other cleanups (index/rindex --> strchr/strrchr, etc.)
1999-10-08* Fix test suite on DOS (PR/1344)Paul Smith1-2/+1
* Fix target-specific vars bug (PR/1378)
1999-08-25* A few cleanups, and 3.77.94 release.3.77.94Paul Smith1-2/+1
1999-08-22* Various changes.Paul Smith1-5/+7
1999-07-28* Add gettext macros to start i18n support.Paul Smith1-8/+8
1999-07-21* Add configure option to enable dmalloc library.Paul Smith1-6/+6
* Various code cleanups.