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

6023 commits

Author SHA1 Message Date
Mikael Djurfeldt
5d20b8c7fe * boot-9.scm (process-define-module): Added :re-export. 2001-09-24 11:12:23 +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
Mikael Djurfeldt
b21cccf315 * srfi-19.scm (priv:split-real): Inserted missing call to
inexact->exact.
2001-09-22 21:17:31 +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
Rob Browning
cc0ce1e764 * srfi-14.c (SCM_CHARSET_SET): need 1L, not just 1 in "<<".
(scm_char_set_hash): val needs to be long, not just unsigned.
(scm_char_set): need 1L, not just 1 in "<<".
(scm_list_to_char_set): need 1L, not just 1 in "<<".
(scm_list_to_char_set_x): need 1L, not just 1 in "<<".
(scm_list_to_char_set_x): FUNC_NAME was wrong - added a _x.
(scm_string_to_char_set): string length var needed to be
scm_sizet, not int.
(scm_string_to_char_set): need 1L, not just 1 in "<<".
(scm_string_to_char_set_x): string length var needed to be
scm_sizet, not int.
(scm_string_to_char_set_x): need 1L, not just 1 in "<<".
(scm_char_set_filter): need 1L, not just 1 in "<<".
(scm_char_set_filter_x): need 1L, not just 1 in "<<".
(scm_ucs_range_to_char_set): need 1L, not just 1 in "<<".
(scm_ucs_range_to_char_set_x): need 1L, not just 1 in "<<".
(scm_char_set_adjoin): need 1L, not just 1 in "<<".
(scm_char_set_delete): need 1L, not just 1 in "<<".
(scm_char_set_adjoin_x): need 1L, not just 1 in "<<".
(scm_char_set_delete_x): need 1L, not just 1 in "<<".
2001-09-21 17:55:07 +00:00
Rob Browning
3a868e486c * srfi-14.h (SCM_CHARSET_GET): need 1L, not just 1 in "<<". 2001-09-21 17:54:56 +00:00
Rob Browning
af297b33d8 * tests/bit-operations.test (fixnum-bit): compute dynamically. 2001-09-21 17:54:35 +00:00
Rob Browning
8b7838b558 * tests/numbers.test (fixnum-bit): compute dynamically. 2001-09-21 17:54:27 +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
70c07eed72 * configure.in (AC_CONFIG_FILES): add libguile/version.h. 2001-09-20 16:47:41 +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
Thien-Thi Nguyen
9d7e6c84ca *** empty log message *** 2001-09-19 13:36:48 +00:00
Thien-Thi Nguyen
9365ee8a20 Fix number typo in "Jump Start" section. 2001-09-19 13:36:05 +00:00
Thien-Thi Nguyen
aee0492fb8 *** empty log message *** 2001-09-19 13:15:38 +00:00
Thien-Thi Nguyen
fab8ab3113 Fix improper `@result' usage. 2001-09-19 13:14:43 +00:00
Thien-Thi Nguyen
af40357bc9 *** empty log message *** 2001-09-19 13:04:22 +00:00
Thien-Thi Nguyen
0755b9dfcb Commentary fix; nfc. 2001-09-19 13:03:25 +00:00
Thien-Thi Nguyen
a7a6705efe *** empty log message *** 2001-09-19 12:57:38 +00:00
Thien-Thi Nguyen
bd83482d50 (process-use-modules): Fix typo. 2001-09-19 12:56:28 +00:00
Mikael Djurfeldt
29251befae * Makefile.am (psyntax.pp): Reference compile-psyntax.scm in
$(srcdir) in order to support separate build trees.
2001-09-18 18:17:17 +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
Gary Houston
6ddd941279 2001-09-12 Gary Houston <ghouston@arglist.com>
* srfi-1.scm (filter): change "caller" to "filter" in check-arg-type.
2001-09-12 19:15:33 +00:00
Thien-Thi Nguyen
998bfc70f0 Add `arity' enhancement news. 2001-09-09 01:09:24 +00:00
Thien-Thi Nguyen
2851e5bc70 *** empty log message *** 2001-09-09 01:03:43 +00:00
Thien-Thi Nguyen
c7bb434f2f (arity): Use new `arglist' procedure property to
present a more detailed argument list.
2001-09-09 01:00:30 +00:00
Thien-Thi Nguyen
4a69c751ef (lambda*): Record the broken-down argument list in
the `arglist' procedure property.
2001-09-09 00:59:02 +00:00
Thien-Thi Nguyen
95e2cd37e9 *** empty log message *** 2001-09-08 02:34:27 +00:00
Thien-Thi Nguyen
4b642b08d4 ("apples-blimps-catalexis example", "multiple occurances"):
New top-level sections.
2001-09-08 02:33:30 +00:00
Thien-Thi Nguyen
05326ffd93 (process-options, getopt-long): Fix omission
bug: Handle multiple occurrances of an option.
2001-09-08 02:30:20 +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
Thien-Thi Nguyen
06288138ba *** empty log message *** 2001-09-04 19:36:18 +00:00
Thien-Thi Nguyen
a2971fa990 Use outline mode instead of text.
Reword protocol explanation.
Add "make error-signalling functions more consistent" to Eventually.
Move some C-related GOOPS tasks to 1.8.0, take ownership.
2001-09-04 19:32:43 +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