emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r99804: Remove extern errno declarati


From: Dan Nicolaescu
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r99804: Remove extern errno declarations.
Date: Thu, 01 Apr 2010 20:10:33 -0700
User-agent: Bazaar (2.0.3)

------------------------------------------------------------
revno: 99804
committer: Dan Nicolaescu <address@hidden>
branch nick: trunk
timestamp: Thu 2010-04-01 20:10:33 -0700
message:
  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.
modified:
  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
=== modified file 'lib-src/ChangeLog'
--- a/lib-src/ChangeLog 2010-03-24 18:02:56 +0000
+++ b/lib-src/ChangeLog 2010-04-02 03:10:33 +0000
@@ -1,3 +1,10 @@
+2010-04-02  Dan Nicolaescu  <address@hidden>
+
+       Remove extern errno declarations.
+       * movemail.c:
+       * etags.c:
+       * emacsclient.c: Remove extern errno declarations.
+
 2010-03-20  Glenn Morris  <address@hidden>
 
        * Makefile.in (KRB4LIB, DESLIB, KRB5LIB, CRYPTOLIB, COM_ERRLIB)

=== modified file 'lib-src/emacsclient.c'
--- a/lib-src/emacsclient.c     2010-01-13 15:38:28 +0000
+++ b/lib-src/emacsclient.c     2010-04-02 03:10:33 +0000
@@ -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];

=== modified file 'lib-src/etags.c'
--- a/lib-src/etags.c   2010-02-20 14:11:20 +0000
+++ b/lib-src/etags.c   2010-04-02 03:10:33 +0000
@@ -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>
 

=== modified file 'lib-src/movemail.c'
--- a/lib-src/movemail.c        2010-01-13 08:35:10 +0000
+++ b/lib-src/movemail.c        2010-04-02 03:10:33 +0000
@@ -140,9 +140,6 @@
 #endif
 #endif
 
-#ifndef errno
-extern int errno;
-#endif
 char *strerror ();
 #ifdef HAVE_INDEX
 extern char *index __P ((const char *, int));

=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2010-04-01 23:08:14 +0000
+++ b/src/ChangeLog     2010-04-02 03:10:33 +0000
@@ -1,3 +1,25 @@
+2010-04-02  Dan Nicolaescu  <address@hidden>
+
+       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  <address@hidden>
 
        Remove all uses of LIBX11_SYSTEM.

=== modified file 'src/buffer.c'
--- a/src/buffer.c      2010-03-06 10:16:27 +0000
+++ b/src/buffer.c      2010-04-02 03:10:33 +0000
@@ -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>

=== modified file 'src/callproc.c'
--- a/src/callproc.c    2010-01-13 08:35:10 +0000
+++ b/src/callproc.c    2010-04-02 03:10:33 +0000
@@ -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

=== modified file 'src/dispnew.c'
--- a/src/dispnew.c     2010-03-31 04:14:08 +0000
+++ b/src/dispnew.c     2010-04-02 03:10:33 +0000
@@ -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;

=== modified file 'src/ecrt0.c'
--- a/src/ecrt0.c       2010-01-13 08:35:10 +0000
+++ b/src/ecrt0.c       2010-04-02 03:10:33 +0000
@@ -59,10 +59,6 @@
 
 int data_start = 0;
 
-#ifdef NEED_ERRNO
-int errno;
-#endif
-
 #ifndef MSDOS
 char **environ;
 #endif

=== modified file 'src/emacs.c'
--- a/src/emacs.c       2010-04-01 14:59:46 +0000
+++ b/src/emacs.c       2010-04-02 03:10:33 +0000
@@ -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

=== modified file 'src/fileio.c'
--- a/src/fileio.c      2010-04-01 14:59:46 +0000
+++ b/src/fileio.c      2010-04-02 03:10:33 +0000
@@ -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"

=== modified file 'src/filelock.c'
--- a/src/filelock.c    2010-01-23 22:15:22 +0000
+++ b/src/filelock.c    2010-04-02 03:10:33 +0000
@@ -47,9 +47,6 @@
 #endif /* __FreeBSD__ */
 
 #include <errno.h>
-#ifndef errno
-extern int errno;
-#endif
 
 #include "lisp.h"
 #include "buffer.h"

=== modified file 'src/floatfns.c'
--- a/src/floatfns.c    2010-01-13 08:35:10 +0000
+++ b/src/floatfns.c    2010-04-02 03:10:33 +0000
@@ -99,10 +99,6 @@
 
 #ifdef FLOAT_CHECK_ERRNO
 # include <errno.h>
-
-#ifndef USE_CRT_DLL
-extern int errno;
-#endif
 #endif
 
 #ifdef FLOAT_CATCH_SIGILL

=== modified file 'src/keyboard.c'
--- a/src/keyboard.c    2010-03-31 04:14:08 +0000
+++ b/src/keyboard.c    2010-04-02 03:10:33 +0000
@@ -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.  */

=== modified file 'src/lread.c'
--- a/src/lread.c       2010-04-01 14:59:46 +0000
+++ b/src/lread.c       2010-04-02 03:10:33 +0000
@@ -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;

=== modified file 'src/process.c'
--- a/src/process.c     2010-03-31 20:39:03 +0000
+++ b/src/process.c     2010-04-02 03:10:33 +0000
@@ -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

=== modified file 'src/s/netbsd.h'
--- a/src/s/netbsd.h    2010-03-23 02:42:25 +0000
+++ b/src/s/netbsd.h    2010-04-02 03:10:33 +0000
@@ -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

=== modified file 'src/sysdep.c'
--- a/src/sysdep.c      2010-04-01 14:59:46 +0000
+++ b/src/sysdep.c      2010-04-02 03:10:33 +0000
@@ -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

=== modified file 'src/unexaix.c'
--- a/src/unexaix.c     2010-01-13 08:35:10 +0000
+++ b/src/unexaix.c     2010-04-02 03:10:33 +0000
@@ -435,7 +435,6 @@
 {
   int i, nwrite, ret;
   char buf[80];
-  extern int errno;
   char zeros[UnexBlockSz];
 
   for (i = 0; ptr < end;)

=== modified file 'src/unexec.c'
--- a/src/unexec.c      2010-04-01 14:59:46 +0000
+++ b/src/unexec.c      2010-04-02 03:10:33 +0000
@@ -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;

=== modified file 'src/w32term.c'
--- a/src/w32term.c     2010-01-13 08:35:10 +0000
+++ b/src/w32term.c     2010-04-02 03:10:33 +0000
@@ -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;
 

=== modified file 'src/xrdb.c'
--- a/src/xrdb.c        2010-01-13 08:35:10 +0000
+++ b/src/xrdb.c        2010-04-02 03:10:33 +0000
@@ -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);
 

=== modified file 'src/xterm.c'
--- a/src/xterm.c       2010-03-31 20:39:03 +0000
+++ b/src/xterm.c       2010-04-02 03:10:33 +0000
@@ -309,8 +309,6 @@
 
 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;


reply via email to

[Prev in Thread] Current Thread [Next in Thread]