Rob Browning
14efea3dde
* numbers.c: enabled local definition of SCM_FLOBUFLEN until we
...
know what's supposed to happen to it.
2001-04-28 17:27:04 +00:00
Dirk Herrmann
e4b265d817
* Avoid redundant casting of argument numbers to char* and vice versa.
2001-04-10 07:57:05 +00:00
Martin Grabmüller
1e6808ea20
Correct, update, improve and clean up a lot of docstrings in order to make
...
the documentation much more consistent.
2001-04-03 13:19:05 +00:00
Dirk Herrmann
be54b15d85
* Replace function scm_makstr with new function scm_allocate_string.
2001-03-22 12:52:03 +00:00
Dirk Herrmann
b3fcac341b
* __scm.h (SCM_ASSERT, SCM_WTA_DISPATCH_0, SCM_WTA_DISPATCH_1,
...
SCM_WTA_DISPATCH_2, SCM_WTA_DISPATCH_n): Don't call scm_wta, call
scm_wrong_type_arg instead.
(SCM_WNA): Deprecated.
* error.[ch] (scm_wta): Deprecated.
* numbers.c (s_i_log): Minor comment fix.
* read.c (scm_lreadr), unif.c (scm_aind, scm_shap2ra,
scm_make_shared_array, scm_transpose_array, scm_enclose_array,
scm_array_in_bounds_p): Don't use SCM_ASSERT to check for
wrong-num-args or misc errors.
* unif.c (scm_make_shared_array, scm_transpose_array,
scm_enclose_array, scm_array_in_bounds_p, scm_array_set_x):
Validate the rest argument (note: this is only done when guile is
built with SCM_DEBUG_REST_ARGUMENT=1)
(scm_array_in_bounds_p, scm_uniform_vector_ref, scm_array_set_x):
Replace calls to scm_wrong_num_args by SCM_WRONG_NUM_ARGS.
* validate.h (SCM_FUNC_NAME, SCM_VALIDATE_NUMBER_COPY,
SCM_VALIDATE_NUMBER_DEF_COPY): Deprecated.
2001-03-17 13:34:21 +00:00
Martin Grabmüller
5352393c55
* list.c (scm_list, scm_cons_star, scm_null_p, scm_list_p),
...
(scm_length, scm_append, scm_reverse, scm_list_ref),
(scm_memq, scm_memv, scm_member, scm_delv_x, scm_delete_x),
(scm_delq, scm_delv, scm_delete, scm_delq1_x, scm_delv1_x),
(scm_delete1_x), gc.c (scm_map_free_list),
(scm_free_list_length), hash.c (scm_hashq, scm_hashv),
(scm_hash), hashtab.c (scm_hashq_ref, scm_hashq_set_x),
(scm_hashq_remove_x, scm_hashv_ref, scm_hashv_set_x),
(scm_hashv_remove_x, scm_hash_ref, scm_hash_set_x),
(scm_hash_remove_x), ports.c (scm_pt_size, scm_pt_member), print.c
(scm_current_pstate), scmsigs.c (scm_usleep), goops.c
(scm_get_keyword, scm_sys_compute_slots): Added texinfo markup.
* weaks.c (scm_weak_vector_p, scm_weak_key_hash_table_p),
(scm_weak_value_hash_table_p, scm_doubly_weak_hash_table_p),
rdelim.c (scm_read_delimited_x), strop.c (scm_string_index),
symbols.c (scm_symbol_interned_p), numbers.c
(scm_string_to_number), ports.c (scm_port_p): Corrected texinfo
markup.
2001-03-16 10:00:17 +00:00
Marius Vollmer
caf08e652e
* numbers.c (scm_num2ulong): Check that a bignum is positive
...
before looking at the magnitude. Correctly check for overflow
during conversion.
(scm_num2long_long): Likewise.
(scm_num2ulong_long): New.
(ULONG_LONG_MAX): Define if not already defined.
* numbers.h: (scm_num2ulong_long): New prototype.
2001-03-15 20:04:41 +00:00
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