Mercurial > emacs
comparison src/emacs.c @ 25010:16ced12bd3aa
(main): Call init_fns.
(main): Call syms_of_sound and init_sound.
(main): Call syms_of_xfaces before init_window_once.
(main): Call init_xfns.
(shut_down_emacs): check glyph memory.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Wed, 21 Jul 1999 21:43:52 +0000 |
parents | b57b0a4e4230 |
children | 0025288c5825 |
comparison
equal
deleted
inserted
replaced
25009:5733af0b62ce | 25010:16ced12bd3aa |
---|---|
969 init_category_once (); /* Create standard category table. */ | 969 init_category_once (); /* Create standard category table. */ |
970 /* Must be done before init_buffer */ | 970 /* Must be done before init_buffer */ |
971 init_casetab_once (); | 971 init_casetab_once (); |
972 init_buffer_once (); /* Create buffer table and some buffers */ | 972 init_buffer_once (); /* Create buffer table and some buffers */ |
973 init_minibuf_once (); /* Create list of minibuffers */ | 973 init_minibuf_once (); /* Create list of minibuffers */ |
974 /* Must precede init_window_once */ | 974 /* Must precede init_window_once */ |
975 | |
976 /* Call syms_of_xfaces before init_window_once because that | |
977 function creates Vterminal_frame. Termcap frames now use | |
978 faces, and the face implementation uses some symbols as | |
979 face names. */ | |
980 #ifndef HAVE_NTGUI | |
981 syms_of_xfaces (); | |
982 #endif | |
983 | |
975 init_window_once (); /* Init the window system */ | 984 init_window_once (); /* Init the window system */ |
976 init_fileio_once (); /* Must precede any path manipulation. */ | 985 init_fileio_once (); /* Must precede any path manipulation. */ |
977 } | 986 } |
978 | 987 |
979 init_alloc (); | 988 init_alloc (); |
1203 syms_of_search (); | 1212 syms_of_search (); |
1204 syms_of_frame (); | 1213 syms_of_frame (); |
1205 syms_of_syntax (); | 1214 syms_of_syntax (); |
1206 syms_of_term (); | 1215 syms_of_term (); |
1207 syms_of_undo (); | 1216 syms_of_undo (); |
1217 #ifdef HAVE_SOUND | |
1218 syms_of_sound (); | |
1219 #endif | |
1208 | 1220 |
1209 /* Only defined if Emacs is compiled with USE_TEXT_PROPERTIES */ | 1221 /* Only defined if Emacs is compiled with USE_TEXT_PROPERTIES */ |
1210 syms_of_textprop (); | 1222 syms_of_textprop (); |
1211 #ifdef VMS | 1223 #ifdef VMS |
1212 syms_of_vmsproc (); | 1224 syms_of_vmsproc (); |
1224 syms_of_xselect (); | 1236 syms_of_xselect (); |
1225 #endif | 1237 #endif |
1226 #endif /* HAVE_X_WINDOWS */ | 1238 #endif /* HAVE_X_WINDOWS */ |
1227 | 1239 |
1228 #ifndef HAVE_NTGUI | 1240 #ifndef HAVE_NTGUI |
1229 syms_of_xfaces (); | |
1230 syms_of_xmenu (); | 1241 syms_of_xmenu (); |
1231 #endif | 1242 #endif |
1232 | 1243 |
1233 #ifdef HAVE_NTGUI | 1244 #ifdef HAVE_NTGUI |
1234 syms_of_w32term (); | 1245 syms_of_w32term (); |
1268 init_keyboard (); /* This too must precede init_sys_modes */ | 1279 init_keyboard (); /* This too must precede init_sys_modes */ |
1269 #ifdef VMS | 1280 #ifdef VMS |
1270 init_vmsproc (); /* And this too. */ | 1281 init_vmsproc (); /* And this too. */ |
1271 #endif /* VMS */ | 1282 #endif /* VMS */ |
1272 init_sys_modes (); /* Init system terminal modes (RAW or CBREAK, etc.) */ | 1283 init_sys_modes (); /* Init system terminal modes (RAW or CBREAK, etc.) */ |
1284 #ifdef HAVE_X_WINDOWS | |
1285 init_xfns (); | |
1286 #endif /* HAVE_X_WINDOWS */ | |
1287 init_fns (); | |
1273 init_xdisp (); | 1288 init_xdisp (); |
1274 init_macros (); | 1289 init_macros (); |
1275 init_editfns (); | 1290 init_editfns (); |
1276 #ifdef LISP_FLOAT_TYPE | 1291 #ifdef LISP_FLOAT_TYPE |
1277 init_floatfns (); | 1292 init_floatfns (); |
1278 #endif | 1293 #endif |
1279 #ifdef VMS | 1294 #ifdef VMS |
1280 init_vmsfns (); | 1295 init_vmsfns (); |
1281 #endif /* VMS */ | 1296 #endif /* VMS */ |
1282 init_process (); | 1297 init_process (); |
1298 #ifdef HAVE_SOUND | |
1299 init_sound (); | |
1300 #endif | |
1283 | 1301 |
1284 if (!initialized) | 1302 if (!initialized) |
1285 { | 1303 { |
1286 char *file; | 1304 char *file; |
1287 /* Handle -l loadup, args passed by Makefile. */ | 1305 /* Handle -l loadup, args passed by Makefile. */ |
1323 #ifdef PROFILING | 1341 #ifdef PROFILING |
1324 if (initialized) | 1342 if (initialized) |
1325 { | 1343 { |
1326 extern void _mcleanup (); | 1344 extern void _mcleanup (); |
1327 extern char etext; | 1345 extern char etext; |
1328 extern Lisp_Object Fredraw_frame (); | 1346 extern void safe_bcopy (); |
1329 atexit (_mcleanup); | 1347 atexit (_mcleanup); |
1330 /* This uses Fredraw_frame because that function | 1348 /* This uses safe_bcopy because that function comes first in the |
1331 comes first in the Emacs executable. | 1349 Emacs executable. It might be better to use something that |
1332 It might be better to use something that gives | 1350 gives the start of the text segment, but start_of_text is not |
1333 the start of the text segment, but start_of_text | 1351 defined on all systems now. */ |
1334 is not defined on all systems now. */ | 1352 monstartup (safe_bcopy, &etext); |
1335 monstartup (Fredraw_frame, &etext); | |
1336 } | 1353 } |
1337 else | 1354 else |
1338 moncontrol (0); | 1355 moncontrol (0); |
1339 #endif | 1356 #endif |
1340 #endif | 1357 #endif |
1717 | 1734 |
1718 #ifdef WINDOWSNT | 1735 #ifdef WINDOWSNT |
1719 term_ntproc (); | 1736 term_ntproc (); |
1720 #endif | 1737 #endif |
1721 | 1738 |
1739 check_glyph_memory (); | |
1740 | |
1722 #ifdef MSDOS | 1741 #ifdef MSDOS |
1723 dos_cleanup (); | 1742 dos_cleanup (); |
1724 #endif | 1743 #endif |
1725 } | 1744 } |
1726 | 1745 |