diff options
| author | Dan Nicolaescu | 2010-07-12 09:56:59 -0700 |
|---|---|---|
| committer | Dan Nicolaescu | 2010-07-12 09:56:59 -0700 |
| commit | 2e31d424a10785a5459ad603044b52f010d5ac77 (patch) | |
| tree | ad1d8f01c8755680093dfc88758968a75a53c2c7 /src | |
| parent | 6f704c767571d03df1cb429aadccd60b82a5c47b (diff) | |
| download | emacs-2e31d424a10785a5459ad603044b52f010d5ac77.tar.gz emacs-2e31d424a10785a5459ad603044b52f010d5ac77.zip | |
Convert function definitions to standard C and some cleanups.
* 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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 12 | ||||
| -rw-r--r-- | src/emacs.c | 27 | ||||
| -rw-r--r-- | src/s/ms-w32.h | 1 | ||||
| -rw-r--r-- | src/s/msdos.h | 6 |
4 files changed, 22 insertions, 24 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 7e6b67cc176..8a13298b61d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,17 @@ | |||
| 1 | 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu> | 1 | 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu> |
| 2 | 2 | ||
| 3 | |||
| 4 | * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT. | ||
| 5 | |||
| 6 | * emacs.c (__do_global_ctors, __do_global_ctors_aux) | ||
| 7 | (__do_global_dtors, __main): Use void in definition. | ||
| 8 | (main): Remove code dealing with SET_EMACS_PRIORITY, unused. | ||
| 9 | Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline | ||
| 10 | the only users from ... | ||
| 11 | * s/ms-w32.h (SYMS_SYSTEM): ... here and ... | ||
| 12 | * s/msdos.h (SYMS_SYSTEM): ... here. Remove. | ||
| 13 | (HAVE_VOLATILE): Remove, unused. | ||
| 14 | |||
| 3 | Convert more function definitions to standard C. | 15 | Convert more function definitions to standard C. |
| 4 | * xdisp.c (window_box_edges, handle_single_display_spec) | 16 | * xdisp.c (window_box_edges, handle_single_display_spec) |
| 5 | (display_string): Convert definition to standard C. | 17 | (display_string): Convert definition to standard C. |
diff --git a/src/emacs.c b/src/emacs.c index e00c49b8d24..f94e71b16d8 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -606,11 +606,11 @@ static char dump_tz[] = "UtC0"; | |||
| 606 | (We don't have any real constructors or destructors.) */ | 606 | (We don't have any real constructors or destructors.) */ |
| 607 | #ifdef __GNUC__ | 607 | #ifdef __GNUC__ |
| 608 | #ifndef GCC_CTORS_IN_LIBC | 608 | #ifndef GCC_CTORS_IN_LIBC |
| 609 | void __do_global_ctors () | 609 | void __do_global_ctors (void) |
| 610 | {} | 610 | {} |
| 611 | void __do_global_ctors_aux () | 611 | void __do_global_ctors_aux (void) |
| 612 | {} | 612 | {} |
| 613 | void __do_global_dtors () | 613 | void __do_global_dtors (void) |
| 614 | {} | 614 | {} |
| 615 | /* GNU/Linux has a bug in its library; avoid an error. */ | 615 | /* GNU/Linux has a bug in its library; avoid an error. */ |
| 616 | #ifndef GNU_LINUX | 616 | #ifndef GNU_LINUX |
| @@ -618,7 +618,7 @@ char * __CTOR_LIST__[2] = { (char *) (-1), 0 }; | |||
| 618 | #endif | 618 | #endif |
| 619 | char * __DTOR_LIST__[2] = { (char *) (-1), 0 }; | 619 | char * __DTOR_LIST__[2] = { (char *) (-1), 0 }; |
| 620 | #endif /* GCC_CTORS_IN_LIBC */ | 620 | #endif /* GCC_CTORS_IN_LIBC */ |
| 621 | void __main () | 621 | void __main (void) |
| 622 | {} | 622 | {} |
| 623 | #endif /* __GNUC__ */ | 623 | #endif /* __GNUC__ */ |
| 624 | #endif /* ORDINARY_LINK */ | 624 | #endif /* ORDINARY_LINK */ |
| @@ -957,12 +957,6 @@ main (int argc, char **argv) | |||
| 957 | } | 957 | } |
| 958 | #endif /* MSDOS */ | 958 | #endif /* MSDOS */ |
| 959 | 959 | ||
| 960 | #ifdef SET_EMACS_PRIORITY | ||
| 961 | if (emacs_priority) | ||
| 962 | nice (emacs_priority); | ||
| 963 | setuid (getuid ()); | ||
| 964 | #endif /* SET_EMACS_PRIORITY */ | ||
| 965 | |||
| 966 | /* Skip initial setlocale if LC_ALL is "C", as it's not needed in that case. | 960 | /* Skip initial setlocale if LC_ALL is "C", as it's not needed in that case. |
| 967 | The build procedure uses this while dumping, to ensure that the | 961 | The build procedure uses this while dumping, to ensure that the |
| 968 | dumped Emacs does not have its system locale tables initialized, | 962 | dumped Emacs does not have its system locale tables initialized, |
| @@ -1646,6 +1640,9 @@ main (int argc, char **argv) | |||
| 1646 | 1640 | ||
| 1647 | #ifdef MSDOS | 1641 | #ifdef MSDOS |
| 1648 | syms_of_xmenu (); | 1642 | syms_of_xmenu (); |
| 1643 | syms_of_dosfns(); | ||
| 1644 | syms_of_msdos(); | ||
| 1645 | syms_of_win16select(); | ||
| 1649 | #endif /* MSDOS */ | 1646 | #endif /* MSDOS */ |
| 1650 | 1647 | ||
| 1651 | #ifdef HAVE_NS | 1648 | #ifdef HAVE_NS |
| @@ -1660,13 +1657,9 @@ main (int argc, char **argv) | |||
| 1660 | syms_of_dbusbind (); | 1657 | syms_of_dbusbind (); |
| 1661 | #endif /* HAVE_DBUS */ | 1658 | #endif /* HAVE_DBUS */ |
| 1662 | 1659 | ||
| 1663 | #ifdef SYMS_SYSTEM | 1660 | #ifdef WINDOWSNT |
| 1664 | SYMS_SYSTEM; | 1661 | syms_of_ntterm (); |
| 1665 | #endif | 1662 | #endif /* WINDOWSNT */ |
| 1666 | |||
| 1667 | #ifdef SYMS_MACHINE | ||
| 1668 | SYMS_MACHINE; | ||
| 1669 | #endif | ||
| 1670 | 1663 | ||
| 1671 | keys_of_casefiddle (); | 1664 | keys_of_casefiddle (); |
| 1672 | keys_of_cmds (); | 1665 | keys_of_cmds (); |
diff --git a/src/s/ms-w32.h b/src/s/ms-w32.h index a87e22b338c..b3e9db8be8a 100644 --- a/src/s/ms-w32.h +++ b/src/s/ms-w32.h | |||
| @@ -40,7 +40,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 40 | /* SYSTEM_TYPE should indicate the kind of system you are using. | 40 | /* SYSTEM_TYPE should indicate the kind of system you are using. |
| 41 | It sets the Lisp variable system-type. */ | 41 | It sets the Lisp variable system-type. */ |
| 42 | #define SYSTEM_TYPE "windows-nt" | 42 | #define SYSTEM_TYPE "windows-nt" |
| 43 | #define SYMS_SYSTEM syms_of_ntterm () | ||
| 44 | 43 | ||
| 45 | #define NO_MATHERR 1 | 44 | #define NO_MATHERR 1 |
| 46 | 45 | ||
diff --git a/src/s/msdos.h b/src/s/msdos.h index 78a38c86059..b76b583250c 100644 --- a/src/s/msdos.h +++ b/src/s/msdos.h | |||
| @@ -38,14 +38,8 @@ You lose; /* Emacs for DOS must be compiled with DJGPP */ | |||
| 38 | It sets the Lisp variable system-type. */ | 38 | It sets the Lisp variable system-type. */ |
| 39 | #define SYSTEM_TYPE "ms-dos" | 39 | #define SYSTEM_TYPE "ms-dos" |
| 40 | 40 | ||
| 41 | #define SYMS_SYSTEM syms_of_dosfns();syms_of_msdos();syms_of_win16select() | ||
| 42 | |||
| 43 | #define SYSV_SYSTEM_DIR | 41 | #define SYSV_SYSTEM_DIR |
| 44 | 42 | ||
| 45 | /* Define this is the compiler understands `volatile'. */ | ||
| 46 | #define HAVE_VOLATILE | ||
| 47 | |||
| 48 | |||
| 49 | /* subprocesses should be defined if you want to have code for | 43 | /* subprocesses should be defined if you want to have code for |
| 50 | asynchronous subprocesses (as used in M-x compile and M-x shell). | 44 | asynchronous subprocesses (as used in M-x compile and M-x shell). |
| 51 | This is the only system that needs this. */ | 45 | This is the only system that needs this. */ |