summaryrefslogtreecommitdiff
path: root/expand.c
AgeCommit message (Collapse)AuthorFilesLines
2006-04-09Another round of cleanups:Paul Smith1-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.
2006-04-07Code cleanup: Remove all references to PARAMS() & ansi2knr.Paul Smith1-1/+1
2006-03-15Fix Savannah bug #15913.Paul Smith1-8/+8
2006-03-10Numerous updates to tests for issues found on Cygwin and Windows.Paul Smith1-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.
2006-02-20- Memory cleanups, found with valgrind.Paul Smith1-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.
2006-02-15Fix Savannah bug #106: keep separate track of which variable we arePaul Smith1-17/+23
expanding, and use that info when generating error messages instead of the file info, where appropriate.
2006-02-11Last of the copyright updates.Paul Smith1-1/+2
2006-02-11Update copyright and license notices on all files.Paul Smith1-13/+11
Added new file strcache.c to various non-UNIX makefiles and build scripts.
2005-07-12Various minor updates and code cleanups.Paul Smith1-1/+1
2005-02-27Implementation of the second expansion in explicitBoris Kolpackov1-1/+1
rules, static pattern rules and implicit rules.
2004-09-21Fix some bugs in variable pattern substitution (e.g. $(VAR:A=B)),Paul Smith1-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.
2004-03-22Numerous updates and bug fixes.Paul Smith1-1/+2
A number of W32 cleanups from J.Grant. A number of OS/2 cleanups from Andreas Buening. Various random bug fixes.
2003-11-04Fix bugs 5798 and 6195.Paul Smith1-0/+10
2003-01-30Enhancement (bug #2407) Make error messages more clear.Paul Smith1-8/+6
2002-10-25Fix eval bugs 1516 and 1517.Paul Smith1-0/+25
2002-10-14Convert the source code to use ANSI C style function definitions andPaul Smith1-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.
2002-10-05Fix core dump on malformed variable line (Debian bug #81656)Paul Smith1-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.
2002-07-11Install Greg McGary's patches to port the id-utils hashing functions toPaul Smith1-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.
2002-05-10Fix Debian bug #144306: pass target-specific variables into the environmentPaul Smith1-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.
2001-01-21Some bug fixes and document updates.Paul Smith1-31/+51
2000-06-19* Various fixes for problems in the 3.79.0.1 pretest.Paul Smith1-1/+5
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-15/+8
* Added a new version of the German translation file.
2000-02-07* Fix for dir.c from Andreas Schwab.filedef-cleanup-basePaul Smith1-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.
2000-02-05* Fix PR/1407.Paul Smith1-14/+1
* Keep filename/lineno information for variables, for debugging.
2000-01-11* Change $(call...) to not expand arguments by default.Paul Smith1-1/+1
* Unify the way arguments are passed to builtin functions in function.c.
1999-11-17* Many cleanups and bugfixes.Paul Smith1-8/+66
* New handling of += in target-specific variables.
1999-10-15* Fix PR/1394.Paul Smith1-4/+4
* Apply changes from Paul Eggert. * Many other cleanups (index/rindex --> strchr/strrchr, etc.)
1999-08-13* Rework jobserver yet one more time.Paul Smith1-1/+4
* Install the $(if ...) function and document it. Still need some examples.
1999-07-28* Add gettext macros to start i18n support.Paul Smith1-3/+4
1999-06-14* Various bug fixes.Paul Smith1-1/+1
1999-03-05* Update FSF address info in copyright notices.Paul Smith1-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.
1998-10-03Checkpoint changes. Bug fixes, mostly.Paul Smith1-31/+9
1998-07-30GNU make release 3.77.Paul Smith1-17/+72
1996-03-20Tue Mar 19 20:21:34 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>Roland McGrath1-1/+2
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.
1995-02-06Cast results of `alloca' to `char *' in two places.Roland McGrath1-3/+5
1995-01-15(variable_expand): Fix braino in last change.3.72.4Roland McGrath1-1/+1
1995-01-15(variable_expand): Rewrote computed variable name and substitutionRoland McGrath1-110/+92
reference handling to be simpler. First expand the entire text between the parens if it contains any $s, then examine the result of that for subtitution references and do no further expansion while parsing them.
1993-08-30entered into RCSRoland McGrath1-1/+8
1993-06-25Formerly expand.c.~9~Roland McGrath1-1/+27
1993-05-06Formerly expand.c.~8~Roland McGrath1-44/+87
1993-02-03Formerly expand.c.~7~Roland McGrath1-2/+2
1992-12-22Formerly expand.c.~6~Roland McGrath1-1/+1
1992-10-25Formerly expand.c.~5~Roland McGrath1-1/+1
1992-06-16Formerly expand.c.~4~Roland McGrath1-1/+3
1992-06-12Formerly expand.c.~3~Roland McGrath1-1/+1
1992-06-11Formerly expand.c.~2~Roland McGrath1-14/+66
1991-09-13Initial revisionRoland McGrath1-0/+342