Mercurial > emacs
changeset 107737:912a8c0c9a8a
Remove extern errno declarations.
* xterm.c:
* xrdb.c:
* w32term.c:
* unexec.c:
* unexaix.c:
* sysdep.c:
* process.c:
* lread.c:
* keyboard.c:
* floatfns.c:
* filelock.c:
* fileio.c:
* emacs.c (main):
* ecrt0.c:
* dispnew.c:
* callproc.c:
* buffer.c: Remove errno extern declarations.
* s/netbsd.h (NEED_ERRNO): Remove.
* movemail.c:
* etags.c:
* emacsclient.c: Remove extern errno declarations.
author | Dan Nicolaescu <dann@ics.uci.edu> |
---|---|
date | Thu, 01 Apr 2010 20:10:33 -0700 |
parents | 1f5000fd5ff7 |
children | 155a24f82f81 |
files | lib-src/ChangeLog lib-src/emacsclient.c lib-src/etags.c lib-src/movemail.c src/ChangeLog src/buffer.c src/callproc.c src/dispnew.c src/ecrt0.c src/emacs.c src/fileio.c src/filelock.c src/floatfns.c src/keyboard.c src/lread.c src/process.c src/s/netbsd.h src/sysdep.c src/unexaix.c src/unexec.c src/w32term.c src/xrdb.c src/xterm.c |
diffstat | 23 files changed, 30 insertions(+), 73 deletions(-) [+] |
line wrap: on
line diff
--- a/lib-src/ChangeLog Thu Apr 01 16:08:14 2010 -0700 +++ b/lib-src/ChangeLog Thu Apr 01 20:10:33 2010 -0700 @@ -1,3 +1,10 @@ +2010-04-02 Dan Nicolaescu <dann@ics.uci.edu> + + Remove extern errno declarations. + * movemail.c: + * etags.c: + * emacsclient.c: Remove extern errno declarations. + 2010-03-20 Glenn Morris <rgm@gnu.org> * Makefile.in (KRB4LIB, DESLIB, KRB5LIB, CRYPTOLIB, COM_ERRLIB)
--- a/lib-src/emacsclient.c Thu Apr 01 16:08:14 2010 -0700 +++ b/lib-src/emacsclient.c Thu Apr 01 20:10:33 2010 -0700 @@ -723,7 +723,6 @@ #define SEND_BUFFER_SIZE 4096 extern char *strerror (); -extern int errno; /* Buffer to accumulate data to send in TCP connections. */ char send_buffer[SEND_BUFFER_SIZE + 1];
--- a/lib-src/etags.c Thu Apr 01 16:08:14 2010 -0700 +++ b/lib-src/etags.c Thu Apr 01 20:10:33 2010 -0700 @@ -188,9 +188,6 @@ #include <stdio.h> #include <ctype.h> #include <errno.h> -#ifndef errno - extern int errno; -#endif #include <sys/types.h> #include <sys/stat.h>
--- a/lib-src/movemail.c Thu Apr 01 16:08:14 2010 -0700 +++ b/lib-src/movemail.c Thu Apr 01 20:10:33 2010 -0700 @@ -140,9 +140,6 @@ #endif #endif -#ifndef errno -extern int errno; -#endif char *strerror (); #ifdef HAVE_INDEX extern char *index __P ((const char *, int));
--- a/src/ChangeLog Thu Apr 01 16:08:14 2010 -0700 +++ b/src/ChangeLog Thu Apr 01 20:10:33 2010 -0700 @@ -1,3 +1,25 @@ +2010-04-02 Dan Nicolaescu <dann@ics.uci.edu> + + Remove extern errno declarations. + * xterm.c: + * xrdb.c: + * w32term.c: + * unexec.c: + * unexaix.c: + * sysdep.c: + * process.c: + * lread.c: + * keyboard.c: + * floatfns.c: + * filelock.c: + * fileio.c: + * emacs.c (main): + * ecrt0.c: + * dispnew.c: + * callproc.c: + * buffer.c: Remove errno extern declarations. + * s/netbsd.h (NEED_ERRNO): Remove. + 2010-04-01 Dan Nicolaescu <dann@ics.uci.edu> Remove all uses of LIBX11_SYSTEM.
--- a/src/buffer.c Thu Apr 01 16:08:14 2010 -0700 +++ b/src/buffer.c Thu Apr 01 20:10:33 2010 -0700 @@ -28,11 +28,6 @@ #include <stdio.h> #include <setjmp.h> -#ifndef USE_CRT_DLL -extern int errno; -#endif - - #ifdef HAVE_UNISTD_H #include <unistd.h> #endif @@ -4627,7 +4622,6 @@ #endif #include <stdio.h> -#include <errno.h> #if MAP_ANON == 0 #include <fcntl.h>
--- a/src/callproc.c Thu Apr 01 16:08:14 2010 -0700 +++ b/src/callproc.c Thu Apr 01 20:10:33 2010 -0700 @@ -25,10 +25,6 @@ #include <stdio.h> #include <setjmp.h> -#ifndef USE_CRT_DLL -extern int errno; -#endif - /* Define SIGCHLD as an alias for SIGCLD. */ #if !defined (SIGCHLD) && defined (SIGCLD) @@ -61,7 +57,6 @@ #include <fcntl.h> #include <sys/stat.h> #include <sys/param.h> -#include <errno.h> #endif /* MSDOS */ #ifndef O_RDONLY
--- a/src/dispnew.c Thu Apr 01 16:08:14 2010 -0700 +++ b/src/dispnew.c Thu Apr 01 20:10:33 2010 -0700 @@ -5809,9 +5809,6 @@ int signalnum; /* some compilers complain in signal calls. */ { int width, height; -#ifndef USE_CRT_DLL - extern int errno; -#endif int old_errno = errno; struct tty_display_info *tty;
--- a/src/ecrt0.c Thu Apr 01 16:08:14 2010 -0700 +++ b/src/ecrt0.c Thu Apr 01 20:10:33 2010 -0700 @@ -59,10 +59,6 @@ int data_start = 0; -#ifdef NEED_ERRNO -int errno; -#endif - #ifndef MSDOS char **environ; #endif
--- a/src/emacs.c Thu Apr 01 16:08:14 2010 -0700 +++ b/src/emacs.c Thu Apr 01 20:10:33 2010 -0700 @@ -756,9 +756,6 @@ char stack_bottom_variable; int do_initial_setlocale; int skip_args = 0; -#ifndef USE_CRT_DLL - extern int errno; -#endif #ifdef HAVE_SETRLIMIT struct rlimit rlim; #endif
--- a/src/fileio.c Thu Apr 01 16:08:14 2010 -0700 +++ b/src/fileio.c Thu Apr 01 20:10:33 2010 -0700 @@ -53,12 +53,6 @@ #include <ctype.h> #include <errno.h> -#ifndef vax11c -#ifndef USE_CRT_DLL -extern int errno; -#endif -#endif - #include "lisp.h" #include "intervals.h" #include "buffer.h"
--- a/src/filelock.c Thu Apr 01 16:08:14 2010 -0700 +++ b/src/filelock.c Thu Apr 01 20:10:33 2010 -0700 @@ -47,9 +47,6 @@ #endif /* __FreeBSD__ */ #include <errno.h> -#ifndef errno -extern int errno; -#endif #include "lisp.h" #include "buffer.h"
--- a/src/floatfns.c Thu Apr 01 16:08:14 2010 -0700 +++ b/src/floatfns.c Thu Apr 01 20:10:33 2010 -0700 @@ -99,10 +99,6 @@ #ifdef FLOAT_CHECK_ERRNO # include <errno.h> - -#ifndef USE_CRT_DLL -extern int errno; -#endif #endif #ifdef FLOAT_CATCH_SIGILL
--- a/src/keyboard.c Thu Apr 01 16:08:14 2010 -0700 +++ b/src/keyboard.c Thu Apr 01 20:10:33 2010 -0700 @@ -79,10 +79,6 @@ #include "nsterm.h" #endif -#ifndef USE_CRT_DLL -extern int errno; -#endif - /* Variables for blockinput.h: */ /* Non-zero if interrupt input is blocked right now. */
--- a/src/lread.c Thu Apr 01 16:08:14 2010 -0700 +++ b/src/lread.c Thu Apr 01 20:10:33 2010 -0700 @@ -73,10 +73,6 @@ #define file_tell ftell #endif -#ifndef USE_CRT_DLL -extern int errno; -#endif - /* hash table read constants */ Lisp_Object Qhash_table, Qdata; Lisp_Object Qtest, Qsize;
--- a/src/process.c Thu Apr 01 16:08:14 2010 -0700 +++ b/src/process.c Thu Apr 01 20:10:33 2010 -0700 @@ -195,10 +195,6 @@ extern void serial_configure (struct Lisp_Process *p, Lisp_Object contact); #endif -#ifndef USE_CRT_DLL -extern int errno; -#endif - #ifndef HAVE_H_ERRNO extern int h_errno; #endif
--- a/src/s/netbsd.h Thu Apr 01 16:08:14 2010 -0700 +++ b/src/s/netbsd.h Thu Apr 01 20:10:33 2010 -0700 @@ -28,8 +28,6 @@ #define LIBS_TERMCAP -ltermcap -#define NEED_ERRNO - #define START_FILES pre-crt0.o /usr/lib/crt0.o START_FILES_1 /usr/lib/crtbegin.o #define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtend.o END_FILES_1 #undef LIB_GCC
--- a/src/sysdep.c Thu Apr 01 16:08:14 2010 -0700 +++ b/src/sysdep.c Thu Apr 01 20:10:33 2010 -0700 @@ -94,12 +94,6 @@ extern unsigned start __asm__ ("start"); #endif -#ifndef USE_CRT_DLL -#ifndef errno -extern int errno; -#endif -#endif - #include <sys/file.h> #ifdef HAVE_FCNTL_H
--- a/src/unexaix.c Thu Apr 01 16:08:14 2010 -0700 +++ b/src/unexaix.c Thu Apr 01 20:10:33 2010 -0700 @@ -435,7 +435,6 @@ { int i, nwrite, ret; char buf[80]; - extern int errno; char zeros[UnexBlockSz]; for (i = 0; ptr < end;)
--- a/src/unexec.c Thu Apr 01 16:08:14 2010 -0700 +++ b/src/unexec.c Thu Apr 01 20:10:33 2010 -0700 @@ -466,9 +466,6 @@ { register int i, nwrite, ret; char buf[80]; -#ifndef USE_CRT_DLL - extern int errno; -#endif /* This is the normal amount to write at once. It is the size of block that NFS uses. */ int writesize = 1 << 13;
--- a/src/w32term.c Thu Apr 01 16:08:14 2010 -0700 +++ b/src/w32term.c Thu Apr 01 20:10:33 2010 -0700 @@ -228,10 +228,6 @@ extern Lisp_Object Vcommand_line_args, Vsystem_name; -#ifndef USE_CRT_DLL -extern int errno; -#endif - /* A mask of extra modifier bits to put into every keyboard char. */ extern EMACS_INT extra_keyboard_modifiers;
--- a/src/xrdb.c Thu Apr 01 16:08:14 2010 -0700 +++ b/src/xrdb.c Thu Apr 01 20:10:33 2010 -0700 @@ -28,6 +28,7 @@ #include <unistd.h> #endif +#include <errno.h> #include <epaths.h> #include <stdio.h> @@ -734,8 +735,6 @@ char *msg, *prog; int x1, x2, x3, x4, x5; { - extern int errno; - if (errno) perror (prog);