summaryrefslogtreecommitdiff
path: root/misc.c
AgeCommit message (Collapse)AuthorFilesLines
2013-01-20Rename struct floc to typedef gmk_floc as an externally scoped symbol.Paul Smith1-4/+4
2013-01-20Rename the make.h file to makeint.h for internal use only.Paul Smith1-1/+1
2012-03-05Simplify copyrights using ranges of years.Paul Smith1-3/+1
The new GNU Maintainer's Manual allows the use of year ranges in certain situations; take advantage of this simplification.
2012-03-04Convert all "`'" quotes to "''" per new GNU Coding Standard guidelines.Paul Smith1-2/+2
Fixes Savannah bug #34530.
2012-03-03Modify backslash/newline handling for POSIX.Paul Smith1-3/+8
We fixed Savannah 16670 but that broke previously-working makefiles that relied on the GNU make behavior. The POSIX behavior doesn't seem to me to be better, and can be obtained using GNU make as well, so put it back as the default behavior and require .POSIX to get the POSIX behavior. Add a new section to the manual discussing backslash/newline handling. Update the test suite.
2012-01-16Update copyright notices.Paul Smith1-3/+3
2011-11-14Changes to resolve warnings.Paul Smith1-1/+1
Fixes Savannah bug #34608.
2010-11-06Improve backslash/newline handling to adhere to POSIX requirements.Paul Smith1-3/+0
2010-07-19- Many fixup patches from Savannah.Paul Smith1-0/+28
- Fix the test suite on Solaris (from Boris) - Update the manual for .ONESHELL
2010-07-16Fix buffer overrun in concat().Boris Kolpackov1-0/+8
2010-07-13Update copyrights for 2010.Paul Smith1-2/+2
2009-10-25Update copyright years.Paul Smith1-2/+2
2009-09-24- Rework secondary expansion so we only defer it if there's a possibilityPaul Smith1-3/+6
it might be needed: for most situations we parse prereqs immediately as we used to. Reduces memory usage. - Fixes Savannah bug #18622.
2009-09-16- Add xcalloc() and call itPaul Smith1-37/+48
- 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
2009-06-04- Modify access of config and gnulib Savannah modules to use GITPaul Smith1-2/+4
- Fix Savannah bug #24655. - Fix Savannah bug #24588. - Fix Savannah bug #24277. - Fix Savannah bug #25697. - Fix Savannah bug #25694. - Fix Savannah bug #25460. - Fix Savannah bug #26207. - Fix Savannah bug #25712. - Fix Savannah bug #26593. - Fix various doc issues.
2009-05-24Found this change in an old CVS workspace: rewrite savestring() to thePaul Smith1-6/+14
more standard xstrndup().
2007-07-04* Update to GPLv3Paul Smith1-4/+4
* Update copyright to 2007 * Fix download URL for translation files (thanks to Thiemo Seufer)
2007-05-09Fix Savannah bug #19656: rationalize our use of case-insensitive stringPaul Smith1-0/+27
comparison functions to always use POSIX strcasecmp(). For non-POSIX systems that use other functions (strcmpi or stricmp) use a macro to alias strcasecmp to those. If we can't find any of them (VMS, plus whatever UNIX doesn't have them) then define our own version in misc.c.
2007-03-20This is a major update, which switches virtually every allocated-but-not-freedPaul Smith1-63/+38
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-04-09Another round of cleanups:Paul Smith1-18/+18
- 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-01Release GNU make 3.81.Paul Smith1-1/+1
Update NEWS docs. Enhance the manual to use automake version.texi, and use the canonical FSF copyright features and statement. Some $(realpath ...) tests won't work on Windows; leave them out The jobserver filedescriptor test might fail if some FDs are reserved, so for now comment out that check.
2006-03-17Fixed Savannah bug #16053.Boris Kolpackov1-4/+32
2006-02-11Last of the copyright updates.Paul Smith1-1/+2
2006-02-11More copyright/license updates.Paul Smith1-14/+11
2005-10-24Make second expansion optional (partial implementation).Paul Smith1-1/+16
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.
2005-06-25Fix Savannah bug #1454: skip over semicolons (and comments) inside variablePaul Smith1-16/+0
references in target definition lines.
2005-06-12Fix Savannah bug # 1328: if stdout is redirected to a full filesystem, wePaul Smith1-0/+47
check for this and exit with an error. The closeout.c version from gnulib pulls in too much other stuff, and gnulib requires an ANSI C 89 compliant compiler, while GNU make (so far) still wants to work on K&R.
2005-02-28* New feature: -L optionPaul Smith1-2/+2
* 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)
2005-02-27Implementation of the .DEFAULT_TARGET special variable.Boris Kolpackov1-9/+9
2005-02-27Implementation of the second expansion in explicitBoris Kolpackov1-0/+21
rules, static pattern rules and implicit rules.
2004-09-21Remove sindex() and replace with strstr().Paul Smith1-28/+0
Windows: allow users to set SHELL to cmd.exe and have it behave as if no UNIX shell were found.
2004-03-06Don't use __STDC__; some compilers don't set it properly.Paul Smith1-3/+3
Use autoconf's test to set HAVE_ANSI_COMPILER and check that instead.
2004-03-04Updates to automate generation of GNU upload artifacts.Paul Smith1-3/+3
Fix a problem compiling on old, pre-ANSI systems. getloadavg test is still broken, but make builds. Document a breakage on SunOS 4.x systems.
2004-02-23Numerous fixes: patches for OS/2; core for -f ''; makefile updates.Paul Smith1-10/+9
2004-01-07Fix order-only prerequisites for pattern rules. (Savannah patch #2349).Paul Smith1-1/+4
Add a regression test for this. Older libraries don't allow *alloc(0), so make sure we don't ever do that.
2003-01-30Portability fix for glob.h building in FreeBSD ports system.Paul Smith1-32/+0
Implement a fix for bug # 2169: too many OSs, even major OSs like Solaris, don't properly implement SA_RESTART: important system calls like stat() can still fail when SA_RESTART is set. So, forget the BROKEN_RESTART config check and get rid of atomic_stat() and atomic_readdir(), and implement permanent wrappers for EINTR checking on various system calls (stat(), fstat(), opendir(), and readdir() so far).
2002-10-14Convert the source code to use ANSI C style function definitions andPaul Smith1-60/+29
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-09-12Fixups for the release. One bug fix, some automake complaint fixes,Paul Smith1-1/+1
and a function return type fix for older systems.
2002-09-11Fix HAVE_BROKEN_RESTART logic.Paul Smith1-2/+2
Fix hash.h typos (only noticed when using Windows). Update .cvsignore files.
2002-09-10Add support for broken SA_RESTART on PTX.Paul Smith1-0/+35
Fix bug #103: allow ifdef, export, and unexport to expand their arguments.
2002-08-08Change the version.Paul Smith1-2/+2
Update to require new gettext. Change hash.c to by K&R. Redo some strings to make i18n simpler.
2002-07-11Install Greg McGary's patches to port the id-utils hashing functions toPaul Smith1-2/+3
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-6/+4
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-7/+7
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-5/+5
Fixed some translation string issues.
2000-06-20* More updates and fixes.Paul Smith1-0/+1
2000-06-07* Lots of bug fixes and cleanup; new i18n files, etc.Paul Smith1-4/+5
1999-11-22* Add new debugging output level selection feature.Paul Smith1-3/+3
1999-10-15* Fix PR/1394.Paul Smith1-1/+1
* Apply changes from Paul Eggert. * Many other cleanups (index/rindex --> strchr/strrchr, etc.)
1999-07-28* Add gettext macros to start i18n support.Paul Smith1-7/+7