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

7834 commits

Author SHA1 Message Date
Marius Vollmer
eb1f89f652 Find a suitable type for the new scm_t_intmax and scm_t_uintmax. 2003-12-26 19:00:47 +00:00
Kevin Ryde
caff34d4fa *** empty log message *** 2003-12-02 21:38:04 +00:00
Kevin Ryde
084b1d8eec (scm_less_p): Remove spurious xisnan from frac+big case. 2003-12-02 21:36:39 +00:00
Kevin Ryde
fc5f3d51c1 (real-part): Expect fraction return, not converted to flonum. 2003-12-02 21:32:43 +00:00
Kevin Ryde
2fa2d87937 (scm_real_part): Return fraction unchanged rather than converting to flonum. 2003-12-02 21:27:13 +00:00
Kevin Ryde
64b4cbe4f3 Exercise most-negative-fixnum over -ve of most-negative-fixnum. 2003-12-02 21:24:58 +00:00
Kevin Ryde
76903a316a (abs): Add a few more tests. 2003-12-02 21:23:31 +00:00
Kevin Ryde
dd5130cadf (scm_make_ratio): Check for numerator equal to
SCM_MOST_NEGATIVE_FIXNUM and bignum denominator the negative of that,
giving integer -1.
2003-12-02 21:21:14 +00:00
Kevin Ryde
f39032937e (count): New tests. 2003-12-02 21:17:33 +00:00
Kevin Ryde
b35072cde6 *** empty log message *** 2003-12-02 21:14:03 +00:00
Kevin Ryde
c6424115fe (map!): Define as an alias for map, previous definition was not tail-recursive. 2003-12-02 21:13:42 +00:00
Kevin Ryde
110348aee9 (count): Rewrite in C, avoiding non-tail recursion. 2003-12-02 21:12:20 +00:00
Mikael Djurfeldt
f1efbdf3f1 (snarfcppopts): Added -I$(top_srcdir). 2003-12-01 18:49:38 +00:00
Dirk Herrmann
2d0b85acf8 * modules.c (module_variable): Fixed (and thus simplified) the
definition of SCM_BOUND_THING_P to reflect the fact that since
	after the 1.4 series of guile, obarrays only hold variable
	objects.
2003-11-30 12:41:34 +00:00
Marius Vollmer
2297981dde *** empty log message *** 2003-11-30 01:00:16 +00:00
Marius Vollmer
535f2a516a (scm_logand): It's "#b...", not "#\b...". 2003-11-30 00:59:40 +00:00
Marius Vollmer
96dfea7d7e It's "#\\space", not "#\space". 2003-11-30 00:58:25 +00:00
Marius Vollmer
fea8e14239 (scm_iprin1): use \xNN hexadecimal sequences when writing control
characters in strings.
2003-11-30 00:57:14 +00:00
Marius Vollmer
b645ea8c7e (scm_lreadr): Signal an error for invalid escape sequences in strings.
Code cleanups too.
2003-11-30 00:57:03 +00:00
Neil Jerram
7dd3f110af Initial support for setting source breakpoints. 2003-11-27 20:54:05 +00:00
Kevin Ryde
16f9b79576 *** empty log message *** 2003-11-24 22:25:53 +00:00
Kevin Ryde
8c3b23b3aa (Macros guile-snarf recognizes): Correction to GOOPS cross reference. 2003-11-24 22:17:13 +00:00
Kevin Ryde
6117838eb1 Remove empty (duplicate) "Jump Start" entry. 2003-11-24 22:13:26 +00:00
Dirk Herrmann
5c26400756 * Forgot to submit the Changelog last time. 2003-11-21 23:28:15 +00:00
Dirk Herrmann
6bff13687c * eval.c (s_bad_define): New static identifier.
(m_body): Fixed comment.

	(scm_m_define): Don't generate memoized code for definitions that
	are not on the top level.  As a consequence, no memoized code at
	all is generated for definitions any more: Top level definitions
	are executed immediately during memoization and internal
	definitions are handled separately in m_expand_body.

	(scm_unmemocopy, unmemocopy): Removed code for unmemoizing
	definitions.  Consequently, there is no unmemoizing code any more
	that might modify the environment.  Thus, the old scm_unmemocopy
	is removed and the old unmemocopy is renamed to scm_unmemocopy.

	(SCM_CEVAL): The SCM_IM_DEFINE keyword can no longer occur in
	memoized code.  Call EVALCAR for continuations.  Prefer !SCM_NULLP
	over SCM_NIMP in places, where the argument is known to be part of
	a proper list.
