comparison src/alloc.c @ 105877:21bdda3ded62

* xterm.c (syms_of_xterm): * xselect.c (syms_of_xselect): * xmenu.c (syms_of_xmenu): * xfns.c (syms_of_xfns): * xfaces.c (syms_of_xfaces): * xdisp.c (syms_of_xdisp): * window.c (syms_of_window): * w32fns.c (syms_of_w32fns): * undo.c (syms_of_undo): * textprop.c (syms_of_textprop): * terminal.c (syms_of_terminal): * syntax.c (syms_of_syntax): * sound.c (syms_of_sound): * search.c (syms_of_search): * print.c (syms_of_print): * minibuf.c (syms_of_minibuf): * macros.c (syms_of_macros): * keymap.c (syms_of_keymap, initial_define_key) (initial_define_lispy_key): * keyboard.c (syms_of_keyboard): * insdel.c (syms_of_insdel): * image.c (syms_of_image): * fringe.c (syms_of_fringe): * frame.c (syms_of_frame): * fontset.c (syms_of_fontset): * fns.c (syms_of_fns): * fns.c (syms_of_fns): * fileio.c (syms_of_fileio): * fileio.c (syms_of_fileio): * eval.c (syms_of_eval): * doc.c (syms_of_doc): * dispnew.c (syms_of_display): * dired.c (syms_of_dired): * dbusbind.c (syms_of_dbusbind): * data.c (syms_of_data): * composite.c (syms_of_composite): * coding.c (syms_of_coding): * cmds.c (syms_of_cmds): * charset.c (define_charset_internal, syms_of_character): * ccl.c (syms_of_ccl): * category.c (syms_of_category, init_category_once): * casetab.c (syms_of_casetab): * casefiddle.c (syms_of_casefiddle): * callint.c (syms_of_callint): * bytecode.c (syms_of_bytecode): * buffer.c (keys_of_buffer, syms_of_buffer): * alloc.c (syms_of_alloc): * process.c (syms_of_process, init_process): * lread.c (syms_of_lread, init_obarray): * font.c (build_style_table): * emacs.c (syms_of_emacs, main): Replace calls to intern with intern_c_string, calls to make_pure_string with make_pure_c_string. Use pure_cons instead of Fcons. * process.c (socket_options): Make it const. (set_socket_option, init_process): Use a const pointer. * lread.c (intern_c_string): New function. (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool) (defvar_int): Uset it. Make the name const char*. * font.c (struct table_entry): Remove unused member. Make NAMES constant. (weight_table, slant_table, width_table): Make constant. * emacs.c (struct standard_args): Make name and longname constant.
author Dan Nicolaescu <dann@ics.uci.edu>
date Fri, 06 Nov 2009 06:50:52 +0000
parents 1fa408e42f53
children 7d244791c020
comparison
equal deleted inserted replaced
105876:c5c76c2da5ee 105877:21bdda3ded62
28 #endif 28 #endif
29 29
30 #ifdef ALLOC_DEBUG 30 #ifdef ALLOC_DEBUG
31 #undef INLINE 31 #undef INLINE
32 #endif 32 #endif
33
34 /* Note that this declares bzero on OSF/1. How dumb. */
35 33
36 #include <signal.h> 34 #include <signal.h>
37 35
38 #ifdef HAVE_GTK_AND_PTHREAD 36 #ifdef HAVE_GTK_AND_PTHREAD
39 #include <pthread.h> 37 #include <pthread.h>
6394 garbage_collection_messages = 0; 6392 garbage_collection_messages = 0;
6395 6393
6396 DEFVAR_LISP ("post-gc-hook", &Vpost_gc_hook, 6394 DEFVAR_LISP ("post-gc-hook", &Vpost_gc_hook,
6397 doc: /* Hook run after garbage collection has finished. */); 6395 doc: /* Hook run after garbage collection has finished. */);
6398 Vpost_gc_hook = Qnil; 6396 Vpost_gc_hook = Qnil;
6399 Qpost_gc_hook = intern ("post-gc-hook"); 6397 Qpost_gc_hook = intern_c_string ("post-gc-hook");
6400 staticpro (&Qpost_gc_hook); 6398 staticpro (&Qpost_gc_hook);
6401 6399
6402 DEFVAR_LISP ("memory-signal-data", &Vmemory_signal_data, 6400 DEFVAR_LISP ("memory-signal-data", &Vmemory_signal_data,
6403 doc: /* Precomputed `signal' argument for memory-full error. */); 6401 doc: /* Precomputed `signal' argument for memory-full error. */);
6404 /* We build this in advance because if we wait until we need it, we might 6402 /* We build this in advance because if we wait until we need it, we might
6410 DEFVAR_LISP ("memory-full", &Vmemory_full, 6408 DEFVAR_LISP ("memory-full", &Vmemory_full,
6411 doc: /* Non-nil means Emacs cannot get much more Lisp memory. */); 6409 doc: /* Non-nil means Emacs cannot get much more Lisp memory. */);
6412 Vmemory_full = Qnil; 6410 Vmemory_full = Qnil;
6413 6411
6414 staticpro (&Qgc_cons_threshold); 6412 staticpro (&Qgc_cons_threshold);
6415 Qgc_cons_threshold = intern ("gc-cons-threshold"); 6413 Qgc_cons_threshold = intern_c_string ("gc-cons-threshold");
6416 6414
6417 staticpro (&Qchar_table_extra_slots); 6415 staticpro (&Qchar_table_extra_slots);
6418 Qchar_table_extra_slots = intern ("char-table-extra-slots"); 6416 Qchar_table_extra_slots = intern_c_string ("char-table-extra-slots");
6419 6417
6420 DEFVAR_LISP ("gc-elapsed", &Vgc_elapsed, 6418 DEFVAR_LISP ("gc-elapsed", &Vgc_elapsed,
6421 doc: /* Accumulated time elapsed in garbage collections. 6419 doc: /* Accumulated time elapsed in garbage collections.
6422 The time is in seconds as a floating point value. */); 6420 The time is in seconds as a floating point value. */);
6423 DEFVAR_INT ("gcs-done", &gcs_done, 6421 DEFVAR_INT ("gcs-done", &gcs_done,