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

11212 commits

Author SHA1 Message Date
Marius Vollmer
32ef775128 Added Issac Trotts. 2005-01-10 20:21:28 +00:00
Marius Vollmer
b06f099d1d *** empty log message *** 2005-01-10 20:21:19 +00:00
Marius Vollmer
1f69b36405 Fixed a typo... 2005-01-10 20:21:08 +00:00
Marius Vollmer
6be1fab900 (scm_eval): Added example to docstring. Thanks to Issac Trotts! 2005-01-10 20:20:58 +00:00
Marius Vollmer
e581845ab1 Fixed typo. 2005-01-10 20:06:35 +00:00
Marius Vollmer
1a523873c7 *** empty log message *** 2005-01-10 20:06:25 +00:00
Marius Vollmer
2042e178fc * arrays.scm, deprecated.scm (uniform-vector-fill!,
make-uniform-vector, make-uniform-array, list->uniform-vector):
Moved from arrays.scm to deprecated.scm.
* arrays.scm, boot-9.scm (array-dimensions): Moved from arrays.scm
to boo-9.scm.
* Makefile.am (ice9_sources): Removed arrays.scm.
2005-01-10 20:06:03 +00:00
Marius Vollmer
1d20a49534 Document new read/print syntax for empty arrays. 2005-01-10 19:07:24 +00:00
Marius Vollmer
5d35ad8187 *** empty log message *** 2005-01-10 19:07:02 +00:00
Marius Vollmer
2caaadd1c2 (scm_list_to_typed_array): Allow the specification of the
upper bound as well.  This is needed for empty arrays.
(l2ra): Give needed number of elements in error message.
(scm_i_print_array): Print length information for arrays that need
it.
(scm_i_read_array): Parse it.
2005-01-10 19:06:48 +00:00
Marius Vollmer
66d3378432 *** empty log message *** 2005-01-10 17:42:33 +00:00
Marius Vollmer
a725fa951c (SCM_CHARS, SCM_UCHARS, SCM_LENGTH, scm_i_object_chars,
scm_i_object_length): Brought back from the dead.
2005-01-10 17:42:23 +00:00
Marius Vollmer
3d8bccbd81 *** empty log message *** 2005-01-10 01:50:49 +00:00
Marius Vollmer
3a0cf65611 (check_args): Bugfix to change from 2005-01-02: ARGV is the vector to
check, not ARGS.
2005-01-10 01:50:29 +00:00
Marius Vollmer
74c58fce0f *** empty log message *** 2005-01-10 01:45:07 +00:00
Marius Vollmer
34ea161776 (exception:wrong-num-indices): New, use it for array-set! tests with
wrong number of indices.
2005-01-10 01:44:34 +00:00
Marius Vollmer
afaf9d0b01 Replaced single-index uses of scm_array_set_x with
scm_c_generalized_vector_set_x.
2005-01-10 01:42:29 +00:00
Marius Vollmer
112ba0ac28 (scm_make_shared_array): Use it instead of scm_aind; use handle
for oldra.
2005-01-10 01:41:35 +00:00
Kevin Ryde
d3ddc95ef1 *** empty log message *** 2005-01-10 00:32:48 +00:00
Marius Vollmer
d7d7d40166 *** empty log message *** 2005-01-10 00:20:56 +00:00
Marius Vollmer
523727193a (scm_array_rank, scm_array_dimensions,
scm_shared_array_offset, scm_shared_array_increments,
scm_array_ref, scm_array_set_x): Use scm_t_array_handle operations
to simplify code and make it more general.
(scm_shared_array_root): Work with all kinds of arrays, including
naked vectors.
(indices_to_pos): New.
2005-01-10 00:15:48 +00:00
Kevin Ryde
fa0198bfad (scm_mktime): Missing default errno=EINVAL from prev change. 2005-01-10 00:11:25 +00:00
Kevin Ryde
a236df75ae Grammatical typo. 2005-01-09 23:15:04 +00:00
Marius Vollmer
8cb01d9fbf *** empty log message *** 2005-01-09 22:38:39 +00:00
Marius Vollmer
4e8ad32394 (coerce_to_uvec, scm_c_uniform_vector_ref,
scm_c_uniform_vector_set_x): Use generic scm_array_handle_ref/set
instead of uvec_fast_ref/set since scm_array_handle_ref should be
faster now.
2005-01-09 22:37:50 +00:00
Kevin Ryde
4475d3febd *** empty log message *** 2005-01-09 22:31:53 +00:00
Kevin Ryde
2c4cdcb06c (scm_mkstemp): Update docstring from manual. 2005-01-09 22:23:14 +00:00
Kevin Ryde
7e24129104 *** empty log message *** 2005-01-09 22:21:08 +00:00
Kevin Ryde
7c2e18cd7a Various index entries.
(SRFI-19 Introduction): Note MJD basis is 2400000.5.
(SRFI-19 Date): In date-second, clarify leap second usage.  In
date-year, note negatives for B.C. and no zero.  In current-date,
don't let it read like it's just UTC which is returned.
2005-01-09 22:14:39 +00:00
Marius Vollmer
b89ecc6fb3 *** empty log message *** 2005-01-09 22:12:26 +00:00
Marius Vollmer
4ea4bc4c40 * srfi-4.h, srfi-4.c, srfi-4.i.c (scm_i_uniform_vector_ref_proc,
scm_i_uniform_vector_set_proc): New.
(u8ref, u8set, s8ref, s8set, etc): New.
(uvec_reffers, uvec_setters): New.
(uvec_to_list): Use generic scm_array_handle_ref instead of
uvec_fast_ref since scm_array_handle_ref should be faster now.
More changes like this are upcoming.
2005-01-09 22:06:56 +00:00
Marius Vollmer
9598a4060a * unif.h, unif.c, inline.h (scm_i_t_array_ref, scm_i_t_array_set):
New.
(scm_t_array_handle): Added ref, set, elements and
writable_elements for fast inline operation of
scm_array_handle_ref and scm_array_handle_set.
(scm_array_handle_ref, scm_array_handle_set): Moved to inline.h
and replaced with inline code that simply calls the ref/set
members of the handle.
(enclosed_ref, vector_ref, string_ref, bitvector_ref, memoize_ref,
enclosed_set, vector_set, string_set, bitvector_set, memoize_set):
New.
(scm_array_handle_get): Initialize ref/set fields to memoize_ref
and memoize_set.
(scm_bitvector_fill_x, scm_bitvector_to_list, scm_bit_count,
scm_bit_position, scm_bit_set_star_x, scm_bit_count_star,
scm_bit_invert_x): Correctly multiply index with increment in the
general case.

