1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-03 05:20:16 +02:00
Commit graph

4353 commits

Author SHA1 Message Date
Kevin Ryde
344a212fd1 *** empty log message *** 2004-02-15 00:37:52 +00:00
Mikael Djurfeldt
711a9fd7ee * unif.c (scm_make_uve): Removed local variable and simplified
code in order to avoid compiler used uninitialized warnings.

* hashtab.c, hashtab.h (scm_hash_map_to_list): Renamed from
scm_hash_map.
(scm_hash_fold): Use scm_call_3 directly in the call to
scm_internal_hash_fold instead of going via fold_proc (which is
now removed).
(scm_hash_for_each): Use a trampoline +
scm_internal_hash_for_each_handle.
(scm_internal_hash_for_each_handle, scm_hash_for_each_handle): New
functions.
2004-02-13 23:15:37 +00:00
Kevin Ryde
a150979dab (scm_port_line): In docstring, note first line is 0.
(scm_set_port_line_x): In docstring, note first line is 0.
(scm_port_column): In docstring, there's no default to current input
port, and remove shared port-line @defun.
(scm_set_port_column_x): In docstring, there's no default to current
input port, note first column is 0, remove shared set-port-line!
@defun.
2004-02-12 00:45:36 +00:00
Kevin Ryde
88531a74f3 *** empty log message *** 2004-02-11 23:46:30 +00:00
Kevin Ryde
3da7f6b233 *** empty log message *** 2004-02-11 23:33:46 +00:00
Kevin Ryde
7c183c95a4 (scm_make_uve, scm_array_p): Allow fraction 1/3 as prototype
for dvect.
(scm_array_p): Add missing "break"s in switch, fix llvect test look
for "l" not "s", fix dvect to be false for singp(prot) since such a
value is for fvect.
(scm_array_prototype): Return 1/3 for dvect, rather than 0.33..33.
2004-02-11 23:20:26 +00:00
Kevin Ryde
ac3c6ad6cf (scm_array_fill_x): For fvect and dvect, use scm_num2dbl to
convert args the same way that array-set! does.
2004-02-11 23:16:53 +00:00
Neil Jerram
cd21f5eb17 * read.c (scm_read_opts): Change `escaped-parens' to
`elisp-strings'.
2004-02-10 19:44:10 +00:00
Neil Jerram
16353acc6f * read.c (scm_read_opts): New opts `elisp-vectors' and
`escaped-parens'.
	(s_vector): New.
	(scm_lreadr): Use scm_lreadparen1 instead of scm_lreadparen.  Make
	handling of elisp vector syntax dependent on SCM_ENABLE_ELISP and
	`elisp-vectors' option instead of SCM_ELISP_READ_EXTENSIONS.
	Allow "\(" and "\)" in strings when SCM_ENABLE_ELISP defined and
	`escaped-parens' option set.
	(scm_read_token): If elisp vector syntax active, disallow [ and ]
	in tokens.
	(scm_lreadparen): Rewrite as interface to scm_lreadparen1.
	(scm_lreadparen1): New.

	* read.h: Remove conditionally compiled last arg to
	scm_lreadparen.
	(SCM_ELISP_VECTORS_P, SCM_ESCAPED_PARENS_P): New.
