summaryrefslogtreecommitdiff
path: root/src/termcap.c
diff options
context:
space:
mode:
authorDan Nicolaescu <dann@ics.uci.edu>2010-07-07 21:55:07 -0700
committerDan Nicolaescu <dann@ics.uci.edu>2010-07-07 21:55:07 -0700
commit295d0d8f2008cbd2deb200fc6ecb30d19847f725 (patch)
treeb5ce54b485bc65a9e4ae0529353da47fed956ebc /src/termcap.c
parent49d9e6b07bc34acf755ded0fc255e974a37f9189 (diff)
downloademacs-295d0d8f2008cbd2deb200fc6ecb30d19847f725.tar.gz
Clean up include guards.
* src/tparam.c: Remove include guards for config.h, string.h and code that assumes #ifndef emacs. * src/termcap.c: * src/unexalpha.c: * src/sysdep.c: * src/filemode.c: * src/filelock.c: * src/bidi.c: Likewise.
Diffstat (limited to 'src/termcap.c')
-rw-r--r--src/termcap.c56
1 files changed, 0 insertions, 56 deletions
diff --git a/src/termcap.c b/src/termcap.c
index fd8a666d0f2..ea4ef244f64 100644
--- a/src/termcap.c
+++ b/src/termcap.c
@@ -18,12 +18,7 @@ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA. */
/* Emacs config.h may rename various library functions such as malloc. */
-#ifdef HAVE_CONFIG_H
#include <config.h>
-#endif
-
-#ifdef emacs
-
#include <setjmp.h>
#include <lisp.h> /* xmalloc is here */
/* Get the O_* definitions for open et al. */
@@ -35,26 +30,6 @@ Boston, MA 02110-1301, USA. */
#include <unistd.h>
#endif
-#else /* not emacs */
-
-#ifdef STDC_HEADERS
-#include <stdlib.h>
-#include <string.h>
-#else
-char *getenv ();
-char *malloc ();
-char *realloc ();
-#endif
-
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-#ifdef HAVE_FCNTL_H
-#include <fcntl.h>
-#endif
-
-#endif /* not emacs */
-
#ifndef NULL
#define NULL (char *) 0
#endif
@@ -84,37 +59,6 @@ int bufsize = 128;
#define TERMCAP_FILE "/etc/termcap"
#endif
-#ifndef emacs
-static void
-memory_out ()
-{
- write (2, "virtual memory exhausted\n", 25);
- exit (1);
-}
-
-static char *
-xmalloc (size)
- unsigned size;
-{
- register char *tem = malloc (size);
-
- if (!tem)
- memory_out ();
- return tem;
-}
-
-static char *
-xrealloc (ptr, size)
- char *ptr;
- unsigned size;
-{
- register char *tem = realloc (ptr, size);
-
- if (!tem)
- memory_out ();
- return tem;
-}
-#endif /* not emacs */
/* Looking up capabilities in the entry already found. */