diff options
author | Dan Nicolaescu <dann@ics.uci.edu> | 2008-07-10 15:26:15 +0000 |
---|---|---|
committer | Dan Nicolaescu <dann@ics.uci.edu> | 2008-07-10 15:26:15 +0000 |
commit | c5e7567d3b4aa6caeebcd7e43171f3a84b1a3e8f (patch) | |
tree | 6e786d883a8a5d64a420bb707248daf4fa810835 | |
parent | 176fe5fc8db729697828350a5ba288a5477ff092 (diff) | |
download | emacs-c5e7567d3b4aa6caeebcd7e43171f3a84b1a3e8f.tar.gz |
* src/fileio.c:
* src/sysdep.c
* src/systty.h:
* src/m/ibmrs6000.h:
* src/m/iris4d.h:
* src/s/aix4-2.h:
* src/s/freebsd.h:
* src/s/gnu-linux.h:
* src/s/hpux10-20.h:
* src/s/hpux11.h:
* src/s/netbsd.h:
* src/s/sol2-3.h:
* src/s/sol2-4.h:
* src/s/sol2.h:
* src/s/usg5-4.h:
* src/s/vms.h: Remove references to unused variables.
-rw-r--r-- | admin/CPP-DEFINES | 21 | ||||
-rw-r--r-- | src/ChangeLog | 19 | ||||
-rw-r--r-- | src/fileio.c | 23 | ||||
-rw-r--r-- | src/m/ibmrs6000.h | 9 | ||||
-rw-r--r-- | src/m/iris4d.h | 11 | ||||
-rw-r--r-- | src/s/aix4-2.h | 4 | ||||
-rw-r--r-- | src/s/freebsd.h | 2 | ||||
-rw-r--r-- | src/s/gnu-linux.h | 8 | ||||
-rw-r--r-- | src/s/hpux10-20.h | 6 | ||||
-rw-r--r-- | src/s/hpux11.h | 2 | ||||
-rw-r--r-- | src/s/netbsd.h | 2 | ||||
-rw-r--r-- | src/s/sol2-3.h | 3 | ||||
-rw-r--r-- | src/s/sol2-4.h | 2 | ||||
-rw-r--r-- | src/s/sol2.h | 5 | ||||
-rw-r--r-- | src/s/usg5-4.h | 5 | ||||
-rw-r--r-- | src/s/vms.h | 5 | ||||
-rw-r--r-- | src/sysdep.c | 8 | ||||
-rw-r--r-- | src/systty.h | 4 |
18 files changed, 23 insertions, 116 deletions
diff --git a/admin/CPP-DEFINES b/admin/CPP-DEFINES index a72c25320d2..0af13230d9e 100644 --- a/admin/CPP-DEFINES +++ b/admin/CPP-DEFINES @@ -69,9 +69,6 @@ BROKEN_SIGAIO BROKEN_SIGIO BROKEN_SIGPOLL BROKEN_SIGPTY -BROKEN_TIOCGETC -BROKEN_TIOCGWINSZ -BROKEN_XLISTFONTSWITHINFO BSD4_2 BSD4_3 BSD_PGRPS @@ -106,12 +103,10 @@ EMACS_CONFIG_OPTIONS EMACS_INT EMACS_UINT END_FILES_1 -EXEC_SUFFIXES EXPLICIT_SIGN_EXTEND FILE_SYSTEM_CASE FIRST_PTY_LETTER FLOAT_CHECK_DOMAIN -FORCE_ALLOCA_H FSCALE Fread GAP_USE_BCOPY @@ -132,7 +127,6 @@ HAVE_BCOPY HAVE_CBRT HAVE_CLOSEDIR HAVE_CRTIN -HAVE_CRTN HAVE_DUP2 HAVE_EUIDACCESS HAVE_FACES @@ -215,8 +209,6 @@ HAVE_WINDOW_SYSTEM HAVE_WORKING_VFORK HAVE_XRMSETDATABASE HPUX -HPUX11 -HPUX_NET IBMR2AIX INHIBIT_X11R6_XIM INTERNAL_TERMINAL @@ -252,7 +244,6 @@ LINKER LINK_CRTL_SHARE LINUX LINUX_SBRK_BUG -LINUX_SIGNALS_VIA_CHARACTERS_DOES_WORK LISP_FLOAT_TYPE LNOFLSH LOAD_AVE_CVT @@ -264,7 +255,7 @@ MAIL_USE_POP MAIL_USE_SYSTEM_LOCK MAXPATHLEN MAX_PRINT_CHARS -MIN_PTY_KERNEL_VERSION +MIN_PTY_KERNEL_VERSION -- only used on Mac MODE_LINE_BINARY_TEXT MULTI_KBOARD MUST_UNDEF__STDC__ @@ -283,7 +274,6 @@ NOT_USING_MOTIF NO_ABORT NO_ARG_ARRAY NO_EDITRES -NO_FILIO_H NO_HYPHENS_IN_FILENAMES NO_MATHERR NO_REMAP @@ -297,7 +287,6 @@ NSIG_MINIMUM NULL NULL_DEVICE N_BADMAG -N_BSSADDR N_PAGSIZ N_SYMOFF N_TRELOFF @@ -333,7 +322,6 @@ SEPCHAR SETPGRP_RELEASES_CTTY SETUP_SLAVE_PTY SHARABLE_LIB_BUG -SHMKEY SIGALRM SIGCHLD SIGHUP @@ -344,9 +332,7 @@ SIGPIPE SIGQUIT SIGTRAP SIGTYPE -SOCKLEN_TYPE SOLARIS2 -SOLARIS2_4 SPECIAL_EMACS_INT START_FILES START_FILES_1 @@ -354,14 +340,12 @@ STDC_HEADERS SYMS_SYSTEM SYSTEM_PURESIZE_EXTRA SYSTEM_TYPE -SYSV_STREAMS SYSV_SYSTEM_DIR S_IFLNK Srandom TAB3 TABDLY TERM -TERMCAP_NAME TERMINFO TEXT_END TEXT_START @@ -395,7 +379,6 @@ XOS_NEEDS_TIME_H XPNTR XSET XUINT -X_DEFAULT_FONT _AIX _ARCH_PPC64 _CALLBACK_ @@ -411,7 +394,6 @@ __ELF__ __FreeBSD__ __FreeBSD_version __GNUC__ -__LITTLE_ENDIAN __NetBSD__ __OpenBSD__ __STDC__ @@ -440,7 +422,6 @@ close const creat ctime -drem dup dup2 edata diff --git a/src/ChangeLog b/src/ChangeLog index a7578f2fe65..c88e7884cfe 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,22 @@ +2008-07-10 Dan Nicolaescu <dann@ics.uci.edu> + + * src/fileio.c: + * src/sysdep.c + * src/systty.h: + * src/m/ibmrs6000.h: + * src/m/iris4d.h: + * src/s/aix4-2.h: + * src/s/freebsd.h: + * src/s/gnu-linux.h: + * src/s/hpux10-20.h: + * src/s/hpux11.h: + * src/s/netbsd.h: + * src/s/sol2-3.h: + * src/s/sol2-4.h: + * src/s/sol2.h: + * src/s/usg5-4.h: + * src/s/vms.h: Remove references to unused variables. + 2008-07-10 Andreas Schwab <schwab@suse.de> * ftfont.c (ftfont_resolve_generic_family): Remove foundry from diff --git a/src/fileio.c b/src/fileio.c index abe77e2e9ef..2544bd50e40 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -2987,26 +2987,6 @@ If STRING is nil or a null string, the logical name NAME is deleted. */) } #endif /* VMS */ -#ifdef HPUX_NET - -DEFUN ("sysnetunam", Fsysnetunam, Ssysnetunam, 2, 2, 0, - doc: /* Open a network connection to PATH using LOGIN as the login string. */) - (path, login) - Lisp_Object path, login; -{ - int netresult; - - CHECK_STRING (path); - CHECK_STRING (login); - - netresult = netunam (SDATA (path), SDATA (login)); - - if (netresult == -1) - return Qnil; - else - return Qt; -} -#endif /* HPUX_NET */ DEFUN ("file-name-absolute-p", Ffile_name_absolute_p, Sfile_name_absolute_p, 1, 1, 0, @@ -6398,9 +6378,6 @@ When non-nil, the function `move-file-to-trash' will be used by #ifdef VMS defsubr (&Sdefine_logical_name); #endif /* VMS */ -#ifdef HPUX_NET - defsubr (&Ssysnetunam); -#endif /* HPUX_NET */ defsubr (&Sfile_name_absolute_p); defsubr (&Sfile_exists_p); defsubr (&Sfile_executable_p); diff --git a/src/m/ibmrs6000.h b/src/m/ibmrs6000.h index db6ebee0d78..40c74688f9f 100644 --- a/src/m/ibmrs6000.h +++ b/src/m/ibmrs6000.h @@ -86,7 +86,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ /* Use shared memory. */ /* This is turned off because it does not always work. See etc/AIX.DUMP. */ /* #define HAVE_SHM */ -#define SHMKEY 5305035 /* used for shared memory code segments */ #endif /* CANNOT_DUMP */ #define N_BADMAG(x) BADMAG(x) @@ -100,11 +99,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ #undef ADDR_CORRECT #define ADDR_CORRECT(x) ((int)(x)) -/* Specify the font for X to use. - This used to be Rom14.500; that's nice on the X server shipped with - the RS/6000, but it's not available on other servers. */ -#define X_DEFAULT_FONT "fixed" - /* Here override various assumptions in ymakefile */ #ifndef USG5 @@ -141,8 +135,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ #define BROKEN_SIGPTY #define BROKEN_SIGPOLL -/* Don't try to include sioctl.h or ptem.h. */ -#undef NEED_SIOCTL +/* Don't try to include ptem.h. */ #undef NEED_PTEM_H #define ORDINARY_LINK diff --git a/src/m/iris4d.h b/src/m/iris4d.h index 89eee47d49b..f6fd3f245df 100644 --- a/src/m/iris4d.h +++ b/src/m/iris4d.h @@ -101,21 +101,10 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ #define LIBS_MACHINE #define LIBS_DEBUG -/* Define this if you have a fairly recent system, - in which crt1.o and crt1.n should be used. */ -#define HAVE_CRTN - #ifndef USG5_4 -#ifdef HAVE_CRTN /* Must define START-FILES so that the linker can find /usr/lib/crt0.o. */ #define START_FILES pre-crt0.o /usr/lib/crt1.o #define LIB_STANDARD -lc /usr/lib/crtn.o -#else -#define START_FILES pre-crt0.o /usr/lib/crt0.o -/* The entry-point label (start of text segment) is `start', not `__start'. */ -#define DEFAULT_ENTRY_ADDRESS start -#define LIB_STANDARD -lc -#endif #endif /* Use terminfo instead of termcap. */ diff --git a/src/s/aix4-2.h b/src/s/aix4-2.h index 2b31e2c8167..9c075ead658 100644 --- a/src/s/aix4-2.h +++ b/src/s/aix4-2.h @@ -176,10 +176,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ It is just a guess which versions of AIX need this definition. */ #define HAVE_WAIT_HEADER -/* Specify the type that the 3rd arg of `accept' points to. - It is just a guess which versions of AIX need this definition. */ -#define SOCKLEN_TYPE int - /* olson@mcs.anl.gov says -li18n is needed by -lXm. */ #define LIB_MOTIF -lXm -li18n diff --git a/src/s/freebsd.h b/src/s/freebsd.h index 11df2001f86..779d944b6f6 100644 --- a/src/s/freebsd.h +++ b/src/s/freebsd.h @@ -91,8 +91,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ #define LIB_GCC -lgcc #ifndef N_TRELOFF -#define N_PAGSIZ(x) __LDPGSZ -#define N_BSSADDR(x) (N_ALIGN(x, N_DATADDR(x)+x.a_data)) #define N_TRELOFF(x) N_RELOFF(x) #endif #else /* NO_SHARED_LIBS */ diff --git a/src/s/gnu-linux.h b/src/s/gnu-linux.h index 660462a679d..39b9db496fc 100644 --- a/src/s/gnu-linux.h +++ b/src/s/gnu-linux.h @@ -43,7 +43,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ #include <linux/version.h> #if LINUX_VERSION_CODE >= 0x20400 -#define LINUX_SIGNALS_VIA_CHARACTERS_DOES_WORK +/* 21 Jun 06: Eric Hanchrow <offby1@blarg.net> says this works. */ +#define SIGNALS_VIA_CHARACTERS #endif /* LINUX_VERSION_CODE >= 0x20400 */ #endif /* HAVE_LINUX_VERSION_H */ #endif /* emacs */ @@ -223,11 +224,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ #define C_DEBUG_SWITCH #endif -/* 21 Jun 06: Eric Hanchrow <offby1@blarg.net> says this works. */ -#ifdef LINUX_SIGNALS_VIA_CHARACTERS_DOES_WORK -#define SIGNALS_VIA_CHARACTERS -#endif - /* Rob Malouf <malouf@csli.stanford.edu> says: SYSV IPC is standard a standard part of Linux since version 0.99pl10, and is a very common addition to previous versions. */ diff --git a/src/s/hpux10-20.h b/src/s/hpux10-20.h index 8ea24fc4dc8..8411f74191b 100644 --- a/src/s/hpux10-20.h +++ b/src/s/hpux10-20.h @@ -227,16 +227,10 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ #undef random #undef HAVE_RANDOM -#define FORCE_ALLOCA_H - /* AlainF 20-Jul-1996 says this is right. */ #define KERNEL_FILE "/stand/vmunix" -#ifdef HPUX_NET -#define LIBS_SYSTEM -ln -l:libdld.sl -#else #define LIBS_SYSTEM -l:libdld.sl -#endif /* Rainer Malzbender <rainer@displaytech.com> says definining HAVE_XRMSETDATABASE allows Emacs to compile on HP-UX 10.20 diff --git a/src/s/hpux11.h b/src/s/hpux11.h index 7bd4afb116b..3382395a90f 100644 --- a/src/s/hpux11.h +++ b/src/s/hpux11.h @@ -1,7 +1,5 @@ #include "hpux10-20.h" -#define HPUX11 - #ifdef POSIX_SIGNALS #undef POSIX_SIGNALS #endif diff --git a/src/s/netbsd.h b/src/s/netbsd.h index 0e9b0a8443d..951e00091fc 100644 --- a/src/s/netbsd.h +++ b/src/s/netbsd.h @@ -72,8 +72,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ /* Try to make this work for both 0.9 and >0.9. */ #ifndef N_TRELOFF -#define N_PAGSIZ(x) __LDPGSZ -#define N_BSSADDR(x) (N_ALIGN(x, N_DATADDR(x)+x.a_data)) #define N_TRELOFF(x) N_RELOFF(x) #endif #endif /* not NO_SHARED_LIBS and not ELF */ diff --git a/src/s/sol2-3.h b/src/s/sol2-3.h index 3473eec4cb3..3adad4bf11a 100644 --- a/src/s/sol2-3.h +++ b/src/s/sol2-3.h @@ -21,9 +21,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ #include "sol2.h" -/* Solaris 2.3 has a bug in XListFontsWithInfo. */ -#define BROKEN_XLISTFONTSWITHINFO - /* Override LD_SWITCH_SYSTEM: add -L /usr/ccs/lib to the sol2.h value. */ #undef LD_SWITCH_SYSTEM diff --git a/src/s/sol2-4.h b/src/s/sol2-4.h index 8ac97eaa6df..3cf2786c500 100644 --- a/src/s/sol2-4.h +++ b/src/s/sol2-4.h @@ -2,8 +2,6 @@ #include "sol2-3.h" -#define SOLARIS2_4 - /* Get rid of -traditional and let const really do its thing. */ #ifdef __GNUC__ diff --git a/src/s/sol2.h b/src/s/sol2.h index 10733de1d0b..aa30be3675c 100644 --- a/src/s/sol2.h +++ b/src/s/sol2.h @@ -22,11 +22,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ #define SOLARIS2 -/* eggert@twinsun.com said these work in Solaris. - Perhaps they work in all kinds of SVR4, but this is more conservative. */ -#undef BROKEN_TIOCGETC -#undef BROKEN_TIOCGWINSZ - /* This triggers a conditional in xfaces.c. */ #define XOS_NEEDS_TIME_H diff --git a/src/s/usg5-4.h b/src/s/usg5-4.h index a0309d7439a..84c357c02a2 100644 --- a/src/s/usg5-4.h +++ b/src/s/usg5-4.h @@ -201,9 +201,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ #endif #ifdef emacs -#ifndef NO_FILIO_H #include <sys/filio.h> -#endif #include <termio.h> #include <sys/ttold.h> #include <signal.h> @@ -283,9 +281,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ if (ioctl (xforkin, I_PUSH, "ttcompat") == -1) \ fatal ("ioctl I_PUSH ttcompat", errno); -/* Tell x11term.c and keyboard.c we have the system V streams feature. */ -#define SYSV_STREAMS - /* This definition was suggested for next release. So give it a try. */ #define HAVE_SOCKETS diff --git a/src/s/vms.h b/src/s/vms.h index 78e82736a68..413c302e8c7 100644 --- a/src/s/vms.h +++ b/src/s/vms.h @@ -151,7 +151,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ #ifndef _GNUC_ extern double mth$dmod(double, double); -#define drem mth$dmod #endif /* Some time routines are missing in the VAX C RTL, or needs some @@ -240,10 +239,6 @@ globalref char sdata[]; #define NULL_DEVICE "NLA0:" -#define TERMCAP_NAME "emacs_library:[etc]termcap.dat" - -#define EXEC_SUFFIXES ".exe:.com" - /* Case conflict with Xlib XFree () */ #define xfree emacs_xfree diff --git a/src/sysdep.c b/src/sysdep.c index 61a91e01878..4e9631dbba1 100644 --- a/src/sysdep.c +++ b/src/sysdep.c @@ -135,18 +135,10 @@ extern int errno; #include "systty.h" #include "syswait.h" -#ifdef BROKEN_TIOCGWINSZ -#undef TIOCGWINSZ -#undef TIOCSWINSZ -#endif - #if defined (USG) #include <sys/utsname.h> #include <memory.h> #if defined (TIOCGWINSZ) -#ifdef NEED_SIOCTL -#include <sys/sioctl.h> -#endif #ifdef NEED_PTEM_H #include <sys/stream.h> #include <sys/ptem.h> diff --git a/src/systty.h b/src/systty.h index 4d9bd792a3c..799b9214e33 100644 --- a/src/systty.h +++ b/src/systty.h @@ -118,10 +118,6 @@ static struct sensemode { /* Special cases - inhibiting the use of certain features. */ -#ifdef BROKEN_TIOCGETC -#undef TIOCGETC /* Avoid confusing some conditionals that test this. */ -#endif - /* Allow m- file to inhibit use of FIONREAD. */ #ifdef BROKEN_FIONREAD #undef FIONREAD |