]> git.eshelyaron.com Git - emacs.git/commitdiff
Convert function definitions to standard C and some cleanups.
authorDan Nicolaescu <dann@ics.uci.edu>
Mon, 12 Jul 2010 16:56:59 +0000 (09:56 -0700)
committerDan Nicolaescu <dann@ics.uci.edu>
Mon, 12 Jul 2010 16:56:59 +0000 (09:56 -0700)
* src/emacs.c (__do_global_ctors, __do_global_ctors_aux)
(__do_global_dtors, __main): Use void in definition.
(main): Remove code dealing with SET_EMACS_PRIORITY, unused.
Remove SYMS_MACHINE code, unused.  Remove SYMS_SYSTEM, inline
the only users from ...
* src/s/ms-w32.h (SYMS_SYSTEM): ... here and ...
* src/s/msdos.h (SYMS_SYSTEM): ... here.  Remove.
(HAVE_VOLATILE): Remove, unused.

src/ChangeLog
src/emacs.c
src/s/ms-w32.h
src/s/msdos.h

index 7e6b67cc17693d262f0c11369b2719f00a09103f..8a13298b61dc5c5b34babf5d4a9b8a6e715a5b51 100644 (file)
@@ -1,5 +1,17 @@
 2010-07-12  Dan Nicolaescu  <dann@ics.uci.edu>
 
+
+       * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
+
+       * emacs.c (__do_global_ctors, __do_global_ctors_aux)
+       (__do_global_dtors, __main): Use void in definition.
+       (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
+       Remove SYMS_MACHINE code, unused.  Remove SYMS_SYSTEM, inline
+       the only users from ...
+       * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
+       * s/msdos.h (SYMS_SYSTEM): ... here.  Remove.
+       (HAVE_VOLATILE): Remove, unused.
+
        Convert more function definitions to standard C.
        * xdisp.c (window_box_edges, handle_single_display_spec)
        (display_string): Convert definition to standard C.
index e00c49b8d248db243041c0f5f3fc6af30dda9c9d..f94e71b16d8fed2ae62f32f4695a5881f1f23c88 100644 (file)
@@ -606,11 +606,11 @@ static char dump_tz[] = "UtC0";
    (We don't have any real constructors or destructors.)  */
 #ifdef __GNUC__
 #ifndef GCC_CTORS_IN_LIBC
-void __do_global_ctors ()
+void __do_global_ctors (void)
 {}
-void __do_global_ctors_aux ()
+void __do_global_ctors_aux (void)
 {}
-void __do_global_dtors ()
+void __do_global_dtors (void)
 {}
 /* GNU/Linux has a bug in its library; avoid an error.  */
 #ifndef GNU_LINUX
@@ -618,7 +618,7 @@ char * __CTOR_LIST__[2] = { (char *) (-1), 0 };
 #endif
 char * __DTOR_LIST__[2] = { (char *) (-1), 0 };
 #endif /* GCC_CTORS_IN_LIBC */
-void __main ()
+void __main (void)
 {}
 #endif /* __GNUC__ */
 #endif /* ORDINARY_LINK */
@@ -957,12 +957,6 @@ main (int argc, char **argv)
     }
 #endif /* MSDOS */
 
-#ifdef SET_EMACS_PRIORITY
-  if (emacs_priority)
-    nice (emacs_priority);
-  setuid (getuid ());
-#endif /* SET_EMACS_PRIORITY */
-
   /* Skip initial setlocale if LC_ALL is "C", as it's not needed in that case.
      The build procedure uses this while dumping, to ensure that the
      dumped Emacs does not have its system locale tables initialized,
@@ -1646,6 +1640,9 @@ main (int argc, char **argv)
 
 #ifdef MSDOS
       syms_of_xmenu ();
+      syms_of_dosfns();
+      syms_of_msdos();
+      syms_of_win16select();
 #endif /* MSDOS */
 
 #ifdef HAVE_NS
@@ -1660,13 +1657,9 @@ main (int argc, char **argv)
       syms_of_dbusbind ();
 #endif /* HAVE_DBUS */
 
-#ifdef SYMS_SYSTEM
-      SYMS_SYSTEM;
-#endif
-
-#ifdef SYMS_MACHINE
-      SYMS_MACHINE;
-#endif
+#ifdef WINDOWSNT
+      syms_of_ntterm ();
+#endif /* WINDOWSNT */
 
       keys_of_casefiddle ();
       keys_of_cmds ();
index a87e22b338c89746b773a9b5a4749709cd2173c7..b3e9db8be8aedf71de7f1dbffd8958afc79e46c6 100644 (file)
@@ -40,7 +40,6 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 /* SYSTEM_TYPE should indicate the kind of system you are using.
    It sets the Lisp variable system-type.  */
 #define SYSTEM_TYPE "windows-nt"
-#define SYMS_SYSTEM syms_of_ntterm ()
 
 #define NO_MATHERR 1
 
index 78a38c86059aca95dce0f30b5790c8661a6661ab..b76b583250c5cc099b906189dc7290d8c848a09d 100644 (file)
@@ -38,14 +38,8 @@ You lose; /* Emacs for DOS must be compiled with DJGPP */
    It sets the Lisp variable system-type.  */
 #define SYSTEM_TYPE "ms-dos"
 
-#define SYMS_SYSTEM syms_of_dosfns();syms_of_msdos();syms_of_win16select()
-
 #define SYSV_SYSTEM_DIR
 
-/* Define this is the compiler understands `volatile'.  */
-#define HAVE_VOLATILE
-
-
 /* subprocesses should be defined if you want to have code for
    asynchronous subprocesses (as used in M-x compile and M-x shell).
    This is the only system that needs this.  */