]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove extern errno declarations.
authorDan Nicolaescu <dann@ics.uci.edu>
Fri, 2 Apr 2010 03:10:33 +0000 (20:10 -0700)
committerDan Nicolaescu <dann@ics.uci.edu>
Fri, 2 Apr 2010 03:10:33 +0000 (20:10 -0700)
* 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.

23 files changed:
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

index 4e9c7e19ff77ffced0f0a0243013b0804d7c00ab..ad7ce6da3c25d66f5ac003581ac243d72fc6435c 100644 (file)
@@ -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)
index 01241b518bbbdf4ae001ecc86f5a88f79e22727d..1e7ec7d9678b1b4f166184cfa9bffd9c5f207265 100644 (file)
@@ -723,7 +723,6 @@ main (argc, argv)
 #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];
index 17aad9a225296e96be2d113d91e5c0870073f5de..89edc6c1b27542406e8d0fc443c6991a73ad4712 100644 (file)
@@ -188,9 +188,6 @@ char pot_etags_version[] = "@(#) pot revision number is 17.38.1.4";
 #include <stdio.h>
 #include <ctype.h>
 #include <errno.h>
-#ifndef errno
-  extern int errno;
-#endif
 #include <sys/types.h>
 #include <sys/stat.h>
 
index e0eb4d48b891f59bd089f7c10f10ff2145504c45..a887eb216ac8175bd88c9fa3059b848a90fbd8a1 100644 (file)
@@ -140,9 +140,6 @@ static char *mail_spool_name ();
 #endif
 #endif
 
-#ifndef errno
-extern int errno;
-#endif
 char *strerror ();
 #ifdef HAVE_INDEX
 extern char *index __P ((const char *, int));
index 08c40c6048c783aa3f382450498c61ddcc564acc..cd8eac76a3ac548c1970ad9d997421782dc594b0 100644 (file)
@@ -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.
index 0c6e57d45be9446ddc85712cbbd295006f8e329f..9035a986b4cb26dc02f65d6c419460abc063cc2c 100644 (file)
@@ -28,11 +28,6 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 #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 @@ buffer_slot_type_mismatch (newval, type)
 #endif
 
 #include <stdio.h>
-#include <errno.h>
 
 #if MAP_ANON == 0
 #include <fcntl.h>
index bed3302e508848f9dc9d435f634d1590df7017b0..378c647f385cf1de14cd3af8d3a11e181eaad3b6 100644 (file)
@@ -25,10 +25,6 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 #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 @@ extern int errno;
 #include <fcntl.h>
 #include <sys/stat.h>
 #include <sys/param.h>
-#include <errno.h>
 #endif /* MSDOS */
 
 #ifndef O_RDONLY
index 52d7f38728f1151cce7aaf88c7d7b725b4b87384..2be00c9c3b02f54e66e4976bb6d5e772e39c69af 100644 (file)
@@ -5809,9 +5809,6 @@ window_change_signal (signalnum) /* If we don't have an argument, */
      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;
index 7dbbd6c5ef130480046b48b14932e54f69d9b1f7..40549884935c6dd9f201a6c7e19390ebc88d88c5 100644 (file)
@@ -59,10 +59,6 @@ And always:
 
 int data_start = 0;
 
-#ifdef NEED_ERRNO
-int errno;
-#endif
-
 #ifndef MSDOS
 char **environ;
 #endif
index 0d90776df83892217cc52ec83beafa37adee703e..400a6b0e5947eb864e49ca88729abf512ea1141e 100644 (file)
@@ -756,9 +756,6 @@ main (int argc, char **argv)
   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
index 4ae74de5c67b0d0ab387a10f40b475ff58564036..c62d5724efff1834fccfd392d586d8ddd1806584 100644 (file)
@@ -53,12 +53,6 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 #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"
index 7c69ea954fc60a3f7ce049c7db1ef58df94ef879..b11338c58b6a479ba9b5df6b2f25027f377bec8e 100644 (file)
@@ -47,9 +47,6 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 #endif /* __FreeBSD__ */
 
 #include <errno.h>
-#ifndef errno
-extern int errno;
-#endif
 
 #include "lisp.h"
 #include "buffer.h"
index 97d9ec00aaeed3f4633db282544cd33176597770..3f7030b7605829ce8642839164cfa50f853b5011 100644 (file)
@@ -99,10 +99,6 @@ extern double logb ();
 
 #ifdef FLOAT_CHECK_ERRNO
 # include <errno.h>
-
-#ifndef USE_CRT_DLL
-extern int errno;
-#endif
 #endif
 
 #ifdef FLOAT_CATCH_SIGILL
index 3cd042fb21e6e07bbb6e10c689a70b7b95585e7e..f2aeff895425b7587624af9cc8402f2740a57955 100644 (file)
@@ -79,10 +79,6 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 #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.  */
index 90edca90a16c9f568dbf8d7304fd32d54d2b40dc..83ebc8b3b109cdc0db8126f3f79d5d45e66df7f7 100644 (file)
@@ -73,10 +73,6 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 #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;
index 43fa78c7bd42725cee08fd6ffeae66c32a973563..3c539024b0a9925b38d1c8b9290daed48dd772fb 100644 (file)
@@ -195,10 +195,6 @@ extern int serial_open (char *port);
 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
index 5552aece50acbbdf989d3fb4a91500353b981b91..682b9482352797f225ae2bfba2263868719fa98d 100644 (file)
@@ -28,8 +28,6 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #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
index 71b2a0f461ba8463d1a5327a70f2a5dbe1c38edb..37e7dfbaf9cba71877babc6c1366dca3ebf95f5c 100644 (file)
@@ -94,12 +94,6 @@ extern int etext;
 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
index 97b69d7e5c718dee1bc319de998a9b8a1b35d7b9..2657d14429688fad1ffe9ce068fcff590b64ecf8 100644 (file)
@@ -435,7 +435,6 @@ write_segment (int new, char *ptr, char *end)
 {
   int i, nwrite, ret;
   char buf[80];
-  extern int errno;
   char zeros[UnexBlockSz];
 
   for (i = 0; ptr < end;)
index 6cb27b35c3644b726b2d61e9717dcf1f455f89e7..1a27db1232d303da1031afbc598c4ec19c43a09e 100644 (file)
@@ -466,9 +466,6 @@ write_segment (new, ptr, end)
 {
   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;
index 4ed7beda233c2e8b367e68da3191368f1dacb6cf..7222e26efd22fdcbf90161068ec3b72e6e1e0bf6 100644 (file)
@@ -228,10 +228,6 @@ static int input_signal_count;
 
 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;
 
index c8cb55cb7b8cf9a2d8a10772dea6a01a42f4bb41..7808bacc59fd7502af4c70003b8a7edf24436136 100644 (file)
@@ -28,6 +28,7 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 #include <unistd.h>
 #endif
 
+#include <errno.h>
 #include <epaths.h>
 
 #include <stdio.h>
@@ -734,8 +735,6 @@ fatal (msg, prog, x1, x2, x3, x4, x5)
     char *msg, *prog;
     int x1, x2, x3, x4, x5;
 {
-    extern int errno;
-
     if (errno)
       perror (prog);
 
index 1114fcccc53a2b6afdcef9f601edf5c0598c8cb5..90db15d9ed4d6c7717026f46acadaaf62399280b 100644 (file)
@@ -309,8 +309,6 @@ extern Lisp_Object Vx_no_window_manager;
 
 extern Lisp_Object Qeql;
 
-extern int errno;
-
 /* A mask of extra modifier bits to put into every keyboard char.  */
 
 extern EMACS_INT extra_keyboard_modifiers;