aboutsummaryrefslogtreecommitdiffstats
path: root/src/data.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/data.c')
-rw-r--r--src/data.c21
1 files changed, 1 insertions, 20 deletions
diff --git a/src/data.c b/src/data.c
index bf863aaed79..0c90944f0ad 100644
--- a/src/data.c
+++ b/src/data.c
@@ -2332,7 +2332,7 @@ arithcompare_driver (ptrdiff_t nargs, Lisp_Object *args,
2332 ptrdiff_t argnum; 2332 ptrdiff_t argnum;
2333 for (argnum = 1; argnum < nargs; ++argnum) 2333 for (argnum = 1; argnum < nargs; ++argnum)
2334 { 2334 {
2335 if (EQ (Qnil, arithcompare (args[argnum-1], args[argnum], comparison))) 2335 if (EQ (Qnil, arithcompare (args[argnum - 1], args[argnum], comparison)))
2336 return Qnil; 2336 return Qnil;
2337 } 2337 }
2338 return Qt; 2338 return Qt;
@@ -2386,24 +2386,6 @@ DEFUN ("/=", Fneq, Sneq, 2, 2, 0,
2386{ 2386{
2387 return arithcompare (num1, num2, ARITH_NOTEQUAL); 2387 return arithcompare (num1, num2, ARITH_NOTEQUAL);
2388} 2388}
2389
2390DEFUN ("zerop", Fzerop, Szerop, 1, 1, 0,
2391 doc: /* Return t if NUMBER is zero. */)
2392 (register Lisp_Object number)
2393{
2394 CHECK_NUMBER_OR_FLOAT (number);
2395
2396 if (FLOATP (number))
2397 {
2398 if (XFLOAT_DATA (number) == 0.0)
2399 return Qt;
2400 return Qnil;
2401 }
2402
2403 if (!XINT (number))
2404 return Qt;
2405 return Qnil;
2406}
2407 2389
2408/* Convert the cons-of-integers, integer, or float value C to an 2390/* Convert the cons-of-integers, integer, or float value C to an
2409 unsigned value with maximum value MAX. Signal an error if C does not 2391 unsigned value with maximum value MAX. Signal an error if C does not
@@ -3650,7 +3632,6 @@ syms_of_data (void)
3650 defsubr (&Sleq); 3632 defsubr (&Sleq);
3651 defsubr (&Sgeq); 3633 defsubr (&Sgeq);
3652 defsubr (&Sneq); 3634 defsubr (&Sneq);
3653 defsubr (&Szerop);
3654 defsubr (&Splus); 3635 defsubr (&Splus);
3655 defsubr (&Sminus); 3636 defsubr (&Sminus);
3656 defsubr (&Stimes); 3637 defsubr (&Stimes);