summaryrefslogtreecommitdiff
path: root/expand.c
Commit message (Collapse)AuthorAgeFilesLines
* Update Copyright statements for 2014.Paul Smith2014-09-301-1/+1
|
* * various: Assume ISO C89-compliant free() implementation.Paul Smith2014-07-071-3/+1
|
* [SV 40361] Don't use vsnprintf(), which is an ISO C99 function.Paul Smith2013-11-231-4/+4
| | | | | | | | | | * output.c (error, fatal, message): Take an extra argument specifying how many bytes are used by the formatted arguments. (get_buffer): New function that allocates the requested buffer size. Remove msc_vsnprintf(), vfmtconcat(), and fmtconcat() as unneeded. * makeint.h: Declare various helper macros for generating output. * *.c: Change all error(), fatal(), message() calls to use the macros, or pass the extra length argument directly.
* [Bug #39158] Source cleanups suggested by cppcheck utility.Paul Smith2013-07-211-6/+4
|
* Update source file format: remove TABs, use GNU coding styles.Paul Smith2013-05-171-122/+122
|
* Update copyright for changes in 2013.Paul Smith2013-05-171-1/+1
|
* Rename struct floc to typedef gmk_floc as an externally scoped symbol.Paul Smith2013-01-201-4/+4
|
* Rename the make.h file to makeint.h for internal use only.Paul Smith2013-01-201-1/+1
|
* 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.
* Ensure appending private variables in pattern-specific target variables.Paul Smith2012-03-041-2/+4
| | | | Fixes Savannah bug #35468.
* 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
|
* Save strings we're expanding in case an embedded eval causes themPaul Smith2011-08-291-13/+7
| | | | | to be freed (if they're the value of a variable that's reset for example). See Savannah patch #7534
* Ensure private variables are not used when appending target-specificPaul Smith2011-05-071-6/+7
| | | | variables. Fixes Savannah bug #32872.
* Update copyrights for 2010.Paul Smith2010-07-131-2/+2
|
* Update copyright years.Paul Smith2009-10-251-2/+2
|
* - Rework secondary expansion so we only defer it if there's a possibilityPaul Smith2009-09-241-2/+2
| | | | | | it might be needed: for most situations we parse prereqs immediately as we used to. Reduces memory usage. - Fixes Savannah bug #18622.
* - Fix Savannah bug #27093Paul Smith2009-08-021-8/+13
| | | | | | - Fix Savannah bug #27143 - Fix Savannah bug #23960 - Fix Savannah bug #27148
* * Update to GPLv3Paul Smith2007-07-041-4/+4
| | | | | * Update copyright to 2007 * Fix download URL for translation files (thanks to Thiemo Seufer)
* Fix a core dump when reading_file is 0 (20033).Paul Smith2007-06-191-4/+9
| | | | Fix some manual typos (20018).
* This is a major update, which switches virtually every allocated-but-not-freedPaul Smith2007-03-201-3/+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-28/+39
| | | | | | | | | | | | | | | | 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.
* Another round of cleanups:Paul Smith2006-04-091-14/+12
| | | | | | | | - 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.
* Code cleanup: Remove all references to PARAMS() & ansi2knr.Paul Smith2006-04-071-1/+1
|
* Fix Savannah bug #15913.Paul Smith2006-03-151-8/+8
|
* Numerous updates to tests for issues found on Cygwin and Windows.Paul Smith2006-03-101-1/+1
| | | | | | Revert a fix for $? including non-existent files as it shows a bug in the Linux kernel build. Give them a release to fix this. Add some changes from Eli Z. for Windows changes.
* - Memory cleanups, found with valgrind.Paul Smith2006-02-201-8/+8
| | | | | | - Fix handling of special targets like .SUFFIX for VMS insensitive targets. - Don't make temporary batch files for -n. Make sure batch files are created in text mode.
* Fix Savannah bug #106: keep separate track of which variable we arePaul Smith2006-02-151-17/+23
| | | | | expanding, and use that info when generating error messages instead of the file info, where appropriate.
* 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.
* Various minor updates and code cleanups.Paul Smith2005-07-121-1/+1
|
* Implementation of the second expansion in explicitBoris Kolpackov2005-02-271-1/+1
| | | | rules, static pattern rules and implicit rules.
* Fix some bugs in variable pattern substitution (e.g. $(VAR:A=B)),Paul Smith2004-09-211-41/+39
| | | | | | | | | reported by Markus Mauhart <qwe123@chello.at>. One was a simple typo; to fix the other we call patsubst_expand() for all instances of variable substitution, even when there is no '%'. We used to call subst_expand() with a special flag set in the latter case, but it didn't work properly in all situations. Easier to just use patsubst_expand() since that's what it is.
* Numerous updates and bug fixes.Paul Smith2004-03-221-1/+2
| | | | | | A number of W32 cleanups from J.Grant. A number of OS/2 cleanups from Andreas Buening. Various random bug fixes.
* Fix bugs 5798 and 6195.Paul Smith2003-11-041-0/+10
|
* Enhancement (bug #2407) Make error messages more clear.Paul Smith2003-01-301-8/+6
|
* Fix eval bugs 1516 and 1517.Paul Smith2002-10-251-0/+25
|
* Convert the source code to use ANSI C style function definitions andPaul Smith2002-10-141-31/+12
| | | | | | | | 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.
* Fix core dump on malformed variable line (Debian bug #81656)Paul Smith2002-10-051-1/+1
| | | | | Allow SysV-style variable references to use {} in addition to (). Add variable.h to the POTFILES.in since it has a translatable string.
* Install Greg McGary's patches to port the id-utils hashing functions toPaul Smith2002-07-111-1/+1
| | | | | | | 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.
* Fix Debian bug #144306: pass target-specific variables into the environmentPaul Smith2002-05-101-22/+22
| | | | | | | | | | 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.
* Some bug fixes and document updates.Paul Smith2001-01-211-31/+51
|
* * Various fixes for problems in the 3.79.0.1 pretest.Paul Smith2000-06-191-1/+5
|
* * Lots of bug fixes and cleanup; new i18n files, etc.Paul Smith2000-06-071-1/+1
|
* * A large number of fixes/enhancements. See the ChangeLog.Paul Smith2000-03-271-15/+8
| | | | * Added a new version of the German translation file.
* * Fix for dir.c from Andreas Schwab.filedef-cleanup-basePaul Smith2000-02-071-8/+17
| | | | | | * 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.
* * Fix PR/1407.Paul Smith2000-02-051-14/+1
| | | | * Keep filename/lineno information for variables, for debugging.
* * Change $(call...) to not expand arguments by default.Paul Smith2000-01-111-1/+1
| | | | * Unify the way arguments are passed to builtin functions in function.c.
* * Many cleanups and bugfixes.Paul Smith1999-11-171-8/+66
| | | | * New handling of += in target-specific variables.
* * Fix PR/1394.Paul Smith1999-10-151-4/+4
| | | | | * Apply changes from Paul Eggert. * Many other cleanups (index/rindex --> strchr/strrchr, etc.)