Karl Heuer
1d66a5fabb
(fmod): Implement it on systems where it's missing, using drem if available.
1994-02-04 20:18:59 +00:00
Karl Heuer
d9f082ecca
(Fmod): Use HAVE_FMOD.
1994-02-01 23:21:22 +00:00
Richard M. Stallman
73d4035593
(Faset): Doc fix.
1994-01-22 16:13:30 +00:00
Richard M. Stallman
aaf45c7bbd
(Frem) [MSDOS]: use fmod', not drem'. Put in config.h?
1994-01-08 09:23:12 +00:00
Richard M. Stallman
defa77b5a6
[hpux 7] (_MAXLDBL, _NMAXLDBL): New macro definitions.
1993-10-20 02:47:12 +00:00
Brian Fox
024ec58f11
Add declaration for atof if not predefined.
1993-09-22 18:32:09 +00:00
Roland McGrath
18160b98ce
Include <config.h> instead of "config.h".
1993-09-10 06:15:46 +00:00
Paul Eggert
44fa9da5d7
(Fmod): New function; result is always same sign as divisor.
1993-08-10 04:14:17 +00:00
Richard M. Stallman
aa29f9b923
(Frem): Don't accept floats, just ints and markers.
1993-08-04 04:17:08 +00:00
Roland McGrath
638b77e614
(syms_of_data): Staticpro Qmark_inactive.
1993-07-08 21:27:33 +00:00
Roland McGrath
3b8819d645
Define Qmark_inactive.
...
(syms_of_data): Initialize it.
1993-07-08 21:26:57 +00:00
Richard M. Stallman
878a80cc1c
(cons_to_long): Declare top, bot as Lisp_Object.
1993-06-12 07:20:30 +00:00
Jim Blandy
eb8c3be94e
Apply typo patches from Paul Eggert.
1993-06-09 11:59:12 +00:00
Richard M. Stallman
1b1dfe395d
(Ffset): Delete special check for t and nil.
1993-06-06 22:50:55 +00:00
Richard M. Stallman
f526b95587
(Frem): Fix result sign properly.
1993-06-01 03:37:28 +00:00
Richard M. Stallman
87fbf902fd
(float_arith_driver): Detect division by zero in advance.
...
(arith_driver, Frem): Likewise.
1993-05-31 03:39:07 +00:00
Jim Blandy
c6c5df7f76
Updated copyright years.
1993-05-22 21:34:42 +00:00
Jim Blandy
93b9120871
* lread.c, data.c: If STDC_HEADERS is #defined, include <stdlib.h>
...
to get the extern declarations for atof. That's where it is in
POSIX.
1993-05-14 14:42:01 +00:00
Jim Blandy
e3fa7dfc18
* data.c (Ffset): Refuse to set the function value of t or nil.
1993-05-04 02:26:53 +00:00
Richard M. Stallman
d9bcdb34a0
(Fdefine_function): New function (same code as Fdefalias).
1993-04-29 13:12:37 +00:00
Eric S. Raymond
80df38a283
(Fdefine_function): Changed name back to Fdefalias, so we get things
...
in a known-good state.
1993-04-23 03:40:03 +00:00
Richard M. Stallman
fc08c36736
(Fdefine_function): New function.
1993-04-17 01:29:48 +00:00
Jim Blandy
51cf3e317c
long_to_cons and cons_to_long are generally useful things; they're
...
needed whether or not X is defined.
* xselect.c (long_to_cons, cons_to_long): Moved from here...
* data.c (long_to_cons, cons_to_long): ... to here.
* lisp.h (long_to_cons, cons_to_long): Add extern declaration.
1993-04-10 08:05:07 +00:00
Jim Blandy
f298026408
Rename int-to-string to number-to-string, since it can handle
...
floating-point as well as integer arguments. subr.el defines the
former as an alias for the latter.
* data.c (Fnumber_to_string): Renamed from Fint_to_string.
(wrong_type_argument): Adjust caller.
(syms_of_data): Adjust defsubr.
* fns.c (concat): Adjust caller.
* lisp.h (Fnumber_to_string): Adjust extern declaration.
* mocklisp.c (Finsert_string): Adjust caller.
* process.c (status_message): Adjust caller.
1993-03-30 21:21:49 +00:00
Richard M. Stallman
6315e7617b
(syms_of_data) [LISP_FLOAT_TYPE]: Define new error conditions:
...
Qarith_error, Qrange_error, Qdomain_error,
Qsingularity_error, Qoverflow_error, Qunderflow_error.
1993-03-10 05:14:04 +00:00
Jim Blandy
0a3e4d653c
* data.c (Fstring_to_number): Declare p to be an unsigned char, to
...
match the data field of strings.
* data.c (Fstring_to_number): Just skip tabs and spaces; don't use
the <ctype.h> macros. The <ctype.h> stuff apparently varies from
locale to locale more than we'd like. Don't include <ctype.h>.
1993-03-02 08:11:01 +00:00
Jim Blandy
25e40a4bb9
* data.c (Fstring_to_number): Skip initial spaces, to make Emacs
...
lisp parse consistently on different operating systems.
#include <ctype.h> to help with this.
* data.c (Fstring_to_int): Rename this to Fstring_to_number, since
it parses floats as well as integers. Fix docstring.
(syms_of_data): Fix defsubr.
(wrong_type_argument): Change use.
(Fint_to_string): Doc fix.
* lisp.h (Fstring_to_int): Change extern declaration.
* data.c (wrong_type_argument): Pass the correct number of
arguments to Fstring_to_int.
* data.c (arithcompare): Add a default case which aborts, just to
make me happy.
1993-02-22 14:27:14 +00:00
Jim Blandy
dbc4e1c129
JimB's changes since January 18th
1993-01-26 01:58:16 +00:00
Jim Blandy
a293299024
src/ * data.c (indirect_function): Delete unused argument ERROR.
1992-12-06 22:13:53 +00:00
Jim Blandy
b06faa915c
* data.c (Fset): See if current_alist_element points to itself
...
using EQ, not ==.
(float_arith_driver): Declare this extern above arith_driver.
1992-10-31 05:17:14 +00:00
Joseph Arceneaux
07bd847225
Qbuffer_or_string_p added.
1992-10-01 01:58:57 +00:00
Jim Blandy
a5ca2b7540
* data.c (Fmake_local_variable): If SYM forwards to a C variable,
...
swap in the value for the current buffer immediately.
1992-09-30 11:35:45 +00:00
Jim Blandy
533984a8ec
* data.c (swap_in_symval_forwarding): Formatting tweaked.
1992-09-29 15:06:46 +00:00
Jim Blandy
a080486e57
* data.c (Frem): Use the `fmod' function under SunOS, Ultrix, and
...
HP/UX, not just under USG systems.
1992-09-29 04:54:28 +00:00
Jim Blandy
bc540f9f00
* data.c [USG] (Frem): Call fmod, rather than drem. Rah.
...
* data.c (store_symval_forwarding): When storing through a
Lisp_Buffer_Objfwd, check if the slot requires a particular type,
and report an error if the types clash.
1992-08-19 06:19:22 +00:00
Jim Blandy
d8cafeb502
entered into RCS
1992-06-30 13:55:35 +00:00
Richard M. Stallman
464f88989f
*** empty log message ***
1992-06-07 02:36:01 +00:00
Jim Blandy
ffd56f97cf
*** empty log message ***
1992-05-18 08:14:41 +00:00
Jim Blandy
e065a56e2d
*** empty log message ***
1992-05-10 18:15:10 +00:00
Jim Blandy
32676c085c
*** empty log message ***
1992-05-01 06:20:46 +00:00
Jim Blandy
f58b36863a
*** empty log message ***
1992-03-20 17:00:55 +00:00
Jim Blandy
a44804c254
*** empty log message ***
1992-02-19 15:03:50 +00:00
Jim Blandy
14e76af946
*** empty log message ***
1992-01-28 01:53:11 +00:00
Jim Blandy
a33ef3ab6d
*** empty log message ***
1992-01-14 07:14:12 +00:00
Jim Blandy
fb8e984708
*** empty log message ***
1991-07-24 00:06:21 +00:00
Jim Blandy
29eab336da
*** empty log message ***
1991-07-18 11:05:46 +00:00
Jim Blandy
7921925c23
Initial revision
1991-06-26 15:44:32 +00:00