diff options
| author | Dan Nicolaescu | 2010-08-06 11:48:24 -0700 |
|---|---|---|
| committer | Dan Nicolaescu | 2010-08-06 11:48:24 -0700 |
| commit | 0e843971e13ae9d8533859ad8286d3f6d257af4a (patch) | |
| tree | 4f97f9a891264af44425788a8e6156cdf182130c /src | |
| parent | 648801d1f58ba038a4ec3217de38032d40b2a98e (diff) | |
| download | emacs-0e843971e13ae9d8533859ad8286d3f6d257af4a.tar.gz emacs-0e843971e13ae9d8533859ad8286d3f6d257af4a.zip | |
emacs.c cleanups.
* src/emacs.c (emacs_copyright, emacs_version): Make static.
(Vinitial_window_system, Vauto_save_list_file_name)
(Vinhibit_redisplay): Remove declarations.
(main): Remove HAVE_SHM code, unused. Remove _I386 conditional
for AIX.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/emacs.c | 32 |
2 files changed, 8 insertions, 30 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index af16fc651c7..83fdcc4db15 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,11 @@ | |||
| 1 | 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu> | 1 | 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu> |
| 2 | 2 | ||
| 3 | * emacs.c (emacs_copyright, emacs_version): Make static. | ||
| 4 | (Vinitial_window_system, Vauto_save_list_file_name) | ||
| 5 | (Vinhibit_redisplay): Remove declarations. | ||
| 6 | (main): Remove HAVE_SHM code, unused. Remove _I386 conditional | ||
| 7 | for AIX. | ||
| 8 | |||
| 3 | Use const for some arrays and functions. | 9 | Use const for some arrays and functions. |
| 4 | * xterm.h (xg_set_icon_from_xpm_data): | 10 | * xterm.h (xg_set_icon_from_xpm_data): |
| 5 | * xfns.c (xg_set_icon_from_xpm_data): | 11 | * xfns.c (xg_set_icon_from_xpm_data): |
diff --git a/src/emacs.c b/src/emacs.c index 216ab884aa1..1cdf6032ddd 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -91,8 +91,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 91 | #endif | 91 | #endif |
| 92 | #endif | 92 | #endif |
| 93 | 93 | ||
| 94 | const char emacs_copyright[] = "Copyright (C) 2010 Free Software Foundation, Inc."; | 94 | static const char emacs_copyright[] = "Copyright (C) 2010 Free Software Foundation, Inc."; |
| 95 | const char emacs_version[] = "24.0.50"; | 95 | static const char emacs_version[] = "24.0.50"; |
| 96 | 96 | ||
| 97 | /* Make these values available in GDB, which doesn't see macros. */ | 97 | /* Make these values available in GDB, which doesn't see macros. */ |
| 98 | 98 | ||
| @@ -217,15 +217,6 @@ static unsigned long heap_bss_diff; | |||
| 217 | output a warning in dump-emacs. */ | 217 | output a warning in dump-emacs. */ |
| 218 | #define MAX_HEAP_BSS_DIFF (1024*1024) | 218 | #define MAX_HEAP_BSS_DIFF (1024*1024) |
| 219 | 219 | ||
| 220 | |||
| 221 | #ifdef HAVE_WINDOW_SYSTEM | ||
| 222 | extern Lisp_Object Vinitial_window_system; | ||
| 223 | #endif /* HAVE_WINDOW_SYSTEM */ | ||
| 224 | |||
| 225 | extern Lisp_Object Vauto_save_list_file_name; | ||
| 226 | |||
| 227 | extern Lisp_Object Vinhibit_redisplay; | ||
| 228 | |||
| 229 | /* Nonzero means running Emacs without interactive terminal. */ | 220 | /* Nonzero means running Emacs without interactive terminal. */ |
| 230 | 221 | ||
| 231 | int noninteractive; | 222 | int noninteractive; |
| @@ -864,23 +855,6 @@ main (int argc, char **argv) | |||
| 864 | } | 855 | } |
| 865 | #endif /* HAVE_PERSONALITY_LINUX32 */ | 856 | #endif /* HAVE_PERSONALITY_LINUX32 */ |
| 866 | 857 | ||
| 867 | |||
| 868 | /* Map in shared memory, if we are using that. */ | ||
| 869 | #ifdef HAVE_SHM | ||
| 870 | if (argmatch (argv, argc, "-nl", "--no-shared-memory", 6, NULL, &skip_args)) | ||
| 871 | { | ||
| 872 | map_in_data (0); | ||
| 873 | /* The shared memory was just restored, which clobbered this. */ | ||
| 874 | skip_args = 1; | ||
| 875 | } | ||
| 876 | else | ||
| 877 | { | ||
| 878 | map_in_data (1); | ||
| 879 | /* The shared memory was just restored, which clobbered this. */ | ||
| 880 | skip_args = 0; | ||
| 881 | } | ||
| 882 | #endif | ||
| 883 | |||
| 884 | #if defined (HAVE_SETRLIMIT) && defined (RLIMIT_STACK) | 858 | #if defined (HAVE_SETRLIMIT) && defined (RLIMIT_STACK) |
| 885 | /* Extend the stack space available. | 859 | /* Extend the stack space available. |
| 886 | Don't do that if dumping, since some systems (e.g. DJGPP) | 860 | Don't do that if dumping, since some systems (e.g. DJGPP) |
| @@ -1279,9 +1253,7 @@ main (int argc, char **argv) | |||
| 1279 | #ifdef AIX | 1253 | #ifdef AIX |
| 1280 | /* 20 is SIGCHLD, 21 is SIGTTIN, 22 is SIGTTOU. */ | 1254 | /* 20 is SIGCHLD, 21 is SIGTTIN, 22 is SIGTTOU. */ |
| 1281 | signal (SIGXCPU, fatal_error_signal); | 1255 | signal (SIGXCPU, fatal_error_signal); |
| 1282 | #ifndef _I386 | ||
| 1283 | signal (SIGIOINT, fatal_error_signal); | 1256 | signal (SIGIOINT, fatal_error_signal); |
| 1284 | #endif | ||
| 1285 | signal (SIGGRANT, fatal_error_signal); | 1257 | signal (SIGGRANT, fatal_error_signal); |
| 1286 | signal (SIGRETRACT, fatal_error_signal); | 1258 | signal (SIGRETRACT, fatal_error_signal); |
| 1287 | signal (SIGSOUND, fatal_error_signal); | 1259 | signal (SIGSOUND, fatal_error_signal); |