]> git.ipfire.org Git - thirdparty/make.git/commitdiff
Fix HAVE_BROKEN_RESTART logic.
authorPaul Smith <psmith@gnu.org>
Wed, 11 Sep 2002 16:55:44 +0000 (16:55 +0000)
committerPaul Smith <psmith@gnu.org>
Wed, 11 Sep 2002 16:55:44 +0000 (16:55 +0000)
Fix hash.h typos (only noticed when using Windows).
Update .cvsignore files.

.cvsignore
ChangeLog
config/.cvsignore [new file with mode: 0644]
doc/.cvsignore [new file with mode: 0644]
glob/.cvsignore
hash.h
make.h
misc.c
po/.cvsignore
tests/.cvsignore [new file with mode: 0644]

index 35c5d2347fe466753c6f782c28cc26ebeebbc8f8..7fc3895f003eea9f695b2b3f3ec80d5dc28c0e13 100644 (file)
@@ -1,6 +1,6 @@
 *.gz *.Z *.tar *.tgz
 =*
-TODO COPYING*
+TODO COPYING* ABOUT-NLS
 make-3* make-test*
 *.info *.info-*
 stamp-*
@@ -12,7 +12,8 @@ makebook*
 *.cp *.cps *.fn *.fns *.vr *.vrs *.tp *.tps *.ky *.kys *.pg *.pgs
 
 README README.DOS README.W32
-aclocal.m4 config.h.in config.h config.status config.cache configure
+aclocal.m4 autom4te.cache
+config.h.in config.h config.status config.cache configure
 Makefile.in Makefile
 build.sh.in build.sh
 SMakefile NMakefile Makefile.DOS
index 4891382411a2c7bd36876e6e6274ad3b2e30fa38..b539477f58abf056bdaa8176cc32d0a43ef9f73c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2002-09-11  Paul D. Smith  <psmith@gnu.org>
+
+       * hash.h (STRING_COMPARE, ISTRING_COMPARE, STRING_N_COMPARE): Fix
+       macro to use RESULT instead of the incorrect _RESULT_.
+
+       * make.h (HAVE_BROKEN_RESTART): Add prototypes for atomic_stat()
+       and atomic_readdir().  We need to #include dirent.h to get this to
+       work.
+       * misc.c (atomic_readdir): Fix typos.
+
 2002-09-10  Paul D. Smith  <psmith@gnu.org>
 
        * read.c (eval): Expand variable lists given to export and
diff --git a/config/.cvsignore b/config/.cvsignore
new file mode 100644 (file)
index 0000000..3fa7c2f
--- /dev/null
@@ -0,0 +1,4 @@
+*.m4
+config.*
+
+Makefile Makefile.in
diff --git a/doc/.cvsignore b/doc/.cvsignore
new file mode 100644 (file)
index 0000000..94240d6
--- /dev/null
@@ -0,0 +1,7 @@
+Makefile Makefile.in
+fdl.texi make-stds.texi texinfo.tex
+make.info*
+make*.html
+make.aux make.cp make.cps make.fn make.fns make.ky
+make.pg make.toc make.tp make.vr make.log
+make.dvi make.ps make.pdf
index e8e7be49d4f9742dad49ba53d41ce46a1a317f60..efc8094e5ff918addec5885a91a0e15c8b0f0e53 100644 (file)
@@ -1 +1,2 @@
-.deps Makefile.in
+Makefile Makefile.in
+.deps
diff --git a/hash.h b/hash.h
index c1b3ea46d2674d813933c339e168e5898a128bd5..405f1dab7f913670ebdfdbd867928aec11b953e8 100644 (file)
--- a/hash.h
+++ b/hash.h
@@ -104,7 +104,7 @@ extern void *hash_deleted_item;
 } while (0)
 
 #define STRING_COMPARE(X, Y, RESULT) do { \
-  _RESULT_ = strcmp ((X), (Y)); \
+  RESULT = strcmp ((X), (Y)); \
 } while (0)
 #define return_STRING_COMPARE(X, Y) do { \
   return strcmp ((X), (Y)); \
@@ -140,7 +140,7 @@ extern void *hash_deleted_item;
 } while (0)
 
 #define STRING_N_COMPARE(X, Y, N, RESULT) do { \
-  _RESULT_ = strncmp ((X), (Y), (N)); \
+  RESULT = strncmp ((X), (Y), (N)); \
 } while (0)
 #define return_STRING_N_COMPARE(X, Y, N) do { \
   return strncmp ((X), (Y), (N)); \
@@ -173,7 +173,7 @@ extern void *hash_deleted_item;
 } while (0)
 
 #define ISTRING_COMPARE(X, Y, RESULT) do { \
-  _RESULT_ = strcmpi ((X), (Y)); \
+  RESULT = strcmpi ((X), (Y)); \
 } while (0)
 #define return_ISTRING_COMPARE(X, Y) do { \
   return strcmpi ((X), (Y)); \
diff --git a/make.h b/make.h
index 2e354c9fb519f78a35848151de3e9e03657541c4..6648ea0dbac7c74502ea0bce4e371b56c0a2a27a 100644 (file)
--- a/make.h
+++ b/make.h
@@ -547,7 +547,16 @@ extern int handling_fatal_signal;
 
 #ifdef HAVE_BROKEN_RESTART
 
+/* Here we make an assumption that a system with a broken SA_RESTART has
+   dirent.h.  Right now the only system I know of in this category is PTX, and
+   it does have dirent.h.
+*/
+#include <dirent.h>
+
 #define stat(_f,_b)     atomic_stat ((_f), (_b))
 #define readdir(_d)     atomic_readdir (_d)
 
+extern int atomic_stat PARAMS ((const char *file, struct stat *buf));
+extern struct dirent *atomic_readdir PARAMS ((DIR *dir));
+
 #endif
diff --git a/misc.c b/misc.c
index 669dabc621c26f2777e766c29bbad1f399c5bcd0..789bb704e884b533a9f44cdca56b94bd640a9d33 100644 (file)
--- a/misc.c
+++ b/misc.c
@@ -879,11 +879,11 @@ atomic_stat(file, buf)
 
 struct dirent *
 atomic_readdir(dir)
-     DIR *file;
+     DIR *dir;
 {
   struct dirent *r;
 
-  while ((r = readdir (file, buf)) == NULL)
+  while ((r = readdir (dir)) == NULL)
     if (errno != EINTR)
       break;
 
index 32b4d6f1c948d354aa50af7c3227c559ded4a0d9..d01e6b30127ebf76adcb461bf05ae334dad9d816 100644 (file)
@@ -1,4 +1,6 @@
 *.gmo *.mo *.pot *.po
 
-Makefile.in Makefile
+Makefile Makefile.in Makefile.in.in
+Rules-quot
+*.sed *.sin *.header
 POTFILES
diff --git a/tests/.cvsignore b/tests/.cvsignore
new file mode 100644 (file)
index 0000000..b8f99f5
--- /dev/null
@@ -0,0 +1 @@
+work