Mercurial > emacs
diff src/lread.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 | 89183b6f6e9d |
children | 5fc80e6b5b7c |
line wrap: on
line diff
--- a/src/lread.c Fri Nov 06 06:39:33 2009 +0000 +++ b/src/lread.c Fri Nov 06 06:50:52 2009 +0000 @@ -3917,7 +3917,7 @@ XSETFASTINT (oblength, OBARRAY_SIZE); - Qnil = Fmake_symbol (make_pure_string ("nil", 3, 3, 0)); + Qnil = Fmake_symbol (make_pure_c_string ("nil")); Vobarray = Fmake_vector (oblength, make_number (0)); initial_obarray = Vobarray; staticpro (&initial_obarray); @@ -3932,12 +3932,12 @@ tem = &XVECTOR (Vobarray)->contents[hash]; *tem = Qnil; - Qunbound = Fmake_symbol (make_pure_string ("unbound", 7, 7, 0)); + Qunbound = Fmake_symbol (make_pure_c_string ("unbound")); XSYMBOL (Qnil)->function = Qunbound; XSYMBOL (Qunbound)->value = Qunbound; XSYMBOL (Qunbound)->function = Qunbound; - Qt = intern ("t"); + Qt = intern_c_string ("t"); XSYMBOL (Qnil)->value = Qnil; XSYMBOL (Qnil)->plist = Qnil; XSYMBOL (Qt)->value = Qt; @@ -3946,7 +3946,7 @@ /* Qt is correct even if CANNOT_DUMP. loadup.el will set to nil at end. */ Vpurify_flag = Qt; - Qvariable_documentation = intern ("variable-documentation"); + Qvariable_documentation = intern_c_string ("variable-documentation"); staticpro (&Qvariable_documentation); read_buffer_size = 100 + MAX_MULTIBYTE_LENGTH; @@ -3958,7 +3958,7 @@ struct Lisp_Subr *sname; { Lisp_Object sym; - sym = intern (sname->symbol_name); + sym = intern_c_string (sname->symbol_name); XSETPVECTYPE (sname, PVEC_SUBR); XSETSUBR (XSYMBOL (sym)->function, sname); } @@ -4349,7 +4349,7 @@ DEFVAR_BOOL ("load-in-progress", &load_in_progress, doc: /* Non-nil if inside of `load'. */); - Qload_in_progress = intern ("load-in-progress"); + Qload_in_progress = intern_c_string ("load-in-progress"); staticpro (&Qload_in_progress); DEFVAR_LISP ("after-load-alist", &Vafter_load_alist, @@ -4463,7 +4463,7 @@ When the regular expression matches, the file is considered to be safe to load. See also `load-dangerous-libraries'. */); Vbytecomp_version_regexp - = build_string ("^;;;.\\(in Emacs version\\|bytecomp version FSF\\)"); + = make_pure_c_string ("^;;;.\\(in Emacs version\\|bytecomp version FSF\\)"); DEFVAR_LISP ("eval-buffer-list", &Veval_buffer_list, doc: /* List of buffers being read from by calls to `eval-buffer' and `eval-region'. */); @@ -4472,7 +4472,7 @@ DEFVAR_LISP ("old-style-backquotes", &Vold_style_backquotes, doc: /* Set to non-nil when `read' encounters an old-style backquote. */); Vold_style_backquotes = Qnil; - Qold_style_backquotes = intern ("old-style-backquotes"); + Qold_style_backquotes = intern_c_string ("old-style-backquotes"); staticpro (&Qold_style_backquotes); /* Vsource_directory was initialized in init_lread. */ @@ -4480,55 +4480,55 @@ load_descriptor_list = Qnil; staticpro (&load_descriptor_list); - Qcurrent_load_list = intern ("current-load-list"); + Qcurrent_load_list = intern_c_string ("current-load-list"); staticpro (&Qcurrent_load_list); - Qstandard_input = intern ("standard-input"); + Qstandard_input = intern_c_string ("standard-input"); staticpro (&Qstandard_input); - Qread_char = intern ("read-char"); + Qread_char = intern_c_string ("read-char"); staticpro (&Qread_char); - Qget_file_char = intern ("get-file-char"); + Qget_file_char = intern_c_string ("get-file-char"); staticpro (&Qget_file_char); - Qget_emacs_mule_file_char = intern ("get-emacs-mule-file-char"); + Qget_emacs_mule_file_char = intern_c_string ("get-emacs-mule-file-char"); staticpro (&Qget_emacs_mule_file_char); - Qload_force_doc_strings = intern ("load-force-doc-strings"); + Qload_force_doc_strings = intern_c_string ("load-force-doc-strings"); staticpro (&Qload_force_doc_strings); - Qbackquote = intern ("`"); + Qbackquote = intern_c_string ("`"); staticpro (&Qbackquote); - Qcomma = intern (","); + Qcomma = intern_c_string (","); staticpro (&Qcomma); - Qcomma_at = intern (",@"); + Qcomma_at = intern_c_string (",@"); staticpro (&Qcomma_at); - Qcomma_dot = intern (",."); + Qcomma_dot = intern_c_string (",."); staticpro (&Qcomma_dot); - Qinhibit_file_name_operation = intern ("inhibit-file-name-operation"); + Qinhibit_file_name_operation = intern_c_string ("inhibit-file-name-operation"); staticpro (&Qinhibit_file_name_operation); - Qascii_character = intern ("ascii-character"); + Qascii_character = intern_c_string ("ascii-character"); staticpro (&Qascii_character); - Qfunction = intern ("function"); + Qfunction = intern_c_string ("function"); staticpro (&Qfunction); - Qload = intern ("load"); + Qload = intern_c_string ("load"); staticpro (&Qload); - Qload_file_name = intern ("load-file-name"); + Qload_file_name = intern_c_string ("load-file-name"); staticpro (&Qload_file_name); - Qeval_buffer_list = intern ("eval-buffer-list"); + Qeval_buffer_list = intern_c_string ("eval-buffer-list"); staticpro (&Qeval_buffer_list); - Qfile_truename = intern ("file-truename"); + Qfile_truename = intern_c_string ("file-truename"); staticpro (&Qfile_truename) ; - Qdo_after_load_evaluation = intern ("do-after-load-evaluation"); + Qdo_after_load_evaluation = intern_c_string ("do-after-load-evaluation"); staticpro (&Qdo_after_load_evaluation) ; staticpro (&dump_path); @@ -4541,19 +4541,19 @@ Vloads_in_progress = Qnil; staticpro (&Vloads_in_progress); - Qhash_table = intern ("hash-table"); + Qhash_table = intern_c_string ("hash-table"); staticpro (&Qhash_table); - Qdata = intern ("data"); + Qdata = intern_c_string ("data"); staticpro (&Qdata); - Qtest = intern ("test"); + Qtest = intern_c_string ("test"); staticpro (&Qtest); - Qsize = intern ("size"); + Qsize = intern_c_string ("size"); staticpro (&Qsize); - Qweakness = intern ("weakness"); + Qweakness = intern_c_string ("weakness"); staticpro (&Qweakness); - Qrehash_size = intern ("rehash-size"); + Qrehash_size = intern_c_string ("rehash-size"); staticpro (&Qrehash_size); - Qrehash_threshold = intern ("rehash-threshold"); + Qrehash_threshold = intern_c_string ("rehash-threshold"); staticpro (&Qrehash_threshold); }