summaryrefslogtreecommitdiff
path: root/src/unexaix.c
diff options
context:
space:
mode:
authorDan Nicolaescu <dann@ics.uci.edu>2010-10-10 08:49:31 -0700
committerDan Nicolaescu <dann@ics.uci.edu>2010-10-10 08:49:31 -0700
commitedfd76ce9129a09cc5c338254127514fd0aea4be (patch)
tree6d0f26a0f5e8b81f7f35565ed06b6483ce0663e7 /src/unexaix.c
parenta4daeecfef2bf5822f2b514b2878391b90edf741 (diff)
downloademacs-edfd76ce9129a09cc5c338254127514fd0aea4be.tar.gz
Remove #ifdef emacs / #ifndef emacs code, unused.
* src/vm-limit.c: * src/unexhp9k800.c: * src/unexelf.c: * src/unexaix.c: * src/termcap.c: Remove #ifdef emacs / #ifndef emacs code, unused.
Diffstat (limited to 'src/unexaix.c')
-rw-r--r--src/unexaix.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/unexaix.c b/src/unexaix.c
index 8365396b498..2d128bc6806 100644
--- a/src/unexaix.c
+++ b/src/unexaix.c
@@ -40,13 +40,8 @@ what you give them. Help stamp out software-hoarding! */
*
*/
-#ifndef emacs
-#define PERROR(arg) perror (arg); return -1
-#else
#include <config.h>
#define PERROR(file) report_error (file, new)
-#endif
-
#include <a.out.h>
/* Define getpagesize () if the system does not.
Note that this may depend on symbols defined in a.out.h
@@ -92,7 +87,6 @@ static int adjust_lnnoptrs (int, int, char *);
static int pagemask;
-#ifdef emacs
#include <setjmp.h>
#include "lisp.h"
@@ -103,7 +97,6 @@ report_error (char *file, int fd)
close (fd);
report_file_error ("Cannot unexec", Fcons (build_string (file), Qnil));
}
-#endif /* emacs */
#define ERROR0(msg) report_error_1 (new, msg, 0, 0); return -1
#define ERROR1(msg,x) report_error_1 (new, msg, x, 0); return -1
@@ -113,12 +106,7 @@ static void
report_error_1 (int fd, char *msg, int a1, int a2)
{
close (fd);
-#ifdef emacs
error (msg, a1, a2);
-#else
- fprintf (stderr, msg, a1, a2);
- fprintf (stderr, "\n");
-#endif
}
static int make_hdr (int, int, unsigned, unsigned, unsigned, char *, char *);