aboutsummaryrefslogtreecommitdiffstats
path: root/src/data.c
diff options
context:
space:
mode:
authorGerd Moellmann1999-10-25 20:51:13 +0000
committerGerd Moellmann1999-10-25 20:51:13 +0000
commit81dc5de57a5a4e1a1e0247e6874068f09bdda68c (patch)
tree45a01cd852fcfa9570924b30df03435a499263aa /src/data.c
parente3384ae764a5628a0407c5d3ab70330209df5843 (diff)
downloademacs-81dc5de57a5a4e1a1e0247e6874068f09bdda68c.tar.gz
emacs-81dc5de57a5a4e1a1e0247e6874068f09bdda68c.zip
(Qhash_table): New.
(Ftype_of): Return it for hash tables. (syms_of_data): Initialize Qhash_table.
Diffstat (limited to 'src/data.c')
-rw-r--r--src/data.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/data.c b/src/data.c
index d5a739c4c61..abddf5e9a71 100644
--- a/src/data.c
+++ b/src/data.c
@@ -101,7 +101,7 @@ static Lisp_Object Qinteger, Qsymbol, Qstring, Qcons, Qmarker, Qoverlay;
101static Lisp_Object Qfloat, Qwindow_configuration, Qwindow; 101static Lisp_Object Qfloat, Qwindow_configuration, Qwindow;
102Lisp_Object Qprocess; 102Lisp_Object Qprocess;
103static Lisp_Object Qcompiled_function, Qbuffer, Qframe, Qvector; 103static Lisp_Object Qcompiled_function, Qbuffer, Qframe, Qvector;
104static Lisp_Object Qchar_table, Qbool_vector; 104static Lisp_Object Qchar_table, Qbool_vector, Qhash_table;
105 105
106static Lisp_Object swap_in_symval_forwarding (); 106static Lisp_Object swap_in_symval_forwarding ();
107 107
@@ -247,6 +247,8 @@ for example, (type-of 1) returns `integer'.")
247 return Qbool_vector; 247 return Qbool_vector;
248 if (GC_FRAMEP (object)) 248 if (GC_FRAMEP (object))
249 return Qframe; 249 return Qframe;
250 if (GC_HASH_TABLE_P (object))
251 return Qhash_table;
250 return Qvector; 252 return Qvector;
251 253
252#ifdef LISP_FLOAT_TYPE 254#ifdef LISP_FLOAT_TYPE
@@ -2828,6 +2830,7 @@ syms_of_data ()
2828 Qvector = intern ("vector"); 2830 Qvector = intern ("vector");
2829 Qchar_table = intern ("char-table"); 2831 Qchar_table = intern ("char-table");
2830 Qbool_vector = intern ("bool-vector"); 2832 Qbool_vector = intern ("bool-vector");
2833 Qhash_table = intern ("hash-table");
2831 2834
2832 staticpro (&Qinteger); 2835 staticpro (&Qinteger);
2833 staticpro (&Qsymbol); 2836 staticpro (&Qsymbol);
@@ -2846,6 +2849,7 @@ syms_of_data ()
2846 staticpro (&Qvector); 2849 staticpro (&Qvector);
2847 staticpro (&Qchar_table); 2850 staticpro (&Qchar_table);
2848 staticpro (&Qbool_vector); 2851 staticpro (&Qbool_vector);
2852 staticpro (&Qhash_table);
2849 2853
2850 DEFVAR_BOOL ("keyword-symbols-constant-flag", &keyword_symbols_constant_flag, 2854 DEFVAR_BOOL ("keyword-symbols-constant-flag", &keyword_symbols_constant_flag,
2851 "Non-nil means it is an error to set a keyword symbol.\n\ 2855 "Non-nil means it is an error to set a keyword symbol.\n\