aboutsummaryrefslogtreecommitdiffstats
path: root/src/fns.c
diff options
context:
space:
mode:
authorDan Nicolaescu2009-11-06 06:50:52 +0000
committerDan Nicolaescu2009-11-06 06:50:52 +0000
commitd67b4f80dbe514d6e351e7d89c78921c85e7dbe7 (patch)
treeda83a5dc49e499e330365feaa8123709fdf0cc88 /src/fns.c
parent495bd5ca19cf79a9e91b77bf2e2ea37b8be3ef1f (diff)
downloademacs-d67b4f80dbe514d6e351e7d89c78921c85e7dbe7.tar.gz
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/fns.c')
-rw-r--r--src/fns.c52
1 files changed, 26 insertions, 26 deletions
diff --git a/src/fns.c b/src/fns.c
index 10d755ccea7..09bad09551d 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -5153,33 +5153,33 @@ void
5153syms_of_fns () 5153syms_of_fns ()
5154{ 5154{
5155 /* Hash table stuff. */ 5155 /* Hash table stuff. */
5156 Qhash_table_p = intern ("hash-table-p"); 5156 Qhash_table_p = intern_c_string ("hash-table-p");
5157 staticpro (&Qhash_table_p); 5157 staticpro (&Qhash_table_p);
5158 Qeq = intern ("eq"); 5158 Qeq = intern_c_string ("eq");
5159 staticpro (&Qeq); 5159 staticpro (&Qeq);
5160 Qeql = intern ("eql"); 5160 Qeql = intern_c_string ("eql");
5161 staticpro (&Qeql); 5161 staticpro (&Qeql);
5162 Qequal = intern ("equal"); 5162 Qequal = intern_c_string ("equal");
5163 staticpro (&Qequal); 5163 staticpro (&Qequal);
5164 QCtest = intern (":test"); 5164 QCtest = intern_c_string (":test");
5165 staticpro (&QCtest); 5165 staticpro (&QCtest);
5166 QCsize = intern (":size"); 5166 QCsize = intern_c_string (":size");
5167 staticpro (&QCsize); 5167 staticpro (&QCsize);
5168 QCrehash_size = intern (":rehash-size"); 5168 QCrehash_size = intern_c_string (":rehash-size");
5169 staticpro (&QCrehash_size); 5169 staticpro (&QCrehash_size);
5170 QCrehash_threshold = intern (":rehash-threshold"); 5170 QCrehash_threshold = intern_c_string (":rehash-threshold");
5171 staticpro (&QCrehash_threshold); 5171 staticpro (&QCrehash_threshold);
5172 QCweakness = intern (":weakness"); 5172 QCweakness = intern_c_string (":weakness");
5173 staticpro (&QCweakness); 5173 staticpro (&QCweakness);
5174 Qkey = intern ("key"); 5174 Qkey = intern_c_string ("key");
5175 staticpro (&Qkey); 5175 staticpro (&Qkey);
5176 Qvalue = intern ("value"); 5176 Qvalue = intern_c_string ("value");
5177 staticpro (&Qvalue); 5177 staticpro (&Qvalue);
5178 Qhash_table_test = intern ("hash-table-test"); 5178 Qhash_table_test = intern_c_string ("hash-table-test");
5179 staticpro (&Qhash_table_test); 5179 staticpro (&Qhash_table_test);
5180 Qkey_or_value = intern ("key-or-value"); 5180 Qkey_or_value = intern_c_string ("key-or-value");
5181 staticpro (&Qkey_or_value); 5181 staticpro (&Qkey_or_value);
5182 Qkey_and_value = intern ("key-and-value"); 5182 Qkey_and_value = intern_c_string ("key-and-value");
5183 staticpro (&Qkey_and_value); 5183 staticpro (&Qkey_and_value);
5184 5184
5185 defsubr (&Ssxhash); 5185 defsubr (&Ssxhash);
@@ -5199,17 +5199,17 @@ syms_of_fns ()
5199 defsubr (&Smaphash); 5199 defsubr (&Smaphash);
5200 defsubr (&Sdefine_hash_table_test); 5200 defsubr (&Sdefine_hash_table_test);
5201 5201
5202 Qstring_lessp = intern ("string-lessp"); 5202 Qstring_lessp = intern_c_string ("string-lessp");
5203 staticpro (&Qstring_lessp); 5203 staticpro (&Qstring_lessp);
5204 Qprovide = intern ("provide"); 5204 Qprovide = intern_c_string ("provide");
5205 staticpro (&Qprovide); 5205 staticpro (&Qprovide);
5206 Qrequire = intern ("require"); 5206 Qrequire = intern_c_string ("require");
5207 staticpro (&Qrequire); 5207 staticpro (&Qrequire);
5208 Qyes_or_no_p_history = intern ("yes-or-no-p-history"); 5208 Qyes_or_no_p_history = intern_c_string ("yes-or-no-p-history");
5209 staticpro (&Qyes_or_no_p_history); 5209 staticpro (&Qyes_or_no_p_history);
5210 Qcursor_in_echo_area = intern ("cursor-in-echo-area"); 5210 Qcursor_in_echo_area = intern_c_string ("cursor-in-echo-area");
5211 staticpro (&Qcursor_in_echo_area); 5211 staticpro (&Qcursor_in_echo_area);
5212 Qwidget_type = intern ("widget-type"); 5212 Qwidget_type = intern_c_string ("widget-type");
5213 staticpro (&Qwidget_type); 5213 staticpro (&Qwidget_type);
5214 5214
5215 staticpro (&string_char_byte_cache_string); 5215 staticpro (&string_char_byte_cache_string);
@@ -5223,18 +5223,18 @@ syms_of_fns ()
5223 DEFVAR_LISP ("features", &Vfeatures, 5223 DEFVAR_LISP ("features", &Vfeatures,
5224 doc: /* A list of symbols which are the features of the executing Emacs. 5224 doc: /* A list of symbols which are the features of the executing Emacs.
5225Used by `featurep' and `require', and altered by `provide'. */); 5225Used by `featurep' and `require', and altered by `provide'. */);
5226 Vfeatures = Fcons (intern ("emacs"), Qnil); 5226 Vfeatures = Fcons (intern_c_string ("emacs"), Qnil);
5227 Qsubfeatures = intern ("subfeatures"); 5227 Qsubfeatures = intern_c_string ("subfeatures");
5228 staticpro (&Qsubfeatures); 5228 staticpro (&Qsubfeatures);
5229 5229
5230#ifdef HAVE_LANGINFO_CODESET 5230#ifdef HAVE_LANGINFO_CODESET
5231 Qcodeset = intern ("codeset"); 5231 Qcodeset = intern_c_string ("codeset");
5232 staticpro (&Qcodeset); 5232 staticpro (&Qcodeset);
5233 Qdays = intern ("days"); 5233 Qdays = intern_c_string ("days");
5234 staticpro (&Qdays); 5234 staticpro (&Qdays);
5235 Qmonths = intern ("months"); 5235 Qmonths = intern_c_string ("months");
5236 staticpro (&Qmonths); 5236 staticpro (&Qmonths);
5237 Qpaper = intern ("paper"); 5237 Qpaper = intern_c_string ("paper");
5238 staticpro (&Qpaper); 5238 staticpro (&Qpaper);
5239#endif /* HAVE_LANGINFO_CODESET */ 5239#endif /* HAVE_LANGINFO_CODESET */
5240 5240