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

3628 commits

Author SHA1 Message Date
Han-Wen Nienhuys
0f8ae50a81 (scm_input_error): new function: give meaningful error
messages, and throw read-error
2002-08-05 23:11:59 +00:00
Han-Wen Nienhuys
ba1b222692 * tests/reader.test: change misc-error in read-error.
* read.c (scm_input_error): new function: give meaningful error
messages, and throw read-error

* gc-malloc.c (scm_calloc): add scm_calloc.

* scheme-memory.texi (Memory Blocks): add scm_calloc, scm_gc_calloc.
correct typos.
2002-08-05 23:04:44 +00:00
Han-Wen Nienhuys
33138b0567 remove GC bits documentation from the tags table. 2002-08-05 17:46:34 +00:00
Han-Wen Nienhuys
39e8f371e2 (INPUT_ERROR): Prepare for file:line:column error
messages for errors in scm_lreadr() and friends.
2002-08-04 23:33:28 +00:00
Han-Wen Nienhuys
5f16b8973e init port entry 2002-08-04 16:10:19 +00:00
Han-Wen Nienhuys
402788a938 port GC fix 2002-08-04 15:25:07 +00:00
Han-Wen Nienhuys
c2cbcc5768 gc statistic tweaks 2002-08-04 14:09:14 +00:00
Han-Wen Nienhuys
c7743d027a more code 2002-08-04 00:18:33 +00:00
Han-Wen Nienhuys
c8a1bdc460 new gc 2002-08-04 00:17:18 +00:00
Marius Vollmer
aea06b34a5 *** empty log message *** 2002-07-25 12:12:33 +00:00
Marius Vollmer
dfd71abaf0 (rstate_free): Return zero. 2002-07-25 12:12:21 +00:00
Dirk Herrmann
35060ae90e * environments.c (remove_key_from_alist): Removed.
(obarray_remove):  Simplified.
2002-07-24 16:34:43 +00:00
Stefan Jahn
6a53544072 2002-07-24 Stefan Jahn <stefan@lkcc.org>
* continuations.h: ia64: Include <signal.h> before
        <sys/ucontext.h>.
2002-07-24 09:25:24 +00:00
Han-Wen Nienhuys
afc8e572ba (mscripts): find and check version number of
automake. Complain if 1.6 is not found.
2002-07-22 00:17:26 +00:00
Dirk Herrmann
bcbd25b74f * modules.c (scm_sym2var): Don't compare SCM values with ==. 2002-07-21 21:18:27 +00:00
Han-Wen Nienhuys
1d1559ce6d * macros.c: include deprecation.h
* vectors.c (s_scm_vector_move_right_x): remove side effect in
macro arg.
(s_scm_vector_move_left_x): idem.

* net_db.c, posix.c, socket.c: variable naming: change ans to
result.

* sort.c (scm_merge_vector_x): accept vector as argument
iso. SCM*. This is needed for full GC correctness.

* gc.h: undo previous undocumented changes related to #ifdef
GENGC.
2002-07-21 17:46:23 +00:00
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