aboutsummaryrefslogtreecommitdiffstats
path: root/src/fns.c
diff options
context:
space:
mode:
authorJuanma Barranquero2011-06-24 23:25:22 +0200
committerJuanma Barranquero2011-06-24 23:25:22 +0200
commitcd3520a41df21d80a9d894c58af2daba23c8dd24 (patch)
tree945eaef322c65471833954ddce161a7a913ee3c8 /src/fns.c
parent7d0da90e7b98f5c09df82be9985cc27d30adea07 (diff)
downloademacs-cd3520a41df21d80a9d894c58af2daba23c8dd24.tar.gz
emacs-cd3520a41df21d80a9d894c58af2daba23c8dd24.zip
Move DEFSYM to lisp.h and use everywhere.
Diffstat (limited to 'src/fns.c')
-rw-r--r--src/fns.c75
1 files changed, 25 insertions, 50 deletions
diff --git a/src/fns.c b/src/fns.c
index 5bf274030a3..b6fe2a7f7b6 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -4854,34 +4854,20 @@ syms_of_fns (void)
4854 DEFSYM (Qsha512, "sha512"); 4854 DEFSYM (Qsha512, "sha512");
4855 4855
4856 /* Hash table stuff. */ 4856 /* Hash table stuff. */
4857 Qhash_table_p = intern_c_string ("hash-table-p"); 4857 DEFSYM (Qhash_table_p, "hash-table-p");
4858 staticpro (&Qhash_table_p); 4858 DEFSYM (Qeq, "eq");
4859 Qeq = intern_c_string ("eq"); 4859 DEFSYM (Qeql, "eql");
4860 staticpro (&Qeq); 4860 DEFSYM (Qequal, "equal");
4861 Qeql = intern_c_string ("eql"); 4861 DEFSYM (QCtest, ":test");
4862 staticpro (&Qeql); 4862 DEFSYM (QCsize, ":size");
4863 Qequal = intern_c_string ("equal"); 4863 DEFSYM (QCrehash_size, ":rehash-size");
4864 staticpro (&Qequal); 4864 DEFSYM (QCrehash_threshold, ":rehash-threshold");
4865 QCtest = intern_c_string (":test"); 4865 DEFSYM (QCweakness, ":weakness");
4866 staticpro (&QCtest); 4866 DEFSYM (Qkey, "key");
4867 QCsize = intern_c_string (":size"); 4867 DEFSYM (Qvalue, "value");
4868 staticpro (&QCsize); 4868 DEFSYM (Qhash_table_test, "hash-table-test");
4869 QCrehash_size = intern_c_string (":rehash-size"); 4869 DEFSYM (Qkey_or_value, "key-or-value");
4870 staticpro (&QCrehash_size); 4870 DEFSYM (Qkey_and_value, "key-and-value");
4871 QCrehash_threshold = intern_c_string (":rehash-threshold");
4872 staticpro (&QCrehash_threshold);
4873 QCweakness = intern_c_string (":weakness");
4874 staticpro (&QCweakness);
4875 Qkey = intern_c_string ("key");
4876 staticpro (&Qkey);
4877 Qvalue = intern_c_string ("value");
4878 staticpro (&Qvalue);
4879 Qhash_table_test = intern_c_string ("hash-table-test");
4880 staticpro (&Qhash_table_test);
4881 Qkey_or_value = intern_c_string ("key-or-value");
4882 staticpro (&Qkey_or_value);
4883 Qkey_and_value = intern_c_string ("key-and-value");
4884 staticpro (&Qkey_and_value);
4885 4871
4886 defsubr (&Ssxhash); 4872 defsubr (&Ssxhash);
4887 defsubr (&Smake_hash_table); 4873 defsubr (&Smake_hash_table);
@@ -4900,18 +4886,12 @@ syms_of_fns (void)
4900 defsubr (&Smaphash); 4886 defsubr (&Smaphash);
4901 defsubr (&Sdefine_hash_table_test); 4887 defsubr (&Sdefine_hash_table_test);
4902 4888
4903 Qstring_lessp = intern_c_string ("string-lessp"); 4889 DEFSYM (Qstring_lessp, "string-lessp");
4904 staticpro (&Qstring_lessp); 4890 DEFSYM (Qprovide, "provide");
4905 Qprovide = intern_c_string ("provide"); 4891 DEFSYM (Qrequire, "require");
4906 staticpro (&Qprovide); 4892 DEFSYM (Qyes_or_no_p_history, "yes-or-no-p-history");
4907 Qrequire = intern_c_string ("require"); 4893 DEFSYM (Qcursor_in_echo_area, "cursor-in-echo-area");
4908 staticpro (&Qrequire); 4894 DEFSYM (Qwidget_type, "widget-type");
4909 Qyes_or_no_p_history = intern_c_string ("yes-or-no-p-history");
4910 staticpro (&Qyes_or_no_p_history);
4911 Qcursor_in_echo_area = intern_c_string ("cursor-in-echo-area");
4912 staticpro (&Qcursor_in_echo_area);
4913 Qwidget_type = intern_c_string ("widget-type");
4914 staticpro (&Qwidget_type);
4915 4895
4916 staticpro (&string_char_byte_cache_string); 4896 staticpro (&string_char_byte_cache_string);
4917 string_char_byte_cache_string = Qnil; 4897 string_char_byte_cache_string = Qnil;
@@ -4925,18 +4905,13 @@ syms_of_fns (void)
4925 doc: /* A list of symbols which are the features of the executing Emacs. 4905 doc: /* A list of symbols which are the features of the executing Emacs.
4926Used by `featurep' and `require', and altered by `provide'. */); 4906Used by `featurep' and `require', and altered by `provide'. */);
4927 Vfeatures = Fcons (intern_c_string ("emacs"), Qnil); 4907 Vfeatures = Fcons (intern_c_string ("emacs"), Qnil);
4928 Qsubfeatures = intern_c_string ("subfeatures"); 4908 DEFSYM (Qsubfeatures, "subfeatures");
4929 staticpro (&Qsubfeatures);
4930 4909
4931#ifdef HAVE_LANGINFO_CODESET 4910#ifdef HAVE_LANGINFO_CODESET
4932 Qcodeset = intern_c_string ("codeset"); 4911 DEFSYM (Qcodeset, "codeset");
4933 staticpro (&Qcodeset); 4912 DEFSYM (Qdays, "days");
4934 Qdays = intern_c_string ("days"); 4913 DEFSYM (Qmonths, "months");
4935 staticpro (&Qdays); 4914 DEFSYM (Qpaper, "paper");
4936 Qmonths = intern_c_string ("months");
4937 staticpro (&Qmonths);
4938 Qpaper = intern_c_string ("paper");
4939 staticpro (&Qpaper);
4940#endif /* HAVE_LANGINFO_CODESET */ 4915#endif /* HAVE_LANGINFO_CODESET */
4941 4916
4942 DEFVAR_BOOL ("use-dialog-box", use_dialog_box, 4917 DEFVAR_BOOL ("use-dialog-box", use_dialog_box,