1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-08 10:50:21 +02:00
Commit graph

3592 commits

Author SHA1 Message Date
Marius Vollmer
ba4271760f (scm_simple_format): Print missing part of format before ~% control.
Thanks to Daniel Skarda!
2002-06-17 23:30:20 +00:00
Marius Vollmer
4c1ffcdda1 *** empty log message *** 2002-06-01 16:06:50 +00:00
Marius Vollmer
57e2f421dd Added exception notice to license statement. 2002-06-01 16:06:27 +00:00
Marius Vollmer
8dc434c78d *** empty log message *** 2002-05-22 19:55:56 +00:00
Marius Vollmer
164d248174 * numbers.c (mem2ureal): When returning an inexact zero, make sure it
is represented as a floating point value so that we can change its
sign.
2002-05-22 19:55:40 +00:00
Marius Vollmer
ba1b077b86 *** empty log message *** 2002-05-22 13:50:43 +00:00
Marius Vollmer
abb7e44d16 (idbl2str): Don't omit sign when printing negative zero. 2002-05-22 13:50:20 +00:00
Thien-Thi Nguyen
0926d46e06 *** empty log message *** 2002-05-14 09:26:49 +00:00
Thien-Thi Nguyen
74c581316a *** empty log message *** 2002-05-14 09:25:26 +00:00
Thien-Thi Nguyen
37354cb7b9 For I386/OPENBSD, allow for __i386__' in addition to i386'. 2002-05-14 09:24:18 +00:00
Marius Vollmer
8766d4b5f9 *** empty log message *** 2002-05-08 20:11:37 +00:00
Marius Vollmer
96d00047de (real_eqv): New.
(scm_eqv_p): Use it when comparing reals and complexes.
2002-05-08 20:11:27 +00:00
Marius Vollmer
fc19457701 Include <string.h>, for strncmp.
(mem2complex): Do not create negative NaNs.
(scm_leq_p, scm_geq_p): Explicitely return #f when comparing a
NaN.
(scm_inexact_to_exact): Signal error when converting a NaN.
2002-05-08 20:08:16 +00:00
Marius Vollmer
002409fe6f (scm_putenv): Handle removing variables explicitely by calling
unsetenv.
2002-05-06 22:33:52 +00:00
Marius Vollmer
1d8c3cad87 *** empty log message *** 2002-05-06 22:33:35 +00:00
Marius Vollmer
7351e20717 From John W. Eaton.
* numbers.h: Conditionally include floatingpoint.h, ieeefp.h, and
nan.h.	Provide declarations for scm_inf_p, scm_nan_p, scn_inf,
and scm_nan.
* numbers.c: [SCO && ! HAVE_ISNAN] (isnan): New function.
[SCO && ! HAVE_ISINF] (isinf): New function.
(xisinf, xisnan): New functions.
(IS_INF): Delete.
(isfinite): Define in terms of xisinf.
(scm_inf_p, scm_nan_p): New functions.
(guile_Inf, guile_NaN): New file-scope vars.
(guile_ieee_init): New function.
(scm_inf, scm_nan): New functions.
(idbl2str): Handle Inf and NaN.	Remove funny label and
corresponding gotos.
(ALLOW_DIVIDE_BY_ZERO): New macro.
(scm_divide): Allow division by zero to occur if
ALLOW_DIVIDE_BY_ZERO is defined.
Handle bignums and ints as special cases.

Additional stuff by me:

numbers.c (mem2ureal): Recognize "inf.0" and "nan.xxx".
(scm_even_p, scm_odd_p): Treat infinity as even and odd.
(iflo2str): Don't output a '+' for negative numbers or for Inf and
NaN.  They will provide their own sign.
(scm_divide): Only allow divides by inexact zeros.  Dividing by
exact zeros still signals an errors.
2002-05-06 22:33:10 +00:00
Marius Vollmer
232898d93d Conditionally include floatingpoint.h, ieeefp.h, and nan.h. Provide
declarations for scm_inf_p, scm_nan_p, scn_inf, and scm_nan.
2002-05-06 22:27:42 +00:00
Thien-Thi Nguyen
87b7206327 *** empty log message *** 2002-04-22 18:01:17 +00:00
Thien-Thi Nguyen
0b607675c2 (scm_slot_exists_p): Rename from scm_slots_exists_p. 2002-04-22 18:00:24 +00:00
Thien-Thi Nguyen
7a0c65ebca *** empty log message *** 2002-04-22 17:47:38 +00:00
Thien-Thi Nguyen
6d77c894fe (scm_slot_exists_p): Rename from scm_slots_exists_p.
(s_scm_slot_exists_p): Rename from s_scm_slots_exists_p.
2002-04-22 17:46:06 +00:00
Gary Houston
1841c44acc *** empty log message *** 2002-04-20 21:26:05 +00:00
Gary Houston
b6287a25bd *** empty log message *** 2002-04-20 21:23:48 +00:00
Gary Houston
5e423a39ab * removal of unused fields in root state (thanks to Christopher
Cramer for pointing out the disuse.)
	* root.h (scm_root_state): removed def_inp, def_outp, def_errp.
	* root.c (root_mark): don't mark them.
	(scm_make_root): don't set them to #f.
	* init.c (scm_init_standard_ports): don't initialise with the
	default ports.
