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

3751 commits

Author SHA1 Message Date
Gary Houston
4a151b3da9 * ports.c (scm_drain_input): extended the docstring. thanks to
Alex Schroeder and Thien-Thi Nguyen.
2001-09-25 22:46:13 +00:00
Mikael Djurfeldt
581ded70a3 * validate.h (SCM_NUM2FLOAT, SCM_NUM2DOUBLE,
SCM_VALIDATE_FLOAT_COPY, SCM_VALIDATE_DOUBLE_COPY): New
macros. (The NUM names might soon change.)

* numbers.h: Added missing declarations.
2001-09-23 21:25:26 +00:00
Mikael Djurfeldt
5437598b36 * Makefile.am: Distribute num2float.i.c.
* num2float.i.c: New file, multiply included by numbers.c, used
to "templatize" the float <-> num conversion routines.

* numbers.c: New functions: scm_num2float, scm_float2num,
scm_num2double, scm_double2num.
2001-09-22 21:39:42 +00:00
Rob Browning
0b073f0f14 *** empty log message *** 2001-09-21 17:58:04 +00:00
Rob Browning
b469bd68a6 * .cvsignore: really add version.h 2001-09-21 17:57:07 +00:00
Rob Browning
f6b115d97e * chars.h (SCM_MAKE_CHAR): coerce value to intptr_t. 2001-09-21 17:56:39 +00:00
Rob Browning
1aaa208e93 * numbers.c (scm_gcd): change "k" to a long from an int.
Otherwise it fails on the alpha.  However, we might rather choose
this size conditionally.
2001-09-21 17:56:31 +00:00
Rob Browning
27070f900d * strings.h (SCM_SET_STRING_LENGTH): coerce "l" to a long.
Otherwise it fails on the alpha.  However, we might rather choose
this size conditionally.
2001-09-21 17:56:17 +00:00
Mikael Djurfeldt
2830fd91c6 * numbers.c (scm_integer_expt): Accept inexact integer in second
argument.  (Thanks to Bill Schottstaedt.)
2001-09-20 18:53:32 +00:00
Rob Browning
c13f0a90f4 *** empty log message *** 2001-09-20 16:48:02 +00:00
Rob Browning
3143f1093d * version.c
(scm_major_version): support integer *_VERSION macros.
(scm_minor_version): support integer *_VERSION macros.
(scm_micro_version): support integer *_VERSION macros.
(scm_version): support integer *_VERSION macros.
2001-09-20 16:47:01 +00:00
Rob Browning
c8333bc59d * version.h: renamed to version.h.in. 2001-09-20 16:46:52 +00:00
Rob Browning
d2836a7db6 * version.h.in: renamed from version.h.
(SCM_GUILE_MAJOR_VERSION): new public macro.
(SCM_GUILE_MINOR_VERSION): new public macro.
(SCM_GUILE_MICRO_VERSION): new public macro.
2001-09-20 16:46:37 +00:00
Rob Browning
b1bdf8ec8a * versiondat.h.in: removed (obsolete). 2001-09-20 16:46:25 +00:00
Mikael Djurfeldt
a7f54aed6a * error.c, error.h: Made error keys globally accessible.
Applications might want to test for these or use them in a direct
call to scm_error.
2001-09-20 08:18:26 +00:00
Mikael Djurfeldt
147c18a0e4 * num2integral.i.c (NUM2INTEGRAL): Report an error when these
routines are passed an inexact.  This change in behavior is
motivated by concordance with R5RS: It is more common that a
primitive doesn't want to accept an inexact for an exact.
2001-09-20 08:17:25 +00:00
Dirk Herrmann
662c553964 * Removed function scm_gc_mark_cell_conservatively. 2001-09-17 20:32:53 +00:00
Gary Houston
6c1b762870 * root.h (scm_root_state): removed the continuation_stack and
continuation_stack_ptr members, which have no apparent purpose.
	(scm_continuation_stack, scm_continuation_stack_ptr): #defines
	removed.
	* root.c (root_mark), init.c (restart_stack, start_stack), gc
	(scm_igc): remove all references to contination_stack and
	continuation_stack_ptr, avoiding allocation of a vector and
	useless processing during gc.
