mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-30 09:00:31 -08:00
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.
This commit is contained in:
parent
8224f93d18
commit
42a2c62292
23 changed files with 30 additions and 73 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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];
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -59,10 +59,6 @@ And always:
|
|||
|
||||
int data_start = 0;
|
||||
|
||||
#ifdef NEED_ERRNO
|
||||
int errno;
|
||||
#endif
|
||||
|
||||
#ifndef MSDOS
|
||||
char **environ;
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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. */
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;)
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue