1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-30 11:50:28 +02:00
Commit graph

5705 commits

Author SHA1 Message Date
Rob Browning
5e137c657b *** empty log message *** 2001-10-09 03:32:12 +00:00
Dirk Herrmann
ee083ac29f * hashtab.c (scm_hash_fn_create_handle_x): The result of assoc_fn
is known to be #f if no entry is found.  Thus, use !SCM_FALSEP
instead of SCM_NIMP to test for that case.

* strings.h (SCM_SET_STRING_LENGTH):  Cast the length to
scm_t_bits instead of long.
2001-10-08 21:23:00 +00:00
Mikael Djurfeldt
c81f296a08 * emacs.scm (%%load-port, %%emacs-load, %%emacs-eval-request,
%%emacs-select-frame, %%emacs-frame-eval, %%emacs-symdoc,
%%apropos-internal): Use module-define! instead of
builtin-variable.
2001-10-08 12:40:14 +00:00
Marius Vollmer
ce191a26e6 Correct cut and paste error: use SCM_POSFIXABLE for unsigned types. 2001-10-06 20:49:10 +00:00
Marius Vollmer
c0060c9589 Corrected definition of SCM_MOST_POSITIVE_FIXNUM. Boy was I confused. 2001-10-06 20:48:27 +00:00
Marius Vollmer
71dcdbf9a0 *** empty log message *** 2001-10-06 20:01:36 +00:00
Marius Vollmer
801ba33101 (INTEGRAL2NUM): Let the preprocessor test
whether the integral type fits in a fixnum, not the compiler.
This removes a spurious compiler warning.  Also, honor the
NO_PREPRO_MAGIC flag to suppress any preprocessor tests.  This is
needed for `long long's.
2001-10-06 20:00:43 +00:00
Marius Vollmer
dcb6a296dc Define NO_PREPRO_MAGOC when including
num2integral.c.i for `long long' and `signed long long'.
2001-10-06 19:58:24 +00:00
Marius Vollmer
004c0902ff * tags.h (SCM_T_BITS_MAX, SCM_T_SIGNED_BITS_MAX,
SCM_T_SIGNED_BITS_MIN): New.
* numbers.h (SCM_MOST_POSITIVE_FIXNUM, SCM_MOST_NEGATIVE_FIXNUM):
Use them to make these macros computable by the preprocessor.
2001-10-06 19:58:02 +00:00
Mikael Djurfeldt
152812c057 * coop.c (mother_awake_p): New variable.
(coop_create): Set mother_awake_p before creating or signalling
mother; wait until mother is going to sleep before returning.
(mother): Reset mother_awake_p before going to sleep.
2001-10-06 16:30:20 +00:00
Thien-Thi Nguyen
2d7cbf9e0b *** empty log message *** 2001-10-06 06:45:54 +00:00
Thien-Thi Nguyen
6f2ec1d1f3 (quoted?, clump): New procs, exported. 2001-10-06 06:44:48 +00:00
Dirk Herrmann
11d49f5489 * options.c (protected_objects, scm_init_options): The content of
protected_objects is now protected from garbage collection using
scm_gc_register_root instead of scm_permanent_object.

(get_option_setting):  New static function that	computes an option
setting as it was formerly done in the function scm_options.

(get_documented_option_setting):  New static function that
returns option documentation as it was formerly done in the
function scm_options.  Note that documentation C strings are no
longer precomputed into SCM objects.  Instead, they are converted
into SCM strings every time get_documented_option_setting is
called.

(change_option_setting):  New static functions that modifies the
option setting as it was formerly done in the function
scm_options.  The function is now exception safe, i. e. won't
cause a memory leak when interrupted.  Further, only non-immediate
option values are added to the protection list.

(scm_options):  This function now has only the purpose to dispatch
to to get_option_setting, get_documented_option_setting or
change_option_setting, depending on the arguments given to
scm_options.

(scm_init_opts):  Don't convert documentation C strings into SCM
strings.  Further, don't protect any object values:  They _must_
be immediate values, otherwise there is no guarantee that they
have not been collected before anyway.

* options.[ch] (scm_t_option):  Made type unsigned, name into a
constant char* and val into a scm_t_bits type.

(scm_options, scm_init_opts):  The number of options is guaranteed
to be larger or equal to zero.  Thus, the type is changed to
unsigned.
2001-10-05 20:18:30 +00:00
Dirk Herrmann
3dbacabc55 * num2integral.i.c (NUM2INTEGRAL): Eliminated some warnings about
testing an unsigned value for being >= 0.
2001-10-05 18:26:46 +00:00
Neil Jerram
a599743cdc * Remove doc for read-and-eval! and eval2. 2001-10-05 18:05:10 +00:00
Dirk Herrmann
14282d0f5c * numbers.h: Removed old comment about using SCM_CAR to access
non-pair cells.

(SCM_MOST_POSITIVE_FIXNUM, SCM_MOST_NEGATIVE_FIXNUM):  Make sure
the return value is signed.  Thanks to Brian Crowder for the bug
report.

(SCM_SRS):  Avoid unnecessary casting and don't unpack input
values.  With this patch, SCM_SRS can be safely used for other
types than scm_t_signed_bits.  However, it should still better be
an internal macro and thus be renamed to SCM_I_SRS.

(SCM_MAKINUM, SCM_INUM):  Use proper casting.
2001-10-05 17:43:49 +00:00
Thien-Thi Nguyen
74e0de864b *** empty log message *** 2001-10-05 16:00:24 +00:00
Thien-Thi Nguyen
9eb96786d0 (Writing): Add entry for `display'. Include in R5RS Index. 2001-10-05 15:58:51 +00:00
Gary Houston
2dbec7b5fc * continuations.h, unif.h: in the descriptions of the bit patterns
of the heap cells, make bit 0 the least significant.
2001-10-03 20:45:44 +00:00
Thien-Thi Nguyen
6768cfba8c *** empty log message *** 2001-09-30 22:33:38 +00:00
Thien-Thi Nguyen
1fd92c34eb (EXTRA_DIST): Add BUGS file. 2001-09-30 22:32:13 +00:00
Thien-Thi Nguyen
c14bde861d Initial revision 2001-09-30 22:29:56 +00:00
Thien-Thi Nguyen
53b5d2ccf8 *** empty log message *** 2001-09-30 18:25:17 +00:00
Thien-Thi Nguyen
109f654e7f (module-name->filename-frag, display-module-commentary): New procs.
(display-commentary): Also handle refs that look like module names.
2001-09-30 18:24:10 +00:00
Martin Grabmüller
40f316d0b7 Some cosmetic doc fixes. 2001-09-26 17:24:54 +00:00
Thien-Thi Nguyen
cf4ee84106 *** empty log message *** 2001-09-26 03:15:44 +00:00
Thien-Thi Nguyen
f5dd4f5419 (SCM_MAKE_CHAR): Use scm_t_bits' instead of intptr_t'.
Thanks to Golubev I. N.
2001-09-26 03:14:15 +00:00
Thien-Thi Nguyen
523f81bad8 *** empty log message *** 2001-09-26 02:46:30 +00:00
Thien-Thi Nguyen
a55040896d (Syntax Rules): Add `cindex' directive.
Thanks to suggestion by Alex Schroeder.
2001-09-26 02:45:17 +00:00
Thien-Thi Nguyen
2cbad7d913 *** empty log message *** 2001-09-26 02:19:28 +00:00
Thien-Thi Nguyen
fa08b58ea8 Add bugfix item to "Eventually". 2001-09-26 02:17:12 +00:00
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
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