diff options
| author | Gerd Moellmann | 1999-10-25 20:51:13 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 1999-10-25 20:51:13 +0000 |
| commit | 81dc5de57a5a4e1a1e0247e6874068f09bdda68c (patch) | |
| tree | 45a01cd852fcfa9570924b30df03435a499263aa /src/data.c | |
| parent | e3384ae764a5628a0407c5d3ab70330209df5843 (diff) | |
| download | emacs-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.c | 6 |
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; | |||
| 101 | static Lisp_Object Qfloat, Qwindow_configuration, Qwindow; | 101 | static Lisp_Object Qfloat, Qwindow_configuration, Qwindow; |
| 102 | Lisp_Object Qprocess; | 102 | Lisp_Object Qprocess; |
| 103 | static Lisp_Object Qcompiled_function, Qbuffer, Qframe, Qvector; | 103 | static Lisp_Object Qcompiled_function, Qbuffer, Qframe, Qvector; |
| 104 | static Lisp_Object Qchar_table, Qbool_vector; | 104 | static Lisp_Object Qchar_table, Qbool_vector, Qhash_table; |
| 105 | 105 | ||
| 106 | static Lisp_Object swap_in_symval_forwarding (); | 106 | static 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\ |