Mercurial > emacs
comparison src/data.c @ 40116:528dd5f565ba
(Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior, Flogxor):
Add usage: string to doc string.
| author | Miles Bader <miles@gnu.org> |
|---|---|
| date | Sun, 21 Oct 2001 10:00:33 +0000 |
| parents | 579177964efa |
| children | e528f2adeed4 |
comparison
equal
deleted
inserted
replaced
| 40115:78a7615cd863 | 40116:528dd5f565ba |
|---|---|
| 2529 return make_float (accum); | 2529 return make_float (accum); |
| 2530 } | 2530 } |
| 2531 | 2531 |
| 2532 | 2532 |
| 2533 DEFUN ("+", Fplus, Splus, 0, MANY, 0, | 2533 DEFUN ("+", Fplus, Splus, 0, MANY, 0, |
| 2534 "Return sum of any number of arguments, which are numbers or markers.") | 2534 "Return sum of any number of arguments, which are numbers or markers. |
| 2535 usage: (+ &rest NUMBERS-OR-MARKERS)") | |
| 2535 (nargs, args) | 2536 (nargs, args) |
| 2536 int nargs; | 2537 int nargs; |
| 2537 Lisp_Object *args; | 2538 Lisp_Object *args; |
| 2538 { | 2539 { |
| 2539 return arith_driver (Aadd, nargs, args); | 2540 return arith_driver (Aadd, nargs, args); |
| 2540 } | 2541 } |
| 2541 | 2542 |
| 2542 DEFUN ("-", Fminus, Sminus, 0, MANY, 0, | 2543 DEFUN ("-", Fminus, Sminus, 0, MANY, 0, |
| 2543 "Negate number or subtract numbers or markers.\n\ | 2544 "Negate number or subtract numbers or markers.\n\ |
| 2544 With one arg, negates it. With more than one arg,\n\ | 2545 With one arg, negates it. With more than one arg,\n\ |
| 2545 subtracts all but the first from the first.") | 2546 subtracts all but the first from the first. |
| 2547 usage: (- &optional NUMBER-OR-MARKER &rest MORE-NUMBERS-OR-MARKERS)") | |
| 2546 (nargs, args) | 2548 (nargs, args) |
| 2547 int nargs; | 2549 int nargs; |
| 2548 Lisp_Object *args; | 2550 Lisp_Object *args; |
| 2549 { | 2551 { |
| 2550 return arith_driver (Asub, nargs, args); | 2552 return arith_driver (Asub, nargs, args); |
| 2551 } | 2553 } |
| 2552 | 2554 |
| 2553 DEFUN ("*", Ftimes, Stimes, 0, MANY, 0, | 2555 DEFUN ("*", Ftimes, Stimes, 0, MANY, 0, |
| 2554 "Returns product of any number of arguments, which are numbers or markers.") | 2556 "Returns product of any number of arguments, which are numbers or markers. |
| 2557 usage: (* &rest NUMBERS-OR-MARKERS)") | |
| 2555 (nargs, args) | 2558 (nargs, args) |
| 2556 int nargs; | 2559 int nargs; |
| 2557 Lisp_Object *args; | 2560 Lisp_Object *args; |
| 2558 { | 2561 { |
| 2559 return arith_driver (Amult, nargs, args); | 2562 return arith_driver (Amult, nargs, args); |
| 2560 } | 2563 } |
| 2561 | 2564 |
| 2562 DEFUN ("/", Fquo, Squo, 2, MANY, 0, | 2565 DEFUN ("/", Fquo, Squo, 2, MANY, 0, |
| 2563 "Returns first argument divided by all the remaining arguments.\n\ | 2566 "Returns first argument divided by all the remaining arguments.\n\ |
| 2564 The arguments must be numbers or markers.") | 2567 The arguments must be numbers or markers. |
| 2568 usage: (/ DIVIDEND DIVISOR &rest DIVISORS)") | |
| 2565 (nargs, args) | 2569 (nargs, args) |
| 2566 int nargs; | 2570 int nargs; |
| 2567 Lisp_Object *args; | 2571 Lisp_Object *args; |
| 2568 { | 2572 { |
| 2569 return arith_driver (Adiv, nargs, args); | 2573 return arith_driver (Adiv, nargs, args); |
| 2642 return val; | 2646 return val; |
| 2643 } | 2647 } |
| 2644 | 2648 |
| 2645 DEFUN ("max", Fmax, Smax, 1, MANY, 0, | 2649 DEFUN ("max", Fmax, Smax, 1, MANY, 0, |
| 2646 "Return largest of all the arguments (which must be numbers or markers).\n\ | 2650 "Return largest of all the arguments (which must be numbers or markers).\n\ |
| 2647 The value is always a number; markers are converted to numbers.") | 2651 The value is always a number; markers are converted to numbers. |
| 2652 usage: (max NUMBER-OR-MARKER &rest NUMBERS-OR-MARKERS)") | |
| 2648 (nargs, args) | 2653 (nargs, args) |
| 2649 int nargs; | 2654 int nargs; |
| 2650 Lisp_Object *args; | 2655 Lisp_Object *args; |
| 2651 { | 2656 { |
| 2652 return arith_driver (Amax, nargs, args); | 2657 return arith_driver (Amax, nargs, args); |
| 2653 } | 2658 } |
| 2654 | 2659 |
| 2655 DEFUN ("min", Fmin, Smin, 1, MANY, 0, | 2660 DEFUN ("min", Fmin, Smin, 1, MANY, 0, |
| 2656 "Return smallest of all the arguments (which must be numbers or markers).\n\ | 2661 "Return smallest of all the arguments (which must be numbers or markers).\n\ |
| 2657 The value is always a number; markers are converted to numbers.") | 2662 The value is always a number; markers are converted to numbers. |
| 2663 usage: (min NUMBER-OR-MARKER &rest NUMBERS-OR-MARKERS)") | |
| 2658 (nargs, args) | 2664 (nargs, args) |
| 2659 int nargs; | 2665 int nargs; |
| 2660 Lisp_Object *args; | 2666 Lisp_Object *args; |
| 2661 { | 2667 { |
| 2662 return arith_driver (Amin, nargs, args); | 2668 return arith_driver (Amin, nargs, args); |
| 2663 } | 2669 } |
| 2664 | 2670 |
| 2665 DEFUN ("logand", Flogand, Slogand, 0, MANY, 0, | 2671 DEFUN ("logand", Flogand, Slogand, 0, MANY, 0, |
| 2666 "Return bitwise-and of all the arguments.\n\ | 2672 "Return bitwise-and of all the arguments.\n\ |
| 2667 Arguments may be integers, or markers converted to integers.") | 2673 Arguments may be integers, or markers converted to integers. |
| 2674 usage: (logand &rest INTS-OR-MARKERS)") | |
| 2668 (nargs, args) | 2675 (nargs, args) |
| 2669 int nargs; | 2676 int nargs; |
| 2670 Lisp_Object *args; | 2677 Lisp_Object *args; |
| 2671 { | 2678 { |
| 2672 return arith_driver (Alogand, nargs, args); | 2679 return arith_driver (Alogand, nargs, args); |
| 2673 } | 2680 } |
| 2674 | 2681 |
| 2675 DEFUN ("logior", Flogior, Slogior, 0, MANY, 0, | 2682 DEFUN ("logior", Flogior, Slogior, 0, MANY, 0, |
| 2676 "Return bitwise-or of all the arguments.\n\ | 2683 "Return bitwise-or of all the arguments.\n\ |
| 2677 Arguments may be integers, or markers converted to integers.") | 2684 Arguments may be integers, or markers converted to integers. |
| 2685 usage: (logior &rest INTS-OR-MARKERS)") | |
| 2678 (nargs, args) | 2686 (nargs, args) |
| 2679 int nargs; | 2687 int nargs; |
| 2680 Lisp_Object *args; | 2688 Lisp_Object *args; |
| 2681 { | 2689 { |
| 2682 return arith_driver (Alogior, nargs, args); | 2690 return arith_driver (Alogior, nargs, args); |
| 2683 } | 2691 } |
| 2684 | 2692 |
| 2685 DEFUN ("logxor", Flogxor, Slogxor, 0, MANY, 0, | 2693 DEFUN ("logxor", Flogxor, Slogxor, 0, MANY, 0, |
| 2686 "Return bitwise-exclusive-or of all the arguments.\n\ | 2694 "Return bitwise-exclusive-or of all the arguments.\n\ |
| 2687 Arguments may be integers, or markers converted to integers.") | 2695 Arguments may be integers, or markers converted to integers. |
| 2696 usage: (logxor &rest INTS-OR-MARKERS)") | |
| 2688 (nargs, args) | 2697 (nargs, args) |
| 2689 int nargs; | 2698 int nargs; |
| 2690 Lisp_Object *args; | 2699 Lisp_Object *args; |
| 2691 { | 2700 { |
| 2692 return arith_driver (Alogxor, nargs, args); | 2701 return arith_driver (Alogxor, nargs, args); |
