1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-03 13:20:26 +02:00
Commit graph

3612 commits

Author SHA1 Message Date
Han-Wen Nienhuys
34d19ef643 2002-07-20 Han-Wen <hanwen@cs.uu.nl>
* *.c: add space after commas everywhere.

* *.c: use SCM_VECTOR_SET everywhere, where a vector is written.
Document cases where SCM_WRITABLE_VELTS() is used.

* vectors.h (SCM_VELTS): prepare for write barrier, and let
SCM_VELTS() return a const pointer
(SCM_VECTOR_SET): add macro.

* autogen.sh (mscripts): find and check version number of
autoconf. Complain if 2.53 is not found.
2002-07-20 14:08:34 +00:00
Dirk Herrmann
3063e30a6d * eval.c (SCM_CEVAL), macros.c (macro_print, scm_makmacro,
scm_sym_macro, scm_macro_type), macros.h (scm_makmacro):
Deprecated the special kind of built-in dynamic syntax transformer
that was inaccurately named "macro".  Note:  The built-in syntax
transformers that are named "mmacro" or "memoizing-macro" still
exist, and it is these which come much closer to what one would
call a macro.
2002-07-15 20:39:53 +00:00
Neil Jerram
4c5f8e8fe0 Fix for 1001-local-eval-error-backtrace-segfaults. 2002-07-14 15:43:24 +00:00
Gary Houston
4f6f9ae3d3 * dynl.c: Don't define stub procedures if DYNAMIC_LINKING is not
defined.  They don't do anything useful, especially since the
	only case where DYNAMIC_LINKING is undefined seems to be
	when --with-modules=no is given to configure, which is basically
	requesting that the "dynamic linking module" be omitted.

	* Makefile.am (libguile_la_SOURCES): move dynl.c from
	libguile_la_SOURCES to EXTRA_libguile_la_SOURCES.

	* extensions.c (load_extension): check DYNAMIC_LINKING for
	scm_dynamic_call.
	* init.c (scm_init_guile_1): check DYNAMIC_LINKING for
	scm_init_dynamic_linking.

	* configure.in: check dynamic linking before modules.  Add dynl.c
	if dynamic linking is available, i.e., unless --with-modules=no
	was given to configure.
2002-07-12 17:46:15 +00:00
Marius Vollmer
c21935e6cd *** empty log message *** 2002-07-11 23:20:45 +00:00
Gary Houston
9540b68f94 * eq.c: include <string.h> 2002-07-10 22:25:55 +00:00
Gary Houston
ee95d597c7 * dynl.c: docstring editing. 2002-07-10 22:20:16 +00:00
Marius Vollmer
f87c105ae3 No need to check for Cygwin when including <winsock2.h>, this is
already check for by configure.  Thus, revert change from 2002-07-07.
2002-07-10 19:40:43 +00:00
Gary Houston
46732b5441 * dynl.c (scm_dynamic_call): docstring editing. 2002-07-09 22:40:03 +00:00
Rob Browning
c09d12e0fd *** empty log message *** 2002-07-09 04:42:49 +00:00
Rob Browning
9c52b21814 * gc_os_dep.c: HURD fixes. 2002-07-08 23:41:00 +00:00
Marius Vollmer
3f6571eb94 *** empty log message *** 2002-07-07 20:06:31 +00:00
Marius Vollmer
7c9e56d664 Do not include <winsock2.h> on Cygwin even when we have it. 2002-07-07 19:58:15 +00:00
Marius Vollmer
b32fca0fbc Override default rule for c-tokenize.$(OBJECT);
this should be compiled for BUILD host.
Override default rule for
guile_filter_doc_snarfage$(EEXECT); this should run on BUILD host.
Add missing $(EXEEXT) to guile_filter_doc_snarfage invocation.
(snarf2checkedtexi): Use GUILE_FOR_BUILD instead of preinstguile.
2002-07-07 19:50:49 +00:00
Dirk Herrmann
bd987b8eda * __scm.h (SCM_CAUTIOUS), eval.c (scm_eval_args, deval_args,
SCM_CEVAL):  Removed compile time option SCM_CAUTIOUS to clean up
the code.  Full number of arguments checking of closures is
mandatory now.  However, the option to disable the checking has
most probably not been used anyway.
2002-06-30 22:40:01 +00:00
Dirk Herrmann
8505e285ec * backtrace.c (SCM_ASSERT), debug.c (scm_debug_options), eval.c
(scm_lookupcar, scm_lookupcar1, scm_badargsp, SCM_CEVAL,
SCM_APPLY, scm_map, scm_for_each), feature.c (scm_init_feature),
gsubr.c (scm_gsubr_apply), numbers.c (scm_logand, scm_logior,
scm_logxor, scm_i_dbl2big), srcprop.c (scm_source_properties,
scm_set_source_properties_x, scm_source_property):  Removed
compile time option SCM_RECKLESS to clean up the code.  Full
number of arguments checking of closures is mandatory now.
However, the option to disable the checking has most probably not
been used anyway.

* srcprop.c (scm_source_properties, scm_set_source_properties_x,
scm_source_property): Use !SCM_CONSP instead of SCM_NCONSP.
2002-06-30 22:03:43 +00:00
Gary Houston
732b932732 * dynl.c: Removed all SCM_DEFER_INTS/SCM_ALLOW_INTS, which won't
do anything useful.  Added a comment about need for a mutex if
	pre-emptive threading is supported.
2002-06-30 20:34:38 +00:00
Gary Houston
2ee08a2833 * posix.c (scm_convert_exec_args), dynl.c
(scm_make_argv_from_stringlist): static procs: 1) renamed both to
	allocate_string_pointers.  2) simplified: don't reallocate the
	strings, just make an array of pointers 3) avoid memory leaks on
	error 4) let the procedure report errors in its own name.
	Consequences: 1) the procedures now assume that SCM strings are
	nul-terminated, which should always be the case.  2) Since strings
	are not reallocated, it's now possible for strings passed to
	dynamic-args-call to be mutated.
2002-06-30 19:27:18 +00:00
Dirk Herrmann
c136c9205e * __scm.h, eval.c, eval.h: Removed compile time option
MEMOIZE_LOCALS to clean up the code.  Now, caching of local
variable positions during memoization is mandatory.  However, the
option to disable the caching has most probably not been used
anyway.
2002-06-28 22:40:08 +00:00
Marius Vollmer
e540802f9c *** empty log message *** 2002-06-17 23:30:36 +00:00
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