summaryrefslogtreecommitdiff
path: root/misc.c
AgeCommit message (Collapse)AuthorFilesLines
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
1999-07-21* Add configure option to enable dmalloc library.Paul Smith1-14/+30
* Various code cleanups.
1999-03-19* Add strneq() (streq only n chars) macroPaul Smith1-1/+1
* fix return type of xstrdup.
1999-03-05* Define and use xstrdup() instead of strdup().Paul Smith1-0/+23
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-58/+101
1998-07-30GNU make release 3.77.Paul Smith1-3/+7
1997-08-27Updates for GNU make 3.75.92.Paul Smith1-1/+1
1997-04-07Changes for make 3.75.1Paul Smith1-1/+1
1996-05-22Wed May 15 10:14:14 CDT 1996 Rob Tulloh <tulloh@tivoli.com>Roland McGrath1-0/+31
* dir.c: WIN32 does not support inode. For now, fully qualified pathname along with st_mtime will be keys for files. Fixed problem where vpath can be confused when files are added to a directory after the directory has already been read in. The code now attempts to reread the directory if it discovers that the datestamp on the directory has changed since it was cached by make. This problem only seems to occur on WIN32 right now so it is lumped under port #ifdef WIN32. * function.c: WIN32: call subproc library (CreateProcess()) instead of fork/exec. * job.c: WIN32: Added the code to do fork/exec/waitpid style processing on WIN32 systems via calls to subproc library. * main.c: WIN32: Several things added here. First, there is code for dealing with PATH and SHELL defaults. Make tries to figure out if the user has %PATH% set in the environment and sets it to %Path% if it is not set already. Make also looks to see if sh.exe is anywhere to be found. Code path through job.c will change based on existence of a working Bourne shell. The checking for default shell is done twice: once before makefiles are read in and again after. Fall back to MSDOS style execution mode if no sh.exe is found. Also added some debug support that allows user to pause make with -D switch and attach a debugger. This is especially useful for debugging recursive calls to make where problems appear only in the sub-make. * make.h: WIN32: A few macros and header files for WIN32 support. * misc.c: WIN32: Added a function end_of_token_w32() to assist in parsing code in read.c. * read.c: WIN32: Fixes similar to MSDOS which allow colon to appear in filenames. Use of colon in filenames would otherwise confuse make. * remake.c: WIN32: Added include of io.h to eliminate compiler warnings. Added some code to default LIBDIR if it is not set on WIN32. * variable.c: WIN32: Added support for detecting Path/PATH and converting them to semicolon separated lists for make's internal use. New function sync_Path_environment() which is called in job.c and function.c before creating a new process. Caller must set Path in environment since we don't have fork() to do this for us. * vpath.c: WIN32: Added detection for filenames containing forward or backward slashes. * NMakefile: WIN32: Visual C compatible makefile for use with nmake. Use this to build GNU make the first time on Windows NT or Windows 95. * README.WIN32: WIN32: Contains some helpful notes. * build_w32.bat: WIN32: If you don't like nmake, use this the first time you build GNU make on Windows NT or Windows 95. * config.h.WIN32: WIN32 version of config.h * subproc.bat: WIN32: A bat file used to build the subproc library from the top-level NMakefile. Needed because WIndows 95 (nmake) doesn't allow you to cd in a make rule. * w32/include/dirent.h * w32/compat/dirent.c: WIN32: opendir, readdir, closedir, etc. * w32/include/pathstuff.h: WIN32: used by files needed functions defined in pathstuff.c (prototypes). * w32/include/sub_proc.h: WIN32: prototypes for subproc.lib functions. * w32/include/w32err.h: WIN32: prototypes for w32err.c. * w32/pathstuff.c: WIN32: File and Path/Path conversion functions. * w32/subproc/build.bat: WIN32: build script for subproc library if you don't wish to use nmake. * w32/subproc/NMakefile: WIN32: Visual C compatible makefile for use with nmake. Used to build subproc library. * w32/subproc/misc.c: WIN32: subproc library support code * w32/subproc/proc.h: WIN32: subproc library support code * w32/subproc/sub_proc.c: WIN32: subproc library source code * w32/subproc/w32err.c: WIN32: subproc library support code
1996-03-20Tue Mar 19 20:21:34 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>Roland McGrath1-0/+4
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-12-12(collapse_continuations): Fix skipping of trailing \s so it can neverRoland McGrath1-3/+2
dereference before the beginning of the array.
1995-12-12(safe_stat): Function removed.Roland McGrath1-20/+0
1995-11-26(message): Take new arg PREFIX. Print "make: " only if nonzero.Roland McGrath1-7/+25
1995-03-10Changed find_char_unquote callers here too.Roland McGrath1-1/+1