summaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2004-09-21 12:07:12 +0000
committerPaul Smith <psmith@gnu.org>2004-09-21 12:07:12 +0000
commit704c60cec021d75164c8a7c34bcd667e45f184e3 (patch)
treef910a966cede38013d111434ecf8e08e6547acd3 /ChangeLog
parent9714e501fb356adb043c77a3180a7f8c16c1484d (diff)
downloadgunmake-704c60cec021d75164c8a7c34bcd667e45f184e3.tar.gz
Remove sindex() and replace with strstr().
Windows: allow users to set SHELL to cmd.exe and have it behave as if no UNIX shell were found.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog20
1 files changed, 20 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 9b2f30d..b5af21e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,23 @@
+2004-09-21 Paul D. Smith <psmith@gnu.org>
+
+ * misc.c: Removed the sindex() function. All instances of this
+ function were trivially replaceable by the standard strstr()
+ function, and that function will always have better (or certainly
+ no worse) performance than the very simple-minded algorithm
+ sindex() used. This can matter with complex makefiles.
+ * make.h: Remove the prototype for sindex().
+ * function.c (subst_expand): Convert sindex() call to strstr().
+ This means we no longer need to track the TLEN value so remove that.
+ (func_findstring): Convert sindex() to strstr().
+ * commands.c (chop_commands): Convert sindex() calls to strstr().
+ Suggested by: Markus Mauhart <qwe123@chello.at>.
+
+ * main.c (find_and_set_default_shell) [WINDOWS32]: Implement the
+ idea behind Savannah Patch #3144 from david.baird@homemail.com.
+ If SHELL is set to CMD.EXE then assume it's batch-mode and
+ non-unixy. I wrote the code differently from the patch, though,
+ to make it safer.
+
2004-09-20 Paul D. Smith <psmith@gnu.org>
* expand.c (variable_expand_string): Modify to invoke