From 17d66d2fe5cec95b5217ae1aef9e8a69e8594c24 Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Wed, 13 Dec 1995 02:17:09 +0000 Subject: (Ftype_of): Return `char-table' and `bool-vector' for char tables and bool vectors, resp. (Qchar_table, Qbool_vector): New variables. (syms_of_data): Initialize and staticpro them. --- src/data.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/data.c b/src/data.c index 1a2c68a4e44..10cd316cf78 100644 --- a/src/data.c +++ b/src/data.c @@ -83,6 +83,7 @@ Lisp_Object Qnumberp, Qnumber_or_marker_p; static Lisp_Object Qinteger, Qsymbol, Qstring, Qcons, Qmarker, Qoverlay; static Lisp_Object Qfloat, Qwindow_configuration, Qprocess, Qwindow; static Lisp_Object Qcompiled_function, Qbuffer, Qframe, Qvector; +static Lisp_Object Qchar_table, Qbool_vector; static Lisp_Object swap_in_symval_forwarding (); @@ -228,6 +229,10 @@ for example, (type-of 1) returns `integer'.") return Qcompiled_function; if (GC_BUFFERP (object)) return Qbuffer; + if (GC_CHAR_TABLE_P (object)) + return Qchar_table; + if (GC_BOOL_VECTOR_P (object)) + return Qbool_vector; #ifdef MULTI_FRAME if (GC_FRAMEP (object)) @@ -2600,6 +2605,8 @@ syms_of_data () Qbuffer = intern ("buffer"); Qframe = intern ("frame"); Qvector = intern ("vector"); + Qchar_table = intern ("char-table"); + Qbool_vector = intern ("bool-vector"); staticpro (&Qinteger); staticpro (&Qsymbol); @@ -2616,6 +2623,8 @@ syms_of_data () staticpro (&Qbuffer); staticpro (&Qframe); staticpro (&Qvector); + staticpro (&Qchar_table); + staticpro (&Qbool_vector); defsubr (&Seq); defsubr (&Snull); -- cgit v1.2.1