Marius Vollmer
5345cf7cae
* numbers.c (scm_num2ulong): Check that a bignum is positive
...
before looking at the magnitude. Correctly check for overflow
during conversion.
2001-03-15 19:21:51 +00:00
Keisuke Nishida
783e777478
Remove #include <stdio.h>. Add #include <string.h>.
2001-03-09 23:33:41 +00:00
Martin Grabmüller
942e5b9162
* vectors.c (s_scm_vector_p, list->vector, scm_vector)
...
(scm_vector_ref, scm_vector_set_x, scm_vector_to_list)
(scm_vector_fill_x), strorder.c (scm_string_equal_p)
(scm_string_ci_equal_p, scm_string_less_p, scm_string_leq_p)
(scm_string_gr_p, scm_string_geq_p, scm_string_ci_less_p)
(scm_string_ci_geq_p), symbols.c (scm_symbol_p)
(scm_symbol_to_string, scm_string_to_symbol): Changed use of @t{}
to @code{} as the texinfo manual recommends, converted the
examples to use a @lisp{}-environment.
* strports.c (scm_eval_string): Cleaned up the docstring.
* struct.c (scm_struct_p, scm_struct_vtable_p): Added texinfo
markup.
* numbers.c (scm_exact_p, scm_odd_p, scm_even_p)
(scm_number_to_string, scm_string_to_number, scm_number_p)
(scm_real_p, scm_integer_p, scm_inexact_p, scm_make_rectangular)
(scm_make_polar, scm_inexact_to_exact): Added texinfo markup.
(scm_ash): Added texinfo markup and removed obsolete @refill.
(scm_gr_p): Corrected comment.
(scm_gr_p, scm_leq_p, scm_geq_p): Added texinfo markup to (future
docstring) comments.
(scm_positive_p, scm_less_p, scm_num_eq_p, scm_real_p)
(scm_number_p, scm_negative_p, scm_max, scm_min, scm_sum)
(scm_difference, scm_product, scm_divide, scm_asinh, scm_acosh)
(scm_atanh, scm_truncate, scm_round, scm_exact_to_inexact)
(floor, ceiling, $sqrt, $abs, $exp, $log, $sin, $cos, $tan, $asin)
($acos, $atan, $sinh, $cosh, $tanh, scm_real_part, scm_imag_part)
(scm_magnitude, scm_angle, scm_abs, scm_quotient, scm_remainder)
(scm_modulo, scm_gcd, scm_lcm): Added (future docstring) comments.
2001-03-02 09:07:22 +00:00
Neil Jerram
27c3700636
* numbers.c (scm_two_doubles, scm_sys_expt, scm_sys_atan2,
...
scm_make_polar): Rename arguments `z1' and `z2' to `x' and `y',
since use of `z' suggests that the arguments may be complex.
* goops.c (scm_make), numbers.c (scm_sys_expt): Fix docstring
typos.
2001-02-24 23:46:04 +00:00
Marius Vollmer
5fa207514c
* numbers.c (s_scm_logior) [SCM_DIGSTOOBIG]: Also use
...
SCM_DIGSPERLONG instead of DIGSPERLONG.
2001-02-22 09:25:03 +00:00
Marius Vollmer
134ec96519
* numbers.c (scm_logior) [SCM_DIGSTOOBIG]: Correctly use
...
SCM_BIGDIG instead of BIGDIG. Thanks to Steven G. Johnson!
2001-02-21 20:16:05 +00:00
Martin Grabmüller
0137a31b73
(scm_lognot): Removed unnecessary "" from docstrings.
...
(scm_sys_expt, scm_sys_atan2): Added docstrings.
2001-02-16 14:53:55 +00:00
Dirk Herrmann
ac0c002c62
* Fixed a couple of bugs with quotient, remainder, bit-extract and logand.
2001-01-17 18:15:30 +00:00
Dirk Herrmann
a261c0e933
* Re-introduced most-positive-fixnum and most-negative-fixnum.
2000-12-14 00:08:56 +00:00
Dirk Herrmann
6a0476fd11
* SCM_SETCHARS deprecated.
2000-11-23 13:54:49 +00:00
Dirk Herrmann
34f0f2b8af
* Deprecated macros SCM_ROCHARS and SCM_ROUCHARS.
2000-11-22 11:20:03 +00:00
Marius Vollmer
8dc9439fc6
* alist.c, arbiters.c, async.c, backtrace.c, boolean.c, chars.c,
...
continuations.c, debug-malloc.c, debug.c, dynl.c, dynwind.c,
environments.c, eq.c, error.c, eval.c, evalext.c, feature.c,
filesys.c, fluids.c, fports.c, gc.c, goops.c, guardians.c, hash.c,
hashtab.c, hooks.c, ioext.c, iselect.c, keywords.c, lang.c,
list.c, load.c, macros.c, modules.c, net_db.c, numbers.c,
objects.c, objprop.c, options.c, pairs.c, ports.c, posix.c,
print.c, procprop.c, procs.c, properties.c, ramap.c, random.c,
read.c, regex-posix.c, root.c, scmsigs.c, script.c, simpos.c,
socket.c, sort.c, srcprop.c, stackchk.c, stacks.c, stime.c,
strings.c, strop.c, strorder.c, strports.c, struct.c, symbols.c,
tag.c, threads.c, throw.c, unif.c, variable.c, vectors.c,
version.c, vports.c, weaks.c: Makes sure the snarfer output
inclusion is disabled when the snarfer is run on the file. Thanks
to Lars J. Aas!
* Makefile.am: Install guile-procedures.txt in version-specific
directory to enable multiple installed guile versions. Suggested
by Karl M. Hegbloom <karlheg@debian.org, patch by Matthias Koeppe.
2000-11-17 16:25:05 +00:00
Dirk Herrmann
a6d9e5abe5
* Change a couple of functions to accept either symbols or strings only.
...
* Get rid of remainig uses of SCM_LENGTH etc.
2000-10-30 11:42:26 +00:00
Dirk Herrmann
aa3188a7d9
* Eliminate previously introduced redundant string copying.
2000-10-09 09:54:28 +00:00
Dirk Herrmann
94115ae385
* Don't call scm_vector_set_length_x for non-vector arguments.
2000-10-06 16:51:08 +00:00
Dirk Herrmann
9eb364fccb
* More references to SCM_CHARS removed.
2000-09-26 19:40:10 +00:00
Marius Vollmer
dd47565aeb
* numbers.c (scm_istr2flo): Throw an `out of range' error when
...
exponent is too large instead of returning `#f'. The rationale is
that in this case the string represents a valid number but we
can't deal with it.
2000-09-20 21:04:19 +00:00
Neil Jerram
2a2a730bfa
* Docstring fixes.
2000-08-12 23:15:48 +00:00
Neil Jerram
f0a7af1a86
Docstring fix for scm_logand.
2000-08-12 22:13:32 +00:00
Mikael Djurfeldt
c76b1eafa3
* numbers.c (scm_gr_p, scm_leq_p, scm_geq_p): Turned into
...
primitive generics. (Thanks to Nicolas Neuss.)
2000-06-30 16:08:48 +00:00
Dirk Herrmann
2500356c67
* Cleaned up memory error signalling.
2000-06-29 15:54:58 +00:00
Mikael Djurfeldt
f69a01b29c
Inserted some comments
2000-06-20 14:55:52 +00:00
Dirk Herrmann
894a712b28
* Un-deprecated the *FIXABLE macros.
...
* Deprecated SCM_UNPACK_CAR.
* Updated NEWS and RELEASE.
2000-05-25 13:53:49 +00:00
Dirk Herrmann
5610071627
* Makefile.am: Let 'make clean' remove *.x and *.doc files.
...
* Renamed SCM_STRICT_TYPING to SCM_DEBUG_TYPING_STRICTNESS.
* Removed conditionally compiled code for Turbo C.
* gdbint.c: Eliminated call to scm_tag.
2000-05-16 12:11:08 +00:00
Dirk Herrmann
3c9f20f849
Reordered some dispatch sequences.
2000-05-16 09:06:23 +00:00
Dirk Herrmann
78166ad555
* Reordered some dispatch sequences.
...
* scm_bit_extract: Fixed handling of bignums.
2000-05-15 17:03:59 +00:00
Dirk Herrmann
3a9809dfde
* __scm.h: Added section for debugging options.
...
* New debugging option SCM_DEBUG_DEPRECATED.
* numbers.c numbers.h: Deprecated a lot of stuff.
2000-05-11 16:03:32 +00:00
Dirk Herrmann
5986c47d3a
* Added FIXME comment about the problems with infinite numbers.
...
* abs/magnitude: Made independent of each other.
* Avoid using REALPART for real objects.
2000-05-10 13:42:23 +00:00
Dirk Herrmann
7235ee58f5
IS_INF: Undid last change.
2000-05-10 09:25:11 +00:00
Dirk Herrmann
bb62879452
* Added comments.
...
* Removed static function add1.
2000-05-09 16:55:54 +00:00
Dirk Herrmann
98cb6e75f5
* Fixed IS_INF.
...
* Reordered some dispatch sequences.
2000-05-09 12:58:53 +00:00
Dirk Herrmann
c2ff8ab0f3
Reordered some dispatch sequences.
2000-05-08 19:34:20 +00:00
Dirk Herrmann
9a00c9fc85
Fixed some goto-related initialization bugs.
2000-05-05 01:30:31 +00:00
Dirk Herrmann
f4c627b33b
* scm_divbigbig and scm_divbigint are static now
...
and only return valid SCM values.
* Reordered some further dispatch sequences.
* Division by zero of inums leads to an error now.
2000-05-03 12:35:56 +00:00
Dirk Herrmann
f8de44c154
* numbers.c (scm_logtest, scm_division): Reordered dispatch sequence.
...
* removed calls to deprecated scm_makdbl.
2000-05-02 16:41:20 +00:00
Dirk Herrmann
09fb759974
Some dispatch sequence reordering fixes of comparisons of SCM values with
...
integer constants.
2000-04-28 17:14:49 +00:00
Dirk Herrmann
89a7e495bc
* removed code enclosed within #ifdef BADIVSGNS ... #endif.
...
* scm_quotient: Fixed parameter number in error message.
* scm_remainder: Reordered dispatch sequence.
2000-04-28 08:35:28 +00:00
Mikael Djurfeldt
a059974535
* Makefile.am (DEFS): Added. automake adds -I options to DEFS,
...
and we don't want that.
(INCLUDES): Removed all -I options except for the root source
directory and the root build directory.
* *.*: Change includes so that they always use the "prefixes"
libguile/, qt/, guile-readline/, or libltdl/.
(Thanks to Tim Mooney.)
2000-04-21 14:16:44 +00:00
Mikael Djurfeldt
a1a33b0f99
* numbers.c (scm_odd_p, scm_even_p): Use SCM_WRONG_TYPE_ARG
...
instead of SCM_ASSERT (0, ...). (Some compilers will complain
about control reaching end of function otherwise, and, besides,
the new code is not less clear.)
2000-04-21 11:35:39 +00:00
Dirk Herrmann
4219f20d15
Added documentation strings and reordered some dispatch sequences.
2000-04-20 15:51:09 +00:00
Mikael Djurfeldt
495ffc6ec5
* numbers.c (scm_adjbig): Tell scm_must_realloc "what" instead of "who".
2000-04-19 03:26:13 +00:00
Dirk Herrmann
828865c30d
* (scm_quotient, scm_modulo): Reordered to handle the case of immediate
...
numbers parameters first. Also, only use decoded numbers for numerical
comparison.
2000-04-11 13:00:15 +00:00
Dirk Herrmann
4260a7fced
Lots of fixes with respect to strict typing.
2000-04-04 12:13:41 +00:00
Dirk Herrmann
f81e080b24
Fixed some bugs that are due to the fact that SCM is a void* now.
...
Cleaned up a macro definition. Thanks to Dale P. Smith for both of
these patches.
2000-03-22 20:48:18 +00:00
Dirk Herrmann
f2961ccd8f
A couple of typing problems (at leat partially) resolved.
2000-03-20 18:14:07 +00:00
Dirk Herrmann
3ab9f56eaf
scm_ash: Fixed typing problems with the second parameter and added some
...
documentation. (Thanks Thien-Thi Nguyen for indicating the problem.)
2000-03-20 04:02:56 +00:00
Michael Livshin
89e00824a0
* *.[hc]: add Emacs magic at the end of file, to ensure GNU
...
indentation style.
2000-03-19 19:01:16 +00:00
Dirk Herrmann
ba11fd4cb6
Only include root.h where it is actually needed.
2000-03-18 08:44:04 +00:00
Dirk Herrmann
7ab3fdd51f
Only include strings.h where it is actually needed.
2000-03-17 18:11:58 +00:00
Dirk Herrmann
f04d8caf82
Only include ports.h where it is actually needed.
2000-03-17 16:10:13 +00:00