2002-04-20 20:57:09 +00:00
Marius Vollmer
9d2cce766d Do not clean input file. This would write to the $(srcdir) during a
VPATH build, which is not allowed.  It also isn't needed since it only
works when an output filename has been specified and in that case we
don't need to clean the input file because the output file will
already exist.
2002-04-17 17:44:28 +00:00
Marius Vollmer
a3451a590e (EXTRA_DIST): Added cpp_err_symbols.c and cpp_sig_symbols.c. 2002-04-17 17:42:50 +00:00
Marius Vollmer
6f79b6cceb *** empty log message *** 2002-04-16 20:12:21 +00:00
Marius Vollmer
3be0d96d0f Install the trap for removing $cleanfile only when the value of
$cleanfile is actually known.
2002-04-16 20:12:10 +00:00
Rob Browning
21550b108e *** empty log message *** 2002-04-11 04:41:40 +00:00
Rob Browning
f3dc9ef288 * .cvsignore: add versiondat.h and *.c.clean.c. 2002-04-11 04:30:47 +00:00
Dirk Herrmann
bc76d62865 * srcprop.[ch] (scm_c_source_property_breakpoint_p): New
function, replaces macro SRCBRKP.

(SRCBRKP):  Deprecated.

* eval.c (SCM_CEVAL): Replaced use of SRCBRKP by call to
scm_c_source_property_breakpoint_p.  Removed some use of arg1 as
temporary variable.
2002-03-26 00:19:04 +00:00
Dirk Herrmann
5132eef0cf * debug.h, eval.c: Deprecated CHECK_ENTRY, CHECK_APPLY and
CHECK_EXIT and removed all references to them.
2002-03-25 23:45:02 +00:00
Dirk Herrmann
680516ba5f * debug.h (scm_ready_p, debug_print): Removed declarations.
* eval.c (EVALCELLCAR): Removed.

(SCM_CEVAL): Eliminated label loopnoap.  Removed side-effecting
operation from condition.
2002-03-24 22:19:46 +00:00
Marius Vollmer
e2bd68e02c *** empty log message *** 2002-03-24 13:49:14 +00:00
Marius Vollmer
2c7a286a97 (.c.x): Pass "-o $@" to guile-snarf. 2002-03-24 13:48:34 +00:00
Marius Vollmer
66c4b10985 When the output filename is "-", write to stdout. When no "-o" option
is given, use "-" as the output filename (i.e., stdout).  Only 'clean'
the inputfile or remove the output file on error when the output file
name is not "-".  Define the preprocessor macro SCM_MAGIC_SNARFER
while snarfing.
2002-03-24 13:47:06 +00:00
Dirk Herrmann
ab1f10940c * eval.c (SCM_CEVAL, SCM_APPLY): Eliminated labels wrongnumargs
and the corresponding goto statements.  Removed redundant code.
2002-03-23 00:39:25 +00:00
Dirk Herrmann
42030fb275 * eval.c (SCM_CEVAL): Minimized scope of variable arg2.
Eliminated redundant SCM_IMP check.  Exlined call to EVALCAR.
Re-enabled handing of rpsubrs and asubrs.
2002-03-21 00:36:03 +00:00
Dirk Herrmann
e050d4f824 * eval.c (SIDEVAL): Removed.
(SCM_CEVAL): Minimized scope of variable orig_sym.  Eliminated
goto-labels cdrxnoap, cdrxbegin and nontoplevel_cdrxnoap.  Changed
argument checking order for set! to locals, variables and symbols.
Improvements to control structure.  Removed some uses of arg1 and
arg2 as temporary variables.
2002-03-20 23:53:13 +00:00
Neil Jerram
387d418c55 * Manual updates on hooks and features.
* Fix scm_t_c_hookype_t corruption.
2002-03-16 00:27:25 +00:00
Thien-Thi Nguyen
b193d130d8 Typofix. 2002-03-15 14:25:54 +00:00
Thien-Thi Nguyen
a6d344d347 *** empty log message *** 2002-03-15 14:02:18 +00:00
Thien-Thi Nguyen
77b26c9397 Remove "--compat=1.4" support.
Add "-d" and "-D" support.

(deprecated_list): New var.
(compat_mode_clean_xxx): Delete.
(grep_deprecated): New func.
("main"): If "-d" or "-D", call `grep_deprecated'.
2002-03-15 14:00:02 +00:00
Neil Jerram
bb2c02f237 Small docstring fixes. 2002-03-15 10:37:40 +00:00
Neil Jerram
3939e9df35 Change 3 instances of @var to @code in docstrings. 2002-03-15 09:40:57 +00:00
Marius Vollmer
500b0d5b72 *** empty log message *** 2002-03-14 22:25:57 +00:00
Marius Vollmer
a08b0d0058 (singp): Use SCM_REALP instead of SCM_SLOPPY_REALP. 2002-03-14 22:25:31 +00:00
Marius Vollmer
3b3cc78115 *** empty log message *** 2002-03-14 22:23:56 +00:00
Marius Vollmer
09e804ff6f (SCM_SNARF_INIT): Add "^:^" after code so that guile-snarf can remove
trailing non-init code.
2002-03-14 22:23:43 +00:00
Marius Vollmer
d3bd0027d4 (modern_snarf): Remove everything following and including "^:^" from
the output.
2002-03-14 22:21:53 +00:00