aboutsummaryrefslogtreecommitdiffstats
path: root/src/data.c
diff options
context:
space:
mode:
authorJim Blandy1993-01-26 01:58:16 +0000
committerJim Blandy1993-01-26 01:58:16 +0000
commitdbc4e1c12940079cad7b24e1654a0badcda8d6fc (patch)
treee0fbea5b15bd13d2839c8b59b624cec80f31bfd8 /src/data.c
parent72766144811cd7258b2a59e56f6e3657537ea508 (diff)
downloademacs-dbc4e1c12940079cad7b24e1654a0badcda8d6fc.tar.gz
emacs-dbc4e1c12940079cad7b24e1654a0badcda8d6fc.zip
JimB's changes since January 18th
Diffstat (limited to 'src/data.c')
-rw-r--r--src/data.c20
1 files changed, 7 insertions, 13 deletions
diff --git a/src/data.c b/src/data.c
index 3a19314873c..071cfe853b7 100644
--- a/src/data.c
+++ b/src/data.c
@@ -256,8 +256,8 @@ DEFUN ("subrp", Fsubrp, Ssubrp, 1, 1, 0, "T if OBJECT is a built-in function.")
256 return Qnil; 256 return Qnil;
257} 257}
258 258
259DEFUN ("compiled-function-p", Fcompiled_function_p, Scompiled_function_p, 259DEFUN ("byte-code-function-p", Fbyte_code_function_p, Sbyte_code_function_p,
260 1, 1, 0, "T if OBJECT is a compiled function object.") 260 1, 1, 0, "T if OBJECT is a byte-compiled function object.")
261 (obj) 261 (obj)
262 Lisp_Object obj; 262 Lisp_Object obj;
263{ 263{
@@ -308,13 +308,10 @@ DEFUN ("numberp", Fnumberp, Snumberp, 1, 1, 0,
308 (obj) 308 (obj)
309 Lisp_Object obj; 309 Lisp_Object obj;
310{ 310{
311 if (0 311 if (NUMBERP (obj))
312#ifdef LISP_FLOAT_TYPE
313 || XTYPE (obj) == Lisp_Float
314#endif
315 || XTYPE (obj) == Lisp_Int)
316 return Qt; 312 return Qt;
317 return Qnil; 313 else
314 return Qnil;
318} 315}
319 316
320DEFUN ("number-or-marker-p", Fnumber_or_marker_p, 317DEFUN ("number-or-marker-p", Fnumber_or_marker_p,
@@ -323,10 +320,7 @@ DEFUN ("number-or-marker-p", Fnumber_or_marker_p,
323 (obj) 320 (obj)
324 Lisp_Object obj; 321 Lisp_Object obj;
325{ 322{
326 if (XTYPE (obj) == Lisp_Int 323 if (NUMBERP (obj)
327#ifdef LISP_FLOAT_TYPE
328 || XTYPE (obj) == Lisp_Float
329#endif
330 || XTYPE (obj) == Lisp_Marker) 324 || XTYPE (obj) == Lisp_Marker)
331 return Qt; 325 return Qt;
332 return Qnil; 326 return Qnil;
@@ -2037,7 +2031,7 @@ syms_of_data ()
2037 defsubr (&Sbufferp); 2031 defsubr (&Sbufferp);
2038 defsubr (&Smarkerp); 2032 defsubr (&Smarkerp);
2039 defsubr (&Ssubrp); 2033 defsubr (&Ssubrp);
2040 defsubr (&Scompiled_function_p); 2034 defsubr (&Sbyte_code_function_p);
2041 defsubr (&Schar_or_string_p); 2035 defsubr (&Schar_or_string_p);
2042 defsubr (&Scar); 2036 defsubr (&Scar);
2043 defsubr (&Scdr); 2037 defsubr (&Scdr);