diff options
| author | Dan Nicolaescu | 2010-04-01 20:10:33 -0700 |
|---|---|---|
| committer | Dan Nicolaescu | 2010-04-01 20:10:33 -0700 |
| commit | 42a2c62292ca811bbca455ef738fcde861644d53 (patch) | |
| tree | 047edcf83a31d6a0c29297a5ecb3ccfccafebe97 | |
| parent | 8224f93d18d7470f54d5894cb74da0168bddee44 (diff) | |
| download | emacs-42a2c62292ca811bbca455ef738fcde861644d53.tar.gz emacs-42a2c62292ca811bbca455ef738fcde861644d53.zip | |
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.
| -rw-r--r-- | lib-src/ChangeLog | 7 | ||||
| -rw-r--r-- | lib-src/emacsclient.c | 1 | ||||
| -rw-r--r-- | lib-src/etags.c | 3 | ||||
| -rw-r--r-- | lib-src/movemail.c | 3 | ||||
| -rw-r--r-- | src/ChangeLog | 22 | ||||
| -rw-r--r-- | src/buffer.c | 6 | ||||
| -rw-r--r-- | src/callproc.c | 5 | ||||
| -rw-r--r-- | src/dispnew.c | 3 | ||||
| -rw-r--r-- | src/ecrt0.c | 4 | ||||
| -rw-r--r-- | src/emacs.c | 3 | ||||
| -rw-r--r-- | src/fileio.c | 6 | ||||
| -rw-r--r-- | src/filelock.c | 3 | ||||
| -rw-r--r-- | src/floatfns.c | 4 | ||||
| -rw-r--r-- | src/keyboard.c | 4 | ||||
| -rw-r--r-- | src/lread.c | 4 | ||||
| -rw-r--r-- | src/process.c | 4 | ||||
| -rw-r--r-- | src/s/netbsd.h | 2 | ||||
| -rw-r--r-- | src/sysdep.c | 6 | ||||
| -rw-r--r-- | src/unexaix.c | 1 | ||||
| -rw-r--r-- | src/unexec.c | 3 | ||||
| -rw-r--r-- | src/w32term.c | 4 | ||||
| -rw-r--r-- | src/xrdb.c | 3 | ||||
| -rw-r--r-- | src/xterm.c | 2 |
23 files changed, 30 insertions, 73 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index 4e9c7e19ff7..ad7ce6da3c2 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2010-04-02 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 2 | |||
| 3 | Remove extern errno declarations. | ||
| 4 | * movemail.c: | ||
| 5 | * etags.c: | ||
| 6 | * emacsclient.c: Remove extern errno declarations. | ||
| 7 | |||
| 1 | 2010-03-20 Glenn Morris <rgm@gnu.org> | 8 | 2010-03-20 Glenn Morris <rgm@gnu.org> |
| 2 | 9 | ||
| 3 | * Makefile.in (KRB4LIB, DESLIB, KRB5LIB, CRYPTOLIB, COM_ERRLIB) | 10 | * Makefile.in (KRB4LIB, DESLIB, KRB5LIB, CRYPTOLIB, COM_ERRLIB) |
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index 01241b518bb..1e7ec7d9678 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c | |||
| @@ -723,7 +723,6 @@ main (argc, argv) | |||
| 723 | #define SEND_BUFFER_SIZE 4096 | 723 | #define SEND_BUFFER_SIZE 4096 |
| 724 | 724 | ||
| 725 | extern char *strerror (); | 725 | extern char *strerror (); |
| 726 | extern int errno; | ||
| 727 | 726 | ||
| 728 | /* Buffer to accumulate data to send in TCP connections. */ | 727 | /* Buffer to accumulate data to send in TCP connections. */ |
| 729 | char send_buffer[SEND_BUFFER_SIZE + 1]; | 728 | char send_buffer[SEND_BUFFER_SIZE + 1]; |
diff --git a/lib-src/etags.c b/lib-src/etags.c index 17aad9a2252..89edc6c1b27 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c | |||
| @@ -188,9 +188,6 @@ char pot_etags_version[] = "@(#) pot revision number is 17.38.1.4"; | |||
| 188 | #include <stdio.h> | 188 | #include <stdio.h> |
| 189 | #include <ctype.h> | 189 | #include <ctype.h> |
| 190 | #include <errno.h> | 190 | #include <errno.h> |
| 191 | #ifndef errno | ||
| 192 | extern int errno; | ||
| 193 | #endif | ||
| 194 | #include <sys/types.h> | 191 | #include <sys/types.h> |
| 195 | #include <sys/stat.h> | 192 | #include <sys/stat.h> |
| 196 | 193 | ||
diff --git a/lib-src/movemail.c b/lib-src/movemail.c index e0eb4d48b89..a887eb216ac 100644 --- a/lib-src/movemail.c +++ b/lib-src/movemail.c | |||
| @@ -140,9 +140,6 @@ static char *mail_spool_name (); | |||
| 140 | #endif | 140 | #endif |
| 141 | #endif | 141 | #endif |
| 142 | 142 | ||
| 143 | #ifndef errno | ||
| 144 | extern int errno; | ||
| 145 | #endif | ||
| 146 | char *strerror (); | 143 | char *strerror (); |
| 147 | #ifdef HAVE_INDEX | 144 | #ifdef HAVE_INDEX |
| 148 | extern char *index __P ((const char *, int)); | 145 | extern char *index __P ((const char *, int)); |
diff --git a/src/ChangeLog b/src/ChangeLog index 08c40c6048c..cd8eac76a3a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,25 @@ | |||
| 1 | 2010-04-02 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 2 | |||
| 3 | Remove extern errno declarations. | ||
| 4 | * xterm.c: | ||
| 5 | * xrdb.c: | ||
| 6 | * w32term.c: | ||
| 7 | * unexec.c: | ||
| 8 | * unexaix.c: | ||
| 9 | * sysdep.c: | ||
| 10 | * process.c: | ||
| 11 | * lread.c: | ||
| 12 | * keyboard.c: | ||
| 13 | * floatfns.c: | ||
| 14 | * filelock.c: | ||
| 15 | * fileio.c: | ||
| 16 | * emacs.c (main): | ||
| 17 | * ecrt0.c: | ||
| 18 | * dispnew.c: | ||
| 19 | * callproc.c: | ||
| 20 | * buffer.c: Remove errno extern declarations. | ||
| 21 | * s/netbsd.h (NEED_ERRNO): Remove. | ||
| 22 | |||
| 1 | 2010-04-01 Dan Nicolaescu <dann@ics.uci.edu> | 23 | 2010-04-01 Dan Nicolaescu <dann@ics.uci.edu> |
| 2 | 24 | ||
| 3 | Remove all uses of LIBX11_SYSTEM. | 25 | Remove all uses of LIBX11_SYSTEM. |
diff --git a/src/buffer.c b/src/buffer.c index 0c6e57d45be..9035a986b4c 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -28,11 +28,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 28 | #include <stdio.h> | 28 | #include <stdio.h> |
| 29 | #include <setjmp.h> | 29 | #include <setjmp.h> |
| 30 | 30 | ||
| 31 | #ifndef USE_CRT_DLL | ||
| 32 | extern int errno; | ||
| 33 | #endif | ||
| 34 | |||
| 35 | |||
| 36 | #ifdef HAVE_UNISTD_H | 31 | #ifdef HAVE_UNISTD_H |
| 37 | #include <unistd.h> | 32 | #include <unistd.h> |
| 38 | #endif | 33 | #endif |
| @@ -4627,7 +4622,6 @@ buffer_slot_type_mismatch (newval, type) | |||
| 4627 | #endif | 4622 | #endif |
| 4628 | 4623 | ||
| 4629 | #include <stdio.h> | 4624 | #include <stdio.h> |
| 4630 | #include <errno.h> | ||
| 4631 | 4625 | ||
| 4632 | #if MAP_ANON == 0 | 4626 | #if MAP_ANON == 0 |
| 4633 | #include <fcntl.h> | 4627 | #include <fcntl.h> |
diff --git a/src/callproc.c b/src/callproc.c index bed3302e508..378c647f385 100644 --- a/src/callproc.c +++ b/src/callproc.c | |||
| @@ -25,10 +25,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 25 | #include <stdio.h> | 25 | #include <stdio.h> |
| 26 | #include <setjmp.h> | 26 | #include <setjmp.h> |
| 27 | 27 | ||
| 28 | #ifndef USE_CRT_DLL | ||
| 29 | extern int errno; | ||
| 30 | #endif | ||
| 31 | |||
| 32 | /* Define SIGCHLD as an alias for SIGCLD. */ | 28 | /* Define SIGCHLD as an alias for SIGCLD. */ |
| 33 | 29 | ||
| 34 | #if !defined (SIGCHLD) && defined (SIGCLD) | 30 | #if !defined (SIGCHLD) && defined (SIGCLD) |
| @@ -61,7 +57,6 @@ extern int errno; | |||
| 61 | #include <fcntl.h> | 57 | #include <fcntl.h> |
| 62 | #include <sys/stat.h> | 58 | #include <sys/stat.h> |
| 63 | #include <sys/param.h> | 59 | #include <sys/param.h> |
| 64 | #include <errno.h> | ||
| 65 | #endif /* MSDOS */ | 60 | #endif /* MSDOS */ |
| 66 | 61 | ||
| 67 | #ifndef O_RDONLY | 62 | #ifndef O_RDONLY |
diff --git a/src/dispnew.c b/src/dispnew.c index 52d7f38728f..2be00c9c3b0 100644 --- a/src/dispnew.c +++ b/src/dispnew.c | |||
| @@ -5809,9 +5809,6 @@ window_change_signal (signalnum) /* If we don't have an argument, */ | |||
| 5809 | int signalnum; /* some compilers complain in signal calls. */ | 5809 | int signalnum; /* some compilers complain in signal calls. */ |
| 5810 | { | 5810 | { |
| 5811 | int width, height; | 5811 | int width, height; |
| 5812 | #ifndef USE_CRT_DLL | ||
| 5813 | extern int errno; | ||
| 5814 | #endif | ||
| 5815 | int old_errno = errno; | 5812 | int old_errno = errno; |
| 5816 | 5813 | ||
| 5817 | struct tty_display_info *tty; | 5814 | struct tty_display_info *tty; |
diff --git a/src/ecrt0.c b/src/ecrt0.c index 7dbbd6c5ef1..40549884935 100644 --- a/src/ecrt0.c +++ b/src/ecrt0.c | |||
| @@ -59,10 +59,6 @@ And always: | |||
| 59 | 59 | ||
| 60 | int data_start = 0; | 60 | int data_start = 0; |
| 61 | 61 | ||
| 62 | #ifdef NEED_ERRNO | ||
| 63 | int errno; | ||
| 64 | #endif | ||
| 65 | |||
| 66 | #ifndef MSDOS | 62 | #ifndef MSDOS |
| 67 | char **environ; | 63 | char **environ; |
| 68 | #endif | 64 | #endif |
diff --git a/src/emacs.c b/src/emacs.c index 0d90776df83..400a6b0e594 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -756,9 +756,6 @@ main (int argc, char **argv) | |||
| 756 | char stack_bottom_variable; | 756 | char stack_bottom_variable; |
| 757 | int do_initial_setlocale; | 757 | int do_initial_setlocale; |
| 758 | int skip_args = 0; | 758 | int skip_args = 0; |
| 759 | #ifndef USE_CRT_DLL | ||
| 760 | extern int errno; | ||
| 761 | #endif | ||
| 762 | #ifdef HAVE_SETRLIMIT | 759 | #ifdef HAVE_SETRLIMIT |
| 763 | struct rlimit rlim; | 760 | struct rlimit rlim; |
| 764 | #endif | 761 | #endif |
diff --git a/src/fileio.c b/src/fileio.c index 4ae74de5c67..c62d5724eff 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -53,12 +53,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 53 | #include <ctype.h> | 53 | #include <ctype.h> |
| 54 | #include <errno.h> | 54 | #include <errno.h> |
| 55 | 55 | ||
| 56 | #ifndef vax11c | ||
| 57 | #ifndef USE_CRT_DLL | ||
| 58 | extern int errno; | ||
| 59 | #endif | ||
| 60 | #endif | ||
| 61 | |||
| 62 | #include "lisp.h" | 56 | #include "lisp.h" |
| 63 | #include "intervals.h" | 57 | #include "intervals.h" |
| 64 | #include "buffer.h" | 58 | #include "buffer.h" |
diff --git a/src/filelock.c b/src/filelock.c index 7c69ea954fc..b11338c58b6 100644 --- a/src/filelock.c +++ b/src/filelock.c | |||
| @@ -47,9 +47,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 47 | #endif /* __FreeBSD__ */ | 47 | #endif /* __FreeBSD__ */ |
| 48 | 48 | ||
| 49 | #include <errno.h> | 49 | #include <errno.h> |
| 50 | #ifndef errno | ||
| 51 | extern int errno; | ||
| 52 | #endif | ||
| 53 | 50 | ||
| 54 | #include "lisp.h" | 51 | #include "lisp.h" |
| 55 | #include "buffer.h" | 52 | #include "buffer.h" |
diff --git a/src/floatfns.c b/src/floatfns.c index 97d9ec00aae..3f7030b7605 100644 --- a/src/floatfns.c +++ b/src/floatfns.c | |||
| @@ -99,10 +99,6 @@ extern double logb (); | |||
| 99 | 99 | ||
| 100 | #ifdef FLOAT_CHECK_ERRNO | 100 | #ifdef FLOAT_CHECK_ERRNO |
| 101 | # include <errno.h> | 101 | # include <errno.h> |
| 102 | |||
| 103 | #ifndef USE_CRT_DLL | ||
| 104 | extern int errno; | ||
| 105 | #endif | ||
| 106 | #endif | 102 | #endif |
| 107 | 103 | ||
| 108 | #ifdef FLOAT_CATCH_SIGILL | 104 | #ifdef FLOAT_CATCH_SIGILL |
diff --git a/src/keyboard.c b/src/keyboard.c index 3cd042fb21e..f2aeff89542 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -79,10 +79,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 79 | #include "nsterm.h" | 79 | #include "nsterm.h" |
| 80 | #endif | 80 | #endif |
| 81 | 81 | ||
| 82 | #ifndef USE_CRT_DLL | ||
| 83 | extern int errno; | ||
| 84 | #endif | ||
| 85 | |||
| 86 | /* Variables for blockinput.h: */ | 82 | /* Variables for blockinput.h: */ |
| 87 | 83 | ||
| 88 | /* Non-zero if interrupt input is blocked right now. */ | 84 | /* Non-zero if interrupt input is blocked right now. */ |
diff --git a/src/lread.c b/src/lread.c index 90edca90a16..83ebc8b3b10 100644 --- a/src/lread.c +++ b/src/lread.c | |||
| @@ -73,10 +73,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 73 | #define file_tell ftell | 73 | #define file_tell ftell |
| 74 | #endif | 74 | #endif |
| 75 | 75 | ||
| 76 | #ifndef USE_CRT_DLL | ||
| 77 | extern int errno; | ||
| 78 | #endif | ||
| 79 | |||
| 80 | /* hash table read constants */ | 76 | /* hash table read constants */ |
| 81 | Lisp_Object Qhash_table, Qdata; | 77 | Lisp_Object Qhash_table, Qdata; |
| 82 | Lisp_Object Qtest, Qsize; | 78 | Lisp_Object Qtest, Qsize; |
diff --git a/src/process.c b/src/process.c index 43fa78c7bd4..3c539024b0a 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -195,10 +195,6 @@ extern int serial_open (char *port); | |||
| 195 | extern void serial_configure (struct Lisp_Process *p, Lisp_Object contact); | 195 | extern void serial_configure (struct Lisp_Process *p, Lisp_Object contact); |
| 196 | #endif | 196 | #endif |
| 197 | 197 | ||
| 198 | #ifndef USE_CRT_DLL | ||
| 199 | extern int errno; | ||
| 200 | #endif | ||
| 201 | |||
| 202 | #ifndef HAVE_H_ERRNO | 198 | #ifndef HAVE_H_ERRNO |
| 203 | extern int h_errno; | 199 | extern int h_errno; |
| 204 | #endif | 200 | #endif |
diff --git a/src/s/netbsd.h b/src/s/netbsd.h index 5552aece50a..682b9482352 100644 --- a/src/s/netbsd.h +++ b/src/s/netbsd.h | |||
| @@ -28,8 +28,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 28 | 28 | ||
| 29 | #define LIBS_TERMCAP -ltermcap | 29 | #define LIBS_TERMCAP -ltermcap |
| 30 | 30 | ||
| 31 | #define NEED_ERRNO | ||
| 32 | |||
| 33 | #define START_FILES pre-crt0.o /usr/lib/crt0.o START_FILES_1 /usr/lib/crtbegin.o | 31 | #define START_FILES pre-crt0.o /usr/lib/crt0.o START_FILES_1 /usr/lib/crtbegin.o |
| 34 | #define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtend.o END_FILES_1 | 32 | #define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtend.o END_FILES_1 |
| 35 | #undef LIB_GCC | 33 | #undef LIB_GCC |
diff --git a/src/sysdep.c b/src/sysdep.c index 71b2a0f461b..37e7dfbaf9c 100644 --- a/src/sysdep.c +++ b/src/sysdep.c | |||
| @@ -94,12 +94,6 @@ extern int etext; | |||
| 94 | extern unsigned start __asm__ ("start"); | 94 | extern unsigned start __asm__ ("start"); |
| 95 | #endif | 95 | #endif |
| 96 | 96 | ||
| 97 | #ifndef USE_CRT_DLL | ||
| 98 | #ifndef errno | ||
| 99 | extern int errno; | ||
| 100 | #endif | ||
| 101 | #endif | ||
| 102 | |||
| 103 | #include <sys/file.h> | 97 | #include <sys/file.h> |
| 104 | 98 | ||
| 105 | #ifdef HAVE_FCNTL_H | 99 | #ifdef HAVE_FCNTL_H |
diff --git a/src/unexaix.c b/src/unexaix.c index 97b69d7e5c7..2657d144296 100644 --- a/src/unexaix.c +++ b/src/unexaix.c | |||
| @@ -435,7 +435,6 @@ write_segment (int new, char *ptr, char *end) | |||
| 435 | { | 435 | { |
| 436 | int i, nwrite, ret; | 436 | int i, nwrite, ret; |
| 437 | char buf[80]; | 437 | char buf[80]; |
| 438 | extern int errno; | ||
| 439 | char zeros[UnexBlockSz]; | 438 | char zeros[UnexBlockSz]; |
| 440 | 439 | ||
| 441 | for (i = 0; ptr < end;) | 440 | for (i = 0; ptr < end;) |
diff --git a/src/unexec.c b/src/unexec.c index 6cb27b35c36..1a27db1232d 100644 --- a/src/unexec.c +++ b/src/unexec.c | |||
| @@ -466,9 +466,6 @@ write_segment (new, ptr, end) | |||
| 466 | { | 466 | { |
| 467 | register int i, nwrite, ret; | 467 | register int i, nwrite, ret; |
| 468 | char buf[80]; | 468 | char buf[80]; |
| 469 | #ifndef USE_CRT_DLL | ||
| 470 | extern int errno; | ||
| 471 | #endif | ||
| 472 | /* This is the normal amount to write at once. | 469 | /* This is the normal amount to write at once. |
| 473 | It is the size of block that NFS uses. */ | 470 | It is the size of block that NFS uses. */ |
| 474 | int writesize = 1 << 13; | 471 | int writesize = 1 << 13; |
diff --git a/src/w32term.c b/src/w32term.c index 4ed7beda233..7222e26efd2 100644 --- a/src/w32term.c +++ b/src/w32term.c | |||
| @@ -228,10 +228,6 @@ static int input_signal_count; | |||
| 228 | 228 | ||
| 229 | extern Lisp_Object Vcommand_line_args, Vsystem_name; | 229 | extern Lisp_Object Vcommand_line_args, Vsystem_name; |
| 230 | 230 | ||
| 231 | #ifndef USE_CRT_DLL | ||
| 232 | extern int errno; | ||
| 233 | #endif | ||
| 234 | |||
| 235 | /* A mask of extra modifier bits to put into every keyboard char. */ | 231 | /* A mask of extra modifier bits to put into every keyboard char. */ |
| 236 | extern EMACS_INT extra_keyboard_modifiers; | 232 | extern EMACS_INT extra_keyboard_modifiers; |
| 237 | 233 | ||
diff --git a/src/xrdb.c b/src/xrdb.c index c8cb55cb7b8..7808bacc59f 100644 --- a/src/xrdb.c +++ b/src/xrdb.c | |||
| @@ -28,6 +28,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 28 | #include <unistd.h> | 28 | #include <unistd.h> |
| 29 | #endif | 29 | #endif |
| 30 | 30 | ||
| 31 | #include <errno.h> | ||
| 31 | #include <epaths.h> | 32 | #include <epaths.h> |
| 32 | 33 | ||
| 33 | #include <stdio.h> | 34 | #include <stdio.h> |
| @@ -734,8 +735,6 @@ fatal (msg, prog, x1, x2, x3, x4, x5) | |||
| 734 | char *msg, *prog; | 735 | char *msg, *prog; |
| 735 | int x1, x2, x3, x4, x5; | 736 | int x1, x2, x3, x4, x5; |
| 736 | { | 737 | { |
| 737 | extern int errno; | ||
| 738 | |||
| 739 | if (errno) | 738 | if (errno) |
| 740 | perror (prog); | 739 | perror (prog); |
| 741 | 740 | ||
diff --git a/src/xterm.c b/src/xterm.c index 1114fcccc53..90db15d9ed4 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -309,8 +309,6 @@ extern Lisp_Object Vx_no_window_manager; | |||
| 309 | 309 | ||
| 310 | extern Lisp_Object Qeql; | 310 | extern Lisp_Object Qeql; |
| 311 | 311 | ||
| 312 | extern int errno; | ||
| 313 | |||
| 314 | /* A mask of extra modifier bits to put into every keyboard char. */ | 312 | /* A mask of extra modifier bits to put into every keyboard char. */ |
| 315 | 313 | ||
| 316 | extern EMACS_INT extra_keyboard_modifiers; | 314 | extern EMACS_INT extra_keyboard_modifiers; |