2004-02-08 19:14:18 +00:00
Han-Wen Nienhuys
f62b9dff21 (m_expand_body): remove stray variable new_body. 2004-01-22 23:14:09 +00:00
Marius Vollmer
ef5b6b61d0 *** empty log message *** 2004-01-22 22:43:01 +00:00
Marius Vollmer
9d4bf6d39a (m_expand_body): Rewrite the expression in place (by overwriting
FORMS) also when a letrec is constructed, not only when no definitions
are found.  Do not return rewritten expression to emphasize the
in-place rewriting.  Changed all users.
2004-01-22 22:42:29 +00:00
Han-Wen Nienhuys
7eec4c37c7 * gc.c: add protected_object_count, a number that is dumped from
gc_stats()
2004-01-21 00:06:11 +00:00
Marius Vollmer
25ffbdacbd *** empty log message *** 2004-01-11 00:59:04 +00:00
Marius Vollmer
16c5cac25a (scm_frame_unwind, scm_frame_unwind_handler): Renamed and changed all
uses.  (scm_frame_rewind, scm_frame_rewind_handler): Likewise.
2004-01-11 00:51:19 +00:00
Marius Vollmer
327967ef26 (scm_print_symbol_name): Handle #{`foo}#, #{,foo}#, #{.}#, and all
numeric strings specially.  Thanks to Paul Jarc!
2004-01-11 00:40:54 +00:00
Marius Vollmer
d9623da1f2 Instead of the non-portable mktemp, use mkdir to create a unique
temporary directory that we can safely use.  Thanks to Stefan
Nordhausen!
2004-01-10 23:30:23 +00:00
Kevin Ryde
08568c953b *** empty log message *** 2004-01-10 23:20:10 +00:00
Kevin Ryde
88ecf5cbd4 (scm_bit_count, scm_bit_position, s_scm_bit_set_star_x,
s_scm_bit_count_star, s_scm_bit_invert_x): Clarify docstrings, as per
changes made to scheme-compound.texi.
2004-01-10 23:18:48 +00:00
Marius Vollmer
5565749c2e *** empty log message *** 2004-01-10 21:22:28 +00:00
Marius Vollmer
27fca65629 Use mktemp to create a truely unique temporary file name. Thanks to
Stefan Nordhausen!
2004-01-10 21:20:55 +00:00
Marius Vollmer
7ebccde82e *** empty log message *** 2004-01-07 20:21:38 +00:00
Marius Vollmer
14578fa4ea * dynwind.h, dynwind.c (scm_i_dowinds): Removed 'explicit'
argument since it is always zero now.  Changed all callers.
Removed code for handling fluids.
2004-01-07 20:21:30 +00:00
Marius Vollmer
96e3b2f808 *** empty log message *** 2004-01-07 19:51:18 +00:00
Marius Vollmer
540cc7abdc * dynwind.c (scm_i_dowinds): Removed code for handling fluids. 2004-01-07 19:50:28 +00:00
Marius Vollmer
bebd3fbadd * fluids.c (scm_c_with_fluids): Use frames instead of adding to
the wind chain explicitely.  Use scm_c_with_fluid for the common
case of only one fluid.
(scm_with_fluid): New.
(scm_c_with_fluid): Use frames instead of scm_c_with_fluids.

* fluids.h, fluids.c (scm_frame_fluid): New.
(scm_with_fluid): New.
(scm_i_swap_fluids, scm_i_swap_fluids_reverse): Removed.
2004-01-07 19:47:18 +00:00
Marius Vollmer
fc6bb2831d *** empty log message *** 2004-01-07 18:18:09 +00:00
Marius Vollmer
ef20bf705f (scm_frame_fluid): New. 2004-01-07 18:08:52 +00:00
Marius Vollmer
07add3457b Did the follwing renamings:
scm_with_current_input_port -> scm_frame_current_input_port,
scm_with_current_output_port -> scm_frame_current_output_port,
scm_with_current_error_port -> scm_frame_current_error_port.
Changed all uses.
2004-01-07 18:03:46 +00:00
Marius Vollmer
0888de4fd1 * dynwind.c (scm_frame_end): Do not use scm_i_dowinds. Instead, do
the unwinding directly.  It is simple enough.

