]> git.ipfire.org Git - thirdparty/make.git/commitdiff
Fix make.h preprocessor directive to work better with Windows compilers.
authorPaul Smith <psmith@gnu.org>
Mon, 29 Aug 2005 14:11:00 +0000 (14:11 +0000)
committerPaul Smith <psmith@gnu.org>
Mon, 29 Aug 2005 14:11:00 +0000 (14:11 +0000)
Fix some regression tests to (hopefully) work better on Windows.

ChangeLog
function.c
make.h
tests/ChangeLog
tests/scripts/features/patspecific_vars
tests/scripts/functions/abspath
tests/scripts/options/dash-I

index 067d8fc7717b66e69037a3ae8de12e20ebe89b21..d2e47e97d9f4ca0b6958756529d77754adea373a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,9 +1,20 @@
+2005-08-29  Paul D. Smith  <psmith@gnu.org>
+
+       * function.c (func_error): On Windows, output from $(info ...)
+       seems to come in the wrong order.  Try to force it with fflush().
+
 2005-08-10  Boris Kolpackov  <boris@kolpackov.net>
 
        * read.c (record_files): Move code that sets stem for static
        pattern rules out of the if (!two_colon) condition so it is
        also executed for two-colon rules. Fixes Savannah bug #13881.
 
+2005-08-08  Paul D. Smith  <psmith@gnu.org>
+
+       * make.h: Don't test that __STDC__ is non-0.  Some compilers
+       (Windows for example) set it to 0 to denote "ISO C + extensions".
+       Fixes bug # 13594.
+
 2005-08-07  Paul D. Smith  <psmith@gnu.org>
 
        * w32/pathstuff.c (getcwd_fs): Fix warning about assignment in a
index 5bf6019ab0c3e0f8908ef3169f2c13c5f204f300..47cdafaf61197e53d55582bf52b49cf7b43fc267 100644 (file)
@@ -1096,6 +1096,7 @@ func_error (char *o, char **argv, const char *funcname)
 
     case 'i':
       printf ("%s\n", msg);
+      fflush(stdout);
       break;
 
     default:
diff --git a/make.h b/make.h
index b772d7771dd27d6cb96d9184f701a60ad1194d2b..8636928e9b63bc7a93205216e9e443bda9cf0e00 100644 (file)
--- a/make.h
+++ b/make.h
@@ -42,7 +42,7 @@ char *alloca ();
 
 
 /* Use prototypes if available.  */
-#if defined (__cplusplus) || (defined (__STDC__) && __STDC__)
+#if defined (__cplusplus) || defined (__STDC__)
 # undef  PARAMS
 # define PARAMS(protos)  protos
 #else /* Not C++ or ANSI C.  */
index 84f40f63e95118486f2930d96a89f732da07d118..5e1f9488464a5f47c4cbed12694a952ca859bd5e 100644 (file)
@@ -1,3 +1,13 @@
+2005-08-29  Paul D. Smith  <psmith@gnu.org>
+
+       * scripts/functions/abspath: Add some text to the error messages
+       to get a better idea of what's wrong.  Make warnings instead of
+       errors.
+
+       * scripts/features/patspecific_vars: Don't use "test", which is
+       UNIX specific.  Print the values and let the test script match
+       them.
+
 2005-08-25  Paul Smith  <psmith@gnu.org>
 
        * scripts/variables/SHELL: Use a /./ prefix instead of //: the
index 9e98b437646adbb3b56b6620118b791c30ab2900..20c1cfceb08950a6343ad90510593a53fecfa479 100644 (file)
@@ -67,8 +67,8 @@ run_make_test('
 /%: export foo := foo
 
 /bar:
-       @test "$(foo)" = "$$foo"
-', '', '');
+       @echo $(foo) $$foo
+', '', 'foo foo');
 
 
 # TEST #6 -- test expansion of pattern-specific simple variables
index d419255a646f039ca0ff1ffd46dfbbd6d94a81fc..84c30ab8623af6187b0ceb367361e315308f1314 100644 (file)
@@ -5,68 +5,68 @@ $details = "";
 
 run_make_test('
 ifneq ($(realpath $(abspath .)),$(CURDIR))
-  $(error )
+  $(warning .: abs="$(abspath .)" real="$(realpath $(abspath .))" curdir="$(CURDIR)")
 endif
 
 ifneq ($(realpath $(abspath ./)),$(CURDIR))
-  $(error )
+  $(warning ./: abs="$(abspath ./)" real="$(realpath $(abspath ./))" curdir="$(CURDIR)")
 endif
 
 ifneq ($(realpath $(abspath .///)),$(CURDIR))
-  $(error )
+  $(warning .///: abs="$(abspath .///)" real="$(realpath $(abspath .///))" curdir="$(CURDIR)")
 endif
 
 ifneq ($(abspath /),/)
-  $(error )
+  $(warning /: abspath="$(abspath /)")
 endif
 
 ifneq ($(abspath ///),/)
-  $(error )
+  $(warning ///: abspath="$(abspath ///)")
 endif
 
 ifneq ($(abspath /.),/)
-  $(error )
+  $(warning /.: abspath="$(abspath /.)")
 endif
 
 ifneq ($(abspath ///.),/)
-  $(error )
+  $(warning ///.: abspath="$(abspath ///.)")
 endif
 
 ifneq ($(abspath /./),/)
-  $(error )
+  $(warning /./: abspath="$(abspath /./)")
 endif
 
 ifneq ($(abspath /.///),/)
-  $(error )
+  $(warning /.///: abspath="$(abspath /.///)")
 endif
 
 ifneq ($(abspath /..),/)
-  $(error )
+  $(warning /..: abspath="$(abspath /..)")
 endif
 
 ifneq ($(abspath ///..),/)
-  $(error )
+  $(warning ///..: abspath="$(abspath ///..)")
 endif
 
 ifneq ($(abspath /../),/)
-  $(error )
+  $(warning /../: abspath="$(abspath /../)")
 endif
 
 ifneq ($(abspath /..///),/)
-  $(error )
+  $(warning /..///: abspath="$(abspath /..///)")
 endif
 
 
 ifneq ($(abspath /foo/bar/..),/foo)
-  $(error )
+  $(warning /foo/bar/..: abspath="$(abspath /foo/bar/..)")
 endif
 
 ifneq ($(abspath /foo/bar/../../../baz),/baz)
-  $(error )
+  $(warning /foo/bar/../../../baz: abspath="$(abspath /foo/bar/../../../baz)")
 endif
 
 ifneq ($(abspath /foo/bar/../ /..),/foo /)
-  $(error )
+  $(warning /foo/bar/../ /..: abspath="$(abspath /foo/bar/../ /..)")
 endif
 
 
index 0be0bd7f027a094c25e0b83e02c65398e8434868..8dc5d9ba702762adb612aff48c02f167c9e94c4b 100644 (file)
@@ -1,3 +1,5 @@
+#                                                                    -*-perl-*-
+
 $description ="The following test creates a makefile to test the -I option.";
 
 $details = "\