diff options
author | Dan Nicolaescu <dann@ics.uci.edu> | 2009-11-06 06:50:52 +0000 |
---|---|---|
committer | Dan Nicolaescu <dann@ics.uci.edu> | 2009-11-06 06:50:52 +0000 |
commit | d67b4f80dbe514d6e351e7d89c78921c85e7dbe7 (patch) | |
tree | da83a5dc49e499e330365feaa8123709fdf0cc88 /src/emacs.c | |
parent | 495bd5ca19cf79a9e91b77bf2e2ea37b8be3ef1f (diff) | |
download | emacs-d67b4f80dbe514d6e351e7d89c78921c85e7dbe7.tar.gz emacs-d67b4f80dbe514d6e351e7d89c78921c85e7dbe7.tar.bz2 emacs-d67b4f80dbe514d6e351e7d89c78921c85e7dbe7.zip |
* 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.
Diffstat (limited to 'src/emacs.c')
-rw-r--r-- | src/emacs.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/emacs.c b/src/emacs.c index ce34f11591b..4099a4f4795 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -846,8 +846,8 @@ main (int argc, char **argv) && initialized) { Lisp_Object tem, tem2; - tem = Fsymbol_value (intern ("emacs-version")); - tem2 = Fsymbol_value (intern ("emacs-copyright")); + tem = Fsymbol_value (intern_c_string ("emacs-version")); + tem2 = Fsymbol_value (intern_c_string ("emacs-copyright")); if (!STRINGP (tem)) { fprintf (stderr, "Invalid value of `emacs-version'\n"); @@ -1436,7 +1436,7 @@ main (int argc, char **argv) Lisp_Object old_log_max; Lisp_Object symbol, tail; - symbol = intern ("enable-multibyte-characters"); + symbol = intern_c_string ("enable-multibyte-characters"); Fset_default (symbol, Qnil); if (initialized) @@ -1755,11 +1755,11 @@ main (int argc, char **argv) char *file; /* Handle -l loadup, args passed by Makefile. */ if (argmatch (argv, argc, "-l", "--load", 3, &file, &skip_args)) - Vtop_level = Fcons (intern ("load"), + Vtop_level = Fcons (intern_c_string ("load"), Fcons (build_string (file), Qnil)); /* Unless next switch is -nl, load "loadup.el" first thing. */ if (! no_loadup) - Vtop_level = Fcons (intern ("load"), + Vtop_level = Fcons (intern_c_string ("load"), Fcons (build_string ("loadup.el"), Qnil)); } @@ -2541,7 +2541,7 @@ from the parent process and its tty file descriptors. */) void syms_of_emacs () { - Qfile_name_handler_alist = intern ("file-name-handler-alist"); + Qfile_name_handler_alist = intern_c_string ("file-name-handler-alist"); staticpro (&Qfile_name_handler_alist); #ifndef CANNOT_DUMP @@ -2575,7 +2575,7 @@ Special values: `cygwin' compiled using the Cygwin library. Anything else (in Emacs 23.1, the possibilities are: aix, berkeley-unix, hpux, irix, lynxos 3.0.1, usg-unix-v) indicates some sort of Unix system. */); - Vsystem_type = intern (SYSTEM_TYPE); + Vsystem_type = intern_c_string (SYSTEM_TYPE); DEFVAR_LISP ("system-configuration", &Vsystem_configuration, doc: /* Value is string indicating configuration Emacs was built for. |