* dynwind.h, dynwind.c: Did the following renamings:
scm_begin_frame -> scm_frame_begin,
scm_end_frame -> scm_frame_end,
scm_on_unwind -> scm_frame_unwind,
scm_on_rewind -> scm_frame_rewind,
scm_on_unwind_with_scm -> scm_frame_unwind_with_scm,
scm_on_rewind_with_scm -> scm_frame_rewind_with_scm.
Changed all uses.
2004-01-07 18:03:33 +00:00
Marius Vollmer
dfe610a085 Did the follwing renamings: scm_with_blocked_asyncs ->
scm_frame_block_asyncs, scm_with_unblocked_asyncs ->
scm_frame_unblock_asyncs.  Changed all uses.
2004-01-07 18:03:18 +00:00
Kevin Ryde
ba40113e70 *** empty log message *** 2004-01-06 23:45:42 +00:00
Kevin Ryde
be24d06003 (SCM_MUTEX_MAXSIZE): Increase to 12*sizeof(long),
for the benefit of powerpc-apple-darwin5.5.  Reported by Richard Todd.
2004-01-06 23:40:08 +00:00
Kevin Ryde
298ab99633 *** empty log message *** 2004-01-06 22:15:55 +00:00
Kevin Ryde
18e2aba379 Add copyright years. 2004-01-06 22:14:44 +00:00
Kevin Ryde
1382414987 (scm_aind): Test SCM_CONSP rather than !SCM_NULLP while
traversing the args list, fixes segv if an improper list is given.
Reported by Rouben Rostamian.
2004-01-06 22:13:08 +00:00
Kevin Ryde
238ebcef24 (s_bignum): Remove, not used since gmp bignums.
Reported by Richard Todd.
2004-01-06 21:55:29 +00:00
Marius Vollmer
aacff585bc *** empty log message *** 2004-01-06 18:17:30 +00:00
Marius Vollmer
9320d21970 dynwind.h (SCM_F_WIND_EXPLICITELY, SCM_F_WIND_EXPLICITLY): It's
"explicitly" not "explicitely", damn.  Changed all uses.
2004-01-06 18:11:55 +00:00
Marius Vollmer
b42170a484 (swap_ports, scm_with_current_foo_port): Do not allocate swap_data on
stack, use a 'malloc obj'.
2004-01-06 18:09:42 +00:00
Marius Vollmer
a52dbe0177 (scm_make_initial_fluids, scm_copy_fluids, scm_swap_fluids,
scm_swap_fluids_reverse): Renamed to scm_i_... since they are
internal.  Changed all uses.
2004-01-06 18:08:31 +00:00
Marius Vollmer
a520e4f0d0 (frame_print): Removed, use the default printer. (WINDER_F_MARK,
WINDER_MARK_P, winder_mark): New.  (scm_on_unwind_with_scm,
scm_on_rewind_with_scm): New. Use above to protect SCM values.
2004-01-06 18:04:47 +00:00
Marius Vollmer
62f3c0957e (SCM_F_WIND_EXPLICITELY, SCM_F_WIND_EXPLICITLY): It's "explicitly" not
"explicitely", damn.  Changed all uses.
2004-01-06 17:57:41 +00:00
Marius Vollmer
49c00ecc7b *** empty log message *** 2004-01-04 23:45:38 +00:00
Marius Vollmer
185e369a7f (scm_with_current_input_port, scm_with_current_output_port,
scm_with_current_error_port): New.
2004-01-04 23:40:14 +00:00
Marius Vollmer
b57a0953fe (scm_with_blocked_asyncs, scm_with_unblocked_asyncs): New. 2004-01-04 23:36:49 +00:00
Kevin Ryde
e049920715 *** empty log message *** 2004-01-03 22:34:05 +00:00
Kevin Ryde
f40771d883 (scm_current_time, scm_gettimeofday): Add a comment about
setzone/restorezone protection for DOS.
2004-01-03 22:25:24 +00:00
Marius Vollmer
dab514a843 *** empty log message *** 2004-01-03 21:56:35 +00:00
Marius Vollmer
d3c6aef934 (copy_stack): New, do only the stack copying
part of copy_stack_and_call.
(copy_stack_and_call): Copy the stack after unwinding and before
rewinding.
(scm_dynthrow): Do not call scm_dowinds, this is now done by
copy_stack_and_call.
2004-01-03 21:52:34 +00:00