Commit graph

72 commits

Author SHA1 Message Date
Karl Heuer
46b2ac21f0 (do_symval_forwarding, store_symval_forwarding, find_symbol_value, Fset,
default_value, Fset_default, Fkill_local_variable): Use the new substructure.
(store_symval_forwarding): Change args to buffer_slot_type_mismatch.
1994-10-12 05:15:21 +00:00
Karl Heuer
1bfcade382 (Fboundp, Ffboundp, find_symbol_value, Fset, Fdefault_boundp, Fdefault_value):
Don't check for Lisp_Void; nothing ever creates that type.
1994-10-06 23:07:57 +00:00
Karl Heuer
702672da3c (Flsh, Fadd1, Fsub1, Flognot): Don't use XFASTINT when negative. 1994-10-06 22:39:18 +00:00
Karl Heuer
865c050f41 (Fset, default_value, Fset_default, Fkill_local_variable): Access
buffer_local_flags as Lisp_Object, not int.
1994-10-06 22:32:11 +00:00
Karl Heuer
1b42cf2e61 (Faref, Farray_length): Don't use XFASTINT as an lvalue. 1994-10-04 15:44:37 +00:00
Karl Heuer
f187f1f776 (make_number, Fsymbol_name, do_symval_forwarding, swap_in_symval_forwarding,
find_symbol_value, Fset, arith_driver, Frem, Fmod, Fash, Flsh): Use new
accessor macros instead of calling XSET directly.
1994-10-04 12:01:46 +00:00
Richard M. Stallman
62476adc55 (Fmake_local_variable): Doc fix.
(Flocal_variable_p): New function.
(syms_of_data): defsubr it.
1994-09-30 20:32:45 +00:00
Karl Heuer
e9ebc175bf (wrong_type_argument, Fconsp, Fatom, Flistp, Fnlistp, Fsymbolp, Fvectorp,
Fstringp, Farrayp, Fsequencep, Fbufferp, Fmarkerp, Fsubrp,
Fbyte_code_function_p, Fchar_or_string_p, Fintegerp, Finteger_or_marker_p,
Fnatnump, Fnumber_or_marker_p, Ffloatp, Fcar, Fcar_safe, Fcdr, Fcdr_safe,
Fsetcar, Fsetcdr, Fboundp, Ffboundp, store_symval_forwarding, Fset,
default_value, Fdefault_boundp, Fdefault_value, Fset_default,
Fmake_variable_buffer_local, Fmake_local_variable, Fkill_local_variable,
indirect_function, Faref, Faset, Farray_length, arithcompare, Fzerop,
Fnumber_to_string, arith_driver, float_arith_driver, Fmod, Fadd1, Fsub1): Use
type test macros.
1994-09-27 04:00:45 +00:00
Richard M. Stallman
5c3416a57f (Fset_default, Fset): Delete RTPC_REGISTER_BUG conditionals. 1994-09-24 00:17:57 +00:00
Richard M. Stallman
a0ed95ea0a (sign_extend_lisp_int): Use EMACS_INT. 1994-09-17 00:27:54 +00:00
Karl Heuer
b7abc8faa6 (Fcdr_safe): Delete extraneous blank in docstring. 1994-09-16 22:02:54 +00:00
Richard M. Stallman
ab29781122 (Fdefine_function, Fdefalias): Handle advice as in Ffset.
(Qad_advice_info): Lisp and C names renamed from Qadvice_info.
(Qad_activate): C name renamed from Qactivate_advice.
1994-08-04 22:57:13 +00:00
Roland McGrath
5e84269afe (Ffset): Don't call Fget unless SYM's plist is consp. 1994-08-01 22:28:26 +00:00
Richard M. Stallman
f845f2c9a5 (syms_of_data): Set up Qadvice_info, Qactivate_advice.
(Ffset): Activate advice if symbol has advice-info property.
1994-07-31 20:57:45 +00:00
Karl Heuer
3a22ee3595 Update copyright. 1994-05-04 02:41:09 +00:00
Karl Heuer
c15c5d408d (Ffset, Ffmakunbound): Signal an error if SYM is nil or t. 1994-04-29 23:21:37 +00:00
Karl Heuer
6ba93f9d7b [MSDOS]: Re-enable some #undef's. 1994-04-29 23:16:43 +00:00
Richard M. Stallman
0412bf67d1 (Fsetq_default): Doc fix. 1994-04-16 05:15:17 +00:00
Richard M. Stallman
a782f0d57f (Fsetq_default, Fmake_local_variable): Doc syntax fix. 1994-04-12 06:06:21 +00:00
Karl Heuer
0671d7c002 (store_symval_forwarding, Fsymbol_value): Use assignment, not initialization. 1994-03-23 22:27:40 +00:00
Richard M. Stallman
8e86942bee (Qwholenump): New variable.
(syms_of_data): Set and gcpro Qwholenump.
1994-03-22 00:14:47 +00:00
Richard M. Stallman
1c1c17ebad (Fstring_to_number): Doc fix. 1994-03-21 06:56:46 +00:00
Karl Heuer
9aab521af6 (Fmake_local_variable): Void variables stay void. 1994-03-21 01:39:07 +00:00
Karl Heuer
0321d75c24 (Fchar_or_string_p, Fintegerp, Fnatnump): Doc fix. 1994-03-16 23:21:02 +00:00
Karl Heuer
1a2f2d332e (isnan): New macro.
(float_arith_driver): min and max yield NaN if any argument is a NaN.
1994-03-04 21:21:08 +00:00
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