From 704c60cec021d75164c8a7c34bcd667e45f184e3 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Tue, 21 Sep 2004 12:07:12 +0000 Subject: 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. --- ChangeLog | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 9b2f30d..b5af21e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,23 @@ +2004-09-21 Paul D. Smith + + * 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 . + + * 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 * expand.c (variable_expand_string): Modify to invoke -- cgit v1.2.3