2001-09-15 21:56:52 +00:00
Dirk Herrmann
455c0ac82b * Some renamings and minor fixes. 2001-09-13 22:29:44 +00:00
Dirk Herrmann
22ba637b12 * Simplified handling of static glocal SCM variable. 2001-09-13 21:58:15 +00:00
Dirk Herrmann
c3c4d80154 * Fixed some typing bugs. Thanks to Rob Browning. 2001-09-13 21:22:37 +00:00
Dirk Herrmann
b00418df09 * Added function scm_str2string. Thanks to Martin Baulig. 2001-09-12 19:53:57 +00:00
Marius Vollmer
a0d34a0be1 *** empty log message *** 2001-09-06 11:13:27 +00:00
Marius Vollmer
5e7248f272 (scm_done_free): Always subtract size from scm_mallocated
when computing nm, even if it's negative.
(scm_must_malloc): Abort on overflow of scm_mtrigger.
(scm_must_realloc): Likewise.
2001-09-06 11:11:31 +00:00
Michael Livshin
b10586f098 * numbers.c (scm_sys_check_number_conversions): new function,
defined if Guile is compiled in debugging mode.  currently checks
`scm_num2ulong', should check much much more.

* num2integral.i.c (NUM2INTEGRAL): when converting a bignum to
unsigned, ensure that it's positive.  thanks to Martin Baulig!
2001-09-01 17:17:50 +00:00
Dirk Herrmann
8c494e9973 * Removed lots of deprecated stuff. 2001-08-31 14:42:31 +00:00
Dirk Herrmann
dee01b012c * Removed deprecated stuff.
* Some more renamings to SCM_<filename>_H.
2001-08-31 12:13:50 +00:00
Dirk Herrmann
b29058ffee * Remove deprecated macros and typenames.
* Rename header macros to SCM_<filename>_H.
* Prefer !SCM_<foo> over SCM_N<foo>.
2001-08-31 11:17:06 +00:00
Dirk Herrmann
0527e68763 * Renamed header macros to the SCM_<filename>_H format. 2001-08-31 10:42:19 +00:00
Marius Vollmer
fada26b27e *** empty log message *** 2001-08-26 21:54:33 +00:00
Marius Vollmer
f5fd8aa2a7 Replaced "scm_t_portable" with "scm_port_table" which was an artifact
from the great "scm_*_t -> scm_t_" renaming.
2001-08-26 21:54:11 +00:00
Thien-Thi Nguyen
e4d1c1eabd *** empty log message *** 2001-08-25 18:29:38 +00:00
Thien-Thi Nguyen
d098d810cf (SCM_VALIDATE_USHORT_COPY, SCM_VALIDATE_SHORT_COPY,
SCM_VALIDATE_UINT_COPY, SCM_VALIDATE_INT_COPY): New macros.
Thanks to Chris Cramer.
2001-08-25 18:22:50 +00:00
Thien-Thi Nguyen
9ec1e7705c (GC_noop1): Move before `GC_find_limit' where it is used; nfc.
Thanks to Bill Schottstaedt.
2001-08-25 18:20:56 +00:00
Marius Vollmer
b573e74455 *** empty log message *** 2001-08-25 16:12:28 +00:00
Marius Vollmer
2e1711782d * eval.c (scm_m_atbind): Redesigned to behvae like `let', but with
dynamic scope.
* dynwind.h (scm_swap_bindings): Declare.
* dynwind.c (scm_swap_bindings): Make non-static.
2001-08-25 16:08:13 +00:00
Marius Vollmer
3307df9557 (AUTOMAKE_OPTIONS): Change "foreign" to "gnu". 2001-08-25 16:05:04 +00:00
Michael Livshin
8a3e715b20 * gc.c (scm_gc_sweep): now can sweep unreachable variables (by
doing exactly nothing about them).  thanks Neil!
2001-08-24 23:57:12 +00:00
Thien-Thi Nguyen
ec2667f0cf *** empty log message *** 2001-08-24 22:24:11 +00:00
Neil Jerram
cf504ee0cf * Fix spelling mistake in comment. 2001-08-18 16:32:04 +00:00
Thien-Thi Nguyen
43b83b541d *** empty log message *** 2001-08-17 23:50:02 +00:00
Thien-Thi Nguyen
eae3393547 Fix omission bug: Add `heap_segment' forward decl
(proto) in the case when either `GUILE_DEBUG' or
`GUILE_DEBUG_FREELIST' preprocessor symbols are defined.

(map_free_list): Fix typo: Ref `f' correctly.

Thanks to Chris Cramer.
2001-08-17 23:45:29 +00:00
Rob Browning
ab4cd34b26 *** empty log message *** 2001-08-16 03:44:29 +00:00
Rob Browning
9e86801e2f * Makefile.am (libguile_la_LDFLAGS): use libtool interface version
variables.
(libpath.h): change libguileversion to libguileinterface.
2001-08-16 03:44:19 +00:00
Marius Vollmer
b754e3d1ec *** empty log message *** 2001-08-07 18:18:55 +00:00
Marius Vollmer
41973b48bb (EXTRA_DIST): Distribute ChangeLog-1996-1999 and ChangeLog-2000.
Thanks to Daniel Skarda!
2001-08-07 18:14:56 +00:00
Michael Livshin
8b1d12c79a * guile-snarf-docs-texi.in: don't call the tokenizer here, we now
do it from the Makefile.

* Makefile.am: rearrange the snarfing slightly, so that .doc files
are of a reasonable size.
2001-08-06 23:19:50 +00:00
Neil Jerram
baffb19f27 * Explain cutting args for `make-stack'. 2001-08-02 20:26:21 +00:00
Marius Vollmer
c1151355d2 *** empty log message *** 2001-08-01 21:28:45 +00:00
Marius Vollmer
ccbd262bd1 (scm_char_alphabetic_p, scm_char_numeric_p, scm_char_whitespace_p,
scm_char_upper_case_p, scm_char_lower_case_p, scm_char_is_both_p): Do
not require characters to fulfill isascii in addition to the primary
predicate.
2001-08-01 21:27:59 +00:00