* unif.c (scm_array_handle_set): Correctly execute only one
alternative.  D'Oh!
(scm_list_to_typed_array, l2ra): Use scm_t_array_handle to fill
the array; this covers all cases with much simpler code.
2005-01-09 22:02:40 +00:00
Marius Vollmer
8c8491f56c *** empty log message *** 2005-01-09 17:47:36 +00:00
Marius Vollmer
5e7b8a3d71 Talk a bit out zero-rank and zero-size arrays. 2005-01-09 17:46:53 +00:00
Marius Vollmer
bcbbea0e2f (scm_array_handle_set): Correctly execute only one
alternative.  D'Oh!
(scm_list_to_typed_array, l2ra): Use scm_t_array_handle to fill
the array; this covers all cases with much simpler code.
2005-01-09 17:45:59 +00:00
Marius Vollmer
7c2ef9a87b (scm_uniform_element_size): Deprecated implementation
as well.
2005-01-09 17:43:14 +00:00
Marius Vollmer
cd5d55c76c *** empty log message *** 2005-01-09 15:45:33 +00:00
Marius Vollmer
5e320e5926 (uvec_type): New.
(uvec_to_list, uvec_ref, uvec_set_x, scm_c_uniform_vector_ref,
scm_c_uniform_vector_x): Use it to get concrete type.
2005-01-09 15:45:21 +00:00
Marius Vollmer
5f37cb6331 (ra2l): Handle zero rank arrays.
(scm_i_print_array): Print zero rank arrays specially.
(tag_to_type): Return #t for an empty tag, not the empty symbol.
(scm_i_read_array): Allow zero rank arrays.
2005-01-09 15:41:22 +00:00
Marius Vollmer
4cf8074fd1 (scm_t_array_dim): Changed type of members to ssize_t, to
fit the docs.
2005-01-09 15:41:14 +00:00
Kevin Ryde
6419ad789a *** empty log message *** 2005-01-08 00:20:56 +00:00
Kevin Ryde
aca55ba9b0 Move ice-9 threads to alphabetical order. 2005-01-08 00:15:57 +00:00
Kevin Ryde
54a3c9929c (Included Guile Modules): Add expect, format, ftw,
getopt-long, history, popen, pretty-print, q, readline, receive, regex,
streams, syncase.
2005-01-08 00:15:10 +00:00
Kevin Ryde
6cb787b801 (Included Guile Modules): Remove ice-9 jacal, no such module. 2005-01-07 23:59:30 +00:00
Kevin Ryde
e376f9e515 (Included Guile Modules): Add srfi-16, srfi-19 and srfi-31. 2005-01-07 23:58:41 +00:00
Kevin Ryde
950f97acf2 (Creating Guile Modules): Expand define-modules
#:autoload, clarify that it's a list of symbols.
2005-01-07 23:53:29 +00:00
Kevin Ryde
83c3d7552f Add a copyright year. 2005-01-07 23:48:54 +00:00
Kevin Ryde
f3dfb8acf8 Various further index entries. 2005-01-07 23:48:25 +00:00
Kevin Ryde
24ec486cf7 (File System): In mkstemp!, note 0600 creation mode. 2005-01-07 23:29:33 +00:00
Marius Vollmer
3a40d5e117 *** empty log message *** 2005-01-07 16:11:07 +00:00