2003-11-21 23:21:34 +00:00
Marius Vollmer
28a6e1b0b6 (scm_drain_input): Bug fix: only access the port after checking that
it indeed is one.
2003-11-21 17:08:31 +00:00
Kevin Ryde
018d4730fe *** empty log message *** 2003-11-21 00:45:07 +00:00
Kevin Ryde
7f84824269 (scm_bit_extract): Use mpz functions, rearrange inum case
to share some shifting.
2003-11-21 00:33:44 +00:00
Kevin Ryde
ae38324d9c (scm_abs): Allocate a new real only for negatives, as done for bignums. 2003-11-21 00:07:13 +00:00
Kevin Ryde
753ac1e7e1 (scm_integer_expt): Don't mpz_init after scm_i_clonebig or
scm_i_mkbig, since they do so already.  Don't mpz_clear a bignum SCM,
since gc does this.
2003-11-21 00:03:54 +00:00
Marius Vollmer
ca2b31fe08 #e1.2 is now exactly 12/10. Expect exceptions when calling inexact?
with a non-number.
2003-11-20 23:55:51 +00:00
Rob Browning
c412e408c5 (scm_system_star): new prototype. 2003-11-19 21:40:42 +00:00
Rob Browning
0db17ef9ab (scm_system_star): new function. 2003-11-19 21:40:32 +00:00
Rob Browning
8141bd983d (Processes): add documentation for system*. 2003-11-19 21:39:35 +00:00
Rob Browning
d26af5b23e *** empty log message *** 2003-11-19 21:39:26 +00:00
Rob Browning
060ffedfe1 (check_SCRIPTS): add test-system-cmds.
(TESTS): add test-system-cmds.
2003-11-19 21:39:16 +00:00
Rob Browning
b10b93de99 * standalone/test-system-cmds: new test. 2003-11-19 21:39:07 +00:00
Marius Vollmer
f24809dc2b *** empty log message *** 2003-11-19 18:24:36 +00:00
Marius Vollmer
e23fec5561 Include exact rationals. 2003-11-19 18:13:21 +00:00
Marius Vollmer
01b30204b5 (What is Guile?): Add @acronym for POSIX, R5RS, GUI,
and HTTP.  Conclude linking libguile.
2003-11-19 18:12:11 +00:00
Marius Vollmer
c1f1071afc Changed to reflect the fact that rationalize only returns an exact
result for exact arguments.  Fixed bugs in tests that were not caught
previously since all fraction were treated as equal regardless of
value.
2003-11-19 05:15:51 +00:00
Marius Vollmer
fb16d26e23 *** empty log message *** 2003-11-19 05:13:53 +00:00
Marius Vollmer
c60e130c97 * numbers.c (scm_make_ratio): Rewritten to have a simpler
structure.  Previously, not all cases with a negative denominator
were covered.
2003-11-19 05:12:08 +00:00
Marius Vollmer
0b0c8e3b4c * numbers.c (scm_make_ratio): Don't declare divisible_p after
statements.
2003-11-19 04:30:40 +00:00
Marius Vollmer
4bca30d83a *** empty log message *** 2003-11-19 03:51:21 +00:00
Marius Vollmer
02164269a7 * numbers.c (scm_i_fraction_equalp): Do not treat the return value
of scm_equal_p as a C boolean, use SCM_FALSEP.  Previously, all
fractions were equal to each other regardless of value.  Ooops.

* numbers.c (scm_rationalize): Return an inexact result when given
inexact arguments.
2003-11-19 03:50:26 +00:00
Marius Vollmer
eb927cb95c * numbers.c (scm_exact_p, scm_inexact_p): Throw error for non-numbers. 2003-11-19 02:38:37 +00:00
Marius Vollmer
d8592269ab (mem2decimal_from_point): use scm_divide instead of scm_divide2real
when forming the fractional part.  This allows "#e1.2" to yield 6/5.
2003-11-19 02:19:03 +00:00
Neil Jerram
0f8b558cbc Work in progress. 2003-11-19 01:27:31 +00:00
Neil Jerram
d9d022a7d6 Work in progress. 2003-11-19 01:22:06 +00:00