Fix HAVE_BROKEN_RESTART logic.

Fix hash.h typos (only noticed when using Windows).
Update .cvsignore files.
This commit is contained in:
Paul Smith 2002-09-11 16:55:44 +00:00
parent 5df75e7265
commit 4a11acf047
10 changed files with 44 additions and 9 deletions

View 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

View file

@ -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

4
config/.cvsignore Normal file
View file

@ -0,0 +1,4 @@
*.m4
config.*
Makefile Makefile.in

7
doc/.cvsignore Normal file
View file

@ -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

View file

@ -1 +1,2 @@
.deps Makefile.in
Makefile Makefile.in
.deps

6
hash.h
View file

@ -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)); \

9
make.h
View file

@ -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

4
misc.c
View file

@ -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;

View file

@ -1,4 +1,6 @@
*.gmo *.mo *.pot *.po
Makefile.in Makefile
Makefile Makefile.in Makefile.in.in
Rules-quot
*.sed *.sin *.header
POTFILES

1
tests/.cvsignore Normal file
View file

@ -0,0 +1 @@
work