Mercurial > hg > xemacs-beta
diff src/emacs.c @ 2015:2364237fbc0f
[xemacs-hg @ 2004-04-15 20:56:17 by olivierg]
Moving the dump file inside the executable
author | olivierg |
---|---|
date | Thu, 15 Apr 2004 20:56:23 +0000 |
parents | 9c872f33ecbe |
children | 8e3ead683fd1 |
line wrap: on
line diff
--- a/src/emacs.c Thu Apr 15 15:27:38 2004 +0000 +++ b/src/emacs.c Thu Apr 15 20:56:23 2004 +0000 @@ -272,6 +272,10 @@ #include "console-msw.h" #endif +#ifndef WIN32_NATIVE +#include "dump-data.h" +#endif + /* For PATH_EXEC */ #include <paths.h> @@ -820,6 +824,18 @@ exit (0); } + /* Handle the -si/--show-inline-info switch, which means show the + alignment and max size of the inline data and quit */ + if (argmatch (argv, argc, "-si", "--show-inline-info", 0, NULL, &skip_args)) + { +#if defined(PDUMP) || !defined(WIN32_NATIVE) + printf ("%d %d\n", dumped_data_max_size(), dumped_data_align_offset()); +#else + printf ("Portable dumper not configured or windows native; -si just forces exit.\n"); +#endif + exit (0); + } + /* Handle the --no-dump-file/-nd switch, which means don't load the dump file (ignored when not using pdump) */ if (argmatch (argv, argc, "-nd", "--no-dump-file", 0, NULL, &skip_args))