X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/3e6ae1a4ae2f54ad70a528ee3d4fac992b964eaa..fb39b937b0628f4592b07d0aa61a41cf696abd30:/src/unexcoff.c
diff --git a/src/unexcoff.c b/src/unexcoff.c
index 0c6af414d8..966dd58cb6 100644
--- a/src/unexcoff.c
+++ b/src/unexcoff.c
@@ -1,5 +1,4 @@
-/* Copyright (C) 1985, 1986, 1987, 1988, 1992, 1993, 1994, 2001, 2002, 2003,
- 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
+/* Copyright (C) 1985-1988, 1992-1994, 2001-2012 Free Software Foundation, Inc.
This file is part of GNU Emacs.
@@ -51,6 +50,8 @@ along with GNU Emacs. If not, see . */
*/
#include
+#include "unexec.h"
+
#define PERROR(file) report_error (file, new)
#ifndef CANNOT_DUMP /* all rest of file! */
@@ -97,7 +98,7 @@ struct aouthdr
#include
-extern char *start_of_data (void); /* Start of initialized data */
+#include "mem-limits.h"
static long block_copy_start; /* Old executable start point */
static struct filehdr f_hdr; /* File header */
@@ -119,7 +120,6 @@ static int pagemask;
#define ADDR_CORRECT(x) ((char *)(x) - (char*)0)
-#include
#include "lisp.h"
static void
@@ -141,8 +141,7 @@ report_error_1 (int fd, const char *msg, int a1, int a2)
error (msg, a1, a2);
}
-static int make_hdr (int, int, unsigned, unsigned, unsigned,
- const char *, const char *);
+static int make_hdr (int, int, const char *, const char *);
static int copy_text_and_data (int, int);
static int copy_sym (int, int, const char *, const char *);
static void mark_x (const char *);
@@ -524,7 +523,7 @@ adjust_lnnoptrs (int writedesc, int readdesc, const char *new_name)
*
* driving logic.
*/
-int
+void
unexec (const char *new_name, const char *a_name)
{
int new = -1, a_out = -1;
@@ -545,17 +544,13 @@ unexec (const char *new_name, const char *a_name)
)
{
close (new);
- return -1;
+ return;
}
close (new);
if (a_out >= 0)
close (a_out);
mark_x (new_name);
- return 0;
}
#endif /* not CANNOT_DUMP */
-
-/* arch-tag: 62409b69-e27a-4a7c-9413-0210d6b54e7f
- (do not change this comment) */