Marius Vollmer
65b39e8ab7
(gh_uniform_vector_length): Properly use scm_c_uniform_vector_length
...
instead of scm_uniform_vector_length.
2004-11-09 22:10:59 +00:00
Marius Vollmer
3cc0a2961f
*** empty log message ***
2004-11-09 16:17:20 +00:00
Marius Vollmer
20930f28b3
(scm_bitvector_p, scm_bitvector,
...
scm_make_bitvector, scm_bitvector_length, scm_bitvector_ref,
scm_bitvector_set_x, scm_list_to_bitvector, scm_bitvector_to_list,
scm_bitvector_fill_x, scm_is_bitvector, scm_c_make_bitvector,
scm_c_bitvector_length, scm_c_bitvector_ref,
scm_c_bitvector_set_x, scm_bitvector_elements,
scm_bitvector_release, scm_frame_bitvector_release,
scm_tc16_bitvector, bitvector_free, bitvector_print,
bitvector_equalp, count_ones, find_first_one): New.
(scm_bit_count, scm_bit_position, scm_bit_set_star_x,
scm_bit_count_star, scm_bit_invert_x, scm_istr2bve): Rewritten
using the new C API for bitvectors and maybe count_ones or
find_first_one, as appropriate.
(SCM_I_MAX_LENGTH, SCM_BITVECTOR_P, SCM_BITVECTOR_BASE,
SCM_SET_BITVECTOR_BASE, SCM_BITVECTOR_MAX_LENGTH,
SCM_BITVECTOR_LENGTH, SCM_MAKE_BITVECTOR_TAG,
SCM_SET_BITVECTOR_LENGTH): Removed. Replaced all uses with the
new functions from above.
(scm_i_proc_make_vector, scm_i_proc_make_string,
scm_i_proc_make_bitvector): Made non-static for use in
scm_i_generalized_vector_creator.
(scm_make_u1vector): Removed, replaced by scm_make_bitvector.
(scm_make_uve): Validate that the created object is a generalized
vector.
(scm_i_legacy_tag): Removed.
(scm_i_print_array): Do it here.
(scm_raprin1): Only print enclosed arrays.
2004-11-09 16:16:19 +00:00
Marius Vollmer
887975809f
(scm_is_vector, scm_c_vector_length, scm_c_vector_ref,
...
scm_c_vector_set_x, scm_generalized_vector_p,
scm_generalized_vector_length, scm_generalized_vector_ref,
scm_generalized_vector_set_x, scm_generalized_vector_to_list,
scm_is_generalized_vector, scm_c_generalized_vector_length,
scm_c_generalized_vector_ref, scm_c_generalized_vector_set_x): New.
2004-11-09 16:14:46 +00:00
Marius Vollmer
399aba0a2b
Use the new generalized vector functions to handle all
...
vector like things.
2004-11-09 16:14:33 +00:00
Marius Vollmer
241b64d63f
Do no longer handle scm_tc7_bvect bitvectors.
2004-11-09 16:14:22 +00:00
Marius Vollmer
6cf0f51de8
(scm_tc7_bvect): Renamed to scm_tc7_unused7, renaming the
...
remaining scm_tc7_unused tags to get a neatly ordered list.
2004-11-09 16:14:09 +00:00
Marius Vollmer
811eb6d0ee
(scm_c_uniform_vector_ref, scm_c_uniform_vector_set_x): New.
...
(scm_i_uniform_vector_creator): Removed.
(scm_i_generalized_vector_creator): New.
(scm_uniform_vector_length, scm_uniform_element_size): Do not
handle generalized vectors, only uniform numeric vectors.
(alloc_uvec): Do length check here...
(make_uvec): ...but not here.
(coerce_to_uvec): Use new generalized vector functions to handle
all kinds of vectors in one go.
2004-11-09 16:13:58 +00:00
Marius Vollmer
1d227e527a
(DOT_DOC_FILES): Added srfi-4.doc.
2004-11-09 13:55:20 +00:00
Marius Vollmer
51c45eb666
*** empty log message ***
2004-11-09 13:54:32 +00:00
Marius Vollmer
a04906d98d
(process-multiline-directive): Allow the fname attribute to a sequence
...
of strings and append them all to form the fname. This is needed for
string literals like "u8""vector?".
2004-11-09 13:54:22 +00:00
Marius Vollmer
d233b123d0
More stuff about arrays and vectors.
2004-11-09 13:48:14 +00:00
Marius Vollmer
714682a353
Synchronized from libguile/guile.texi
2004-11-09 13:44:54 +00:00
Marius Vollmer
50d520d99d
*** empty log message ***
2004-11-09 13:44:14 +00:00
Marius Vollmer
3dd6e0cf19
Minor updates.
2004-11-09 13:43:47 +00:00
Marius Vollmer
61eed96070
(Generalized Vectors): New.
...
(Bit Vectors): More docs.
(Uniform Vectors): Call them Uniform numeric vectors.
2004-11-09 13:43:14 +00:00
Marius Vollmer
38d572f57b
*** empty log message ***
2004-11-05 15:31:31 +00:00
Marius Vollmer
6e4de0cc04
Use @ifnottex instead of @ifinfo around the "Top" node declaration so
...
that html can be generated. Use only lower case inside @sc. Move
editors outside of author table, which looks better in html.
2004-11-05 15:31:23 +00:00
Marius Vollmer
a2b6a0e7f2
*** empty log message ***
2004-11-05 14:50:16 +00:00
Marius Vollmer
0ec78e1546
Do not add "." to %load-path. 'load' will still be able to load files
...
in the current directory, but 'use-modules' etc will not.
2004-11-05 14:49:56 +00:00
Marius Vollmer
1f2328fec2
*** empty log message ***
2004-11-04 17:08:37 +00:00
Marius Vollmer
66842ba3d5
(scm_charnames, scm_charnums): Added "sp" as an alias for "space".
...
Thanks to Bruce Korb!
2004-11-04 17:08:26 +00:00
Marius Vollmer
b0780bc595
(make_uvec): Use SCM_I_SIZE_MAX instead of SIZE_MAX for added
...
portability.
2004-11-04 17:07:42 +00:00
Marius Vollmer
c24d026b3b
*** empty log message ***
2004-11-04 14:04:35 +00:00
Marius Vollmer
a9d13d445b
(scm_read_string_x_partial): Bugfix, apply offset to dest
...
only after dest has been set. Thanks to Hyper Division!
2004-11-04 14:01:18 +00:00
Marius Vollmer
6697f945b9
(gh_uniform_vector_length): Use scm_uniform_vector_length instead of
...
SCM_UVECTOR_LENGTH.
2004-11-04 13:53:31 +00:00
Marius Vollmer
d4ea47c8da
*** empty log message ***
2004-11-03 22:02:13 +00:00
Marius Vollmer
219592225f
(SCM_UVECTOR_BASE, SCM_SET_UVECTOR_BASE,
...
SCM_UVECTOR_MAXLENGTH, SCM_UVECTOR_LENGTH, SCM_MAKE_UVECTOR_TAG,
SCM_SET_UVECTOR_LENGTH): Removed.
2004-11-03 21:55:43 +00:00
Marius Vollmer
236288e205
*** empty log message ***
2004-11-02 22:50:19 +00:00
Marius Vollmer
09c6d80a27
(scm_display_backtrace_with_highlights): Join the
...
first and the second line of the SCM_DEFINE macro call, since old
preprocessors cannot handle definitions that are split into two
lines.
2004-11-02 22:49:14 +00:00
Marius Vollmer
5e1e20c89c
(scm_cell, scm_double_cell): Don't use C99 variable
...
declarations.
2004-11-02 22:47:36 +00:00
Marius Vollmer
7dab4b370c
(scm_i_chase_pairs): Replace scm_t_bits with scm_t_uint32 to fix the
...
mismatch between the function declaration and definition.
2004-11-02 22:47:14 +00:00
Marius Vollmer
1938c6dab7
(quicksort): Don't use C99 variable declarations.
2004-11-02 22:46:42 +00:00
Marius Vollmer
28d4aef1f0
(uvec_fast_ref): Avoid a compiler warning by returning
...
SCM_BOOL_F if no type matches.
2004-11-02 22:46:26 +00:00
Marius Vollmer
a95ba079dc
(thread_print): Cast a pointer to size_t when printing
...
with scm_uintprint.
2004-11-02 22:45:36 +00:00
Marius Vollmer
72d05aa477
(scm_i_tag_to_prototype): Make sure that "instead" gets defined.
...
(scm_array_prototype): Deprecated.
2004-11-02 22:45:22 +00:00
Marius Vollmer
34dedee007
More docs.
2004-11-02 20:16:06 +00:00
Marius Vollmer
5d1015ec8c
*** empty log message ***
2004-11-02 20:15:42 +00:00
Marius Vollmer
d44ff083ea
* srfi-4.h, srfi-4.c (scm_frame_uniform_vector_release): New.
...
* unif.c (scm_bit_set_star_x, scm_bit_count_star_x): Use it to get
more efficient access to the u32vector.
2004-11-02 20:15:32 +00:00
Marius Vollmer
034486df89
*** empty log message ***
2004-11-02 19:52:26 +00:00
Marius Vollmer
067f092233
(scm_tc7_llvect, scm_tc7_uvect, scm_tc7_fvect, scm_tc7_dvect,
...
scm_tc7_cvect, scm_tc7_svect, scm_tc7_byvect, scm_tc7_ivect): Renamed
to scm_tc7_unused_1 to scm_tc7_unused_8.
2004-11-02 19:52:16 +00:00
Marius Vollmer
8536884437
* eq.c, evalext.c, gc-card.c, gc-mark.c, objects.c, print.c,
...
ramap.c, unif.c: Do no longer handle old-style uniform vectors.
* unif.c (scm_bit_set_star_x, scm_bit_count_star_x): Use u32vectors
instead of old-sytle uvectors.
2004-11-02 19:50:11 +00:00
Marius Vollmer
b7a7750adf
Do no longer handle old-style uniform vectors.
2004-11-02 19:47:20 +00:00
Marius Vollmer
df47dca314
(SCM_VALIDATE_VECTOR_OR_DVECTOR): Accept f64vectors instead of the
...
old-style dvectors.
2004-11-02 19:46:29 +00:00
Marius Vollmer
bbe6ba2366
Use new-style uniform arrays in place of old-style ones.
2004-11-02 19:44:49 +00:00
Marius Vollmer
948972893c
Rewritten completely, using scm_any_to_u8vector, etc and other
...
new-style uniform vector functions.
2004-11-02 19:38:55 +00:00
Marius Vollmer
e911caec2b
(scm_random_solid_sphere_x, scm_random_hollow_sphere_x): Do not
...
validate vector argument, this is already done elsewhere.
2004-11-02 19:36:50 +00:00
Marius Vollmer
90d4368c88
(coerce_to_uvec, scm_any_to_u8vector, etc): New.
...
(scm_uniform_element_size, scm_uniform_vector_length): Do no longer
handle old-style uniform vectors.
2004-11-02 19:34:30 +00:00
Marius Vollmer
f738b51d25
*** empty log message ***
2004-11-02 15:59:47 +00:00
Marius Vollmer
c35092e670
(scm_lreadr): Bugfix: include the last bit in the bit vector.
2004-11-02 15:53:53 +00:00