emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r101003: emacs.c cleanups.


From: Dan Nicolaescu
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r101003: emacs.c cleanups.
Date: Fri, 06 Aug 2010 11:48:24 -0700
User-agent: Bazaar (2.0.3)

------------------------------------------------------------
revno: 101003
committer: Dan Nicolaescu <address@hidden>
branch nick: trunk
timestamp: Fri 2010-08-06 11:48:24 -0700
message:
  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.
modified:
  src/ChangeLog
  src/emacs.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2010-08-06 18:41:15 +0000
+++ b/src/ChangeLog     2010-08-06 18:48:24 +0000
@@ -1,5 +1,11 @@
 2010-08-06  Dan Nicolaescu  <address@hidden>
 
+       * 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.
+
        Use const for some arrays and functions.
        * xterm.h (xg_set_icon_from_xpm_data):
        * xfns.c (xg_set_icon_from_xpm_data):

=== modified file 'src/emacs.c'
--- a/src/emacs.c       2010-08-06 10:12:41 +0000
+++ b/src/emacs.c       2010-08-06 18:48:24 +0000
@@ -91,8 +91,8 @@
 #endif
 #endif
 
-const char emacs_copyright[] = "Copyright (C) 2010 Free Software Foundation, 
Inc.";
-const char emacs_version[] = "24.0.50";
+static const char emacs_copyright[] = "Copyright (C) 2010 Free Software 
Foundation, Inc.";
+static const char emacs_version[] = "24.0.50";
 
 /* Make these values available in GDB, which doesn't see macros.  */
 
@@ -217,15 +217,6 @@
    output a warning in dump-emacs.  */
 #define MAX_HEAP_BSS_DIFF (1024*1024)
 
-
-#ifdef HAVE_WINDOW_SYSTEM
-extern Lisp_Object Vinitial_window_system;
-#endif /* HAVE_WINDOW_SYSTEM */
-
-extern Lisp_Object Vauto_save_list_file_name;
-
-extern Lisp_Object Vinhibit_redisplay;
-
 /* Nonzero means running Emacs without interactive terminal.  */
 
 int noninteractive;
@@ -864,23 +855,6 @@
     }
 #endif /* HAVE_PERSONALITY_LINUX32 */
 
-
-/* Map in shared memory, if we are using that.  */
-#ifdef HAVE_SHM
-  if (argmatch (argv, argc, "-nl", "--no-shared-memory", 6, NULL, &skip_args))
-    {
-      map_in_data (0);
-      /* The shared memory was just restored, which clobbered this.  */
-      skip_args = 1;
-    }
-  else
-    {
-      map_in_data (1);
-      /* The shared memory was just restored, which clobbered this.  */
-      skip_args = 0;
-    }
-#endif
-
 #if defined (HAVE_SETRLIMIT) && defined (RLIMIT_STACK)
   /* Extend the stack space available.
      Don't do that if dumping, since some systems (e.g. DJGPP)
@@ -1279,9 +1253,7 @@
 #ifdef AIX
 /* 20 is SIGCHLD, 21 is SIGTTIN, 22 is SIGTTOU.  */
       signal (SIGXCPU, fatal_error_signal);
-#ifndef _I386
       signal (SIGIOINT, fatal_error_signal);
-#endif
       signal (SIGGRANT, fatal_error_signal);
       signal (SIGRETRACT, fatal_error_signal);
       signal (SIGSOUND, fatal_error_signal);


reply via email to

[Prev in Thread] Current Thread [Next in Thread]