1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-05 15:10:27 +02:00
Commit graph

8347 commits

Author SHA1 Message Date
Mikael Djurfeldt
9cd4dfbb06 * ports.h: Renamed scm_lseek () --> scm_seek (). 1999-08-17 18:58:46 +00:00
Mikael Djurfeldt
cce0d8d0a0 *** empty log message *** 1999-08-17 08:48:38 +00:00
Mikael Djurfeldt
92e5aa0e92 * backtrace.c, debug.c, eval.c, eval.h, gsubr.c, procprop.h,
read.c, srcprop.c, srcprop.h (scm_i_filename, scm_i_line,
scm_i_column, scm_i_copy, scm_i_name, scm_i_lambda, scm_i_source,
scm_i_more, scm_i_procname, scm_i_dot, scm_i_arrow, scm_i_else,
scm_i_unquote, scm_i_uq_splicing, scm_i_apply, scm_i_enter_frame,
scm_i_apply_frame, scm_i_exit_frame, scm_i_trace, scm_i_quote,
scm_i_begin, scm_i_if, scm_i_and, scm_i_or, scm_i_case,
scm_i_cond, scm_i_letstar, scm_i_do, scm_i_quasiquote,
scm_i_define, scm_i_letrec, scm_i_let, scm_i_atapply,
scm_i_atcall_cc, scm_i_breakpoint): Renamed: Consequently use
scm_sym_ as prefix for symbols.
1999-08-17 08:47:47 +00:00
Mikael Djurfeldt
55b0ed6971 * backtrace.c, debug.c, eval.c, eval.h, gsubr.c, read.c,
srcprop.c, srcprop.h (scm_i_filename, scm_i_line, scm_i_column,
scm_i_copy, scm_i_name, scm_i_lambda, scm_i_source, scm_i_more,
scm_i_procname, scm_i_dot, scm_i_arrow, scm_i_else, scm_i_unquote,
scm_i_uq_splicing, scm_i_apply, scm_i_enter_frame,
scm_i_apply_frame, scm_i_exit_frame, scm_i_trace, scm_i_quote,
scm_i_begin, scm_i_if, scm_i_and, scm_i_or, scm_i_case,
scm_i_cond, scm_i_letstar, scm_i_do, scm_i_quasiquote,
scm_i_define, scm_i_letrec, scm_i_let, scm_i_atapply,
scm_i_atcall_cc, scm_i_breakpoint): Renamed: Consequently use
scm_sym_ as prefix for symbols.
1999-08-17 08:46:51 +00:00
Mikael Djurfeldt
2f0d1375c1 * backtrace.c, debug.c, eval.c, eval.h, gsubr.c, read.c,
srcprop.c, srcprop.h (scm_i_filename, scm_i_line, scm_i_column,
scm_i_copy, scm_i_name, scm_i_lambda, scm_i_source, scm_i_more,
scm_i_procname, scm_i_dot, scm_i_arrow, scm_i_else, scm_i_unquote,
scm_i_uq_splicing, scm_i_apply, scm_i_enter_frame,
scm_i_apply_frame, scm_i_exit_frame, scm_i_trace, scm_i_quote,
scm_i_begin, scm_i_if, scm_i_and, scm_i_or, scm_i_case,
scm_i_cond, scm_i_letstar, scm_i_do, scm_i_quasiquote,
scm_i_define, scm_i_letrec, scm_i_let, scm_i_atapply,
scm_i_atcall_cc, scm_i_breakpoint): Renamed: Consequently use
scm_sym_ as prefix for symbols.

* eval.c, eval.h (scm_sym_begin, scm_sym_if, scm_sym_and,
scm_sym_case, scm_sym_cond, scm_sym_letstar, scm_sym_do,
scm_sym_define, scm_sym_letrec, scm_sym_atapply,
scm_sym_atcall_cc): Made global.
1999-08-17 08:46:37 +00:00
Mikael Djurfeldt
63c51b9a54 * backtrace.c, debug.c, eval.c, eval.h, gsubr.c, read.c,
srcprop.c, srcprop.h (scm_i_filename, scm_i_line, scm_i_column,
scm_i_copy, scm_i_name, scm_i_lambda, scm_i_source, scm_i_more,
scm_i_procname, scm_i_dot, scm_i_arrow, scm_i_else, scm_i_unquote,
scm_i_uq_splicing, scm_i_apply, scm_i_enter_frame,
scm_i_apply_frame, scm_i_exit_frame, scm_i_trace, scm_i_quote,
scm_i_begin, scm_i_if, scm_i_and, scm_i_or, scm_i_case,
scm_i_cond, scm_i_letstar, scm_i_do, scm_i_quasiquote,
scm_i_define, scm_i_letrec, scm_i_let, scm_i_atapply,
scm_i_atcall_cc, scm_i_breakpoint): Renamed: Consequently use
scm_sym_ as prefix for symbols.

* debug.c (scm_i_proc, scm_i_args, scm_i_eval_args): Removed.
1999-08-17 08:46:04 +00:00
Mikael Djurfeldt
7f2d92b126 * backtrace.c, backtrace.h, debug.c, debug.h, eval.c, eval.h,
gsubr.c, gsubr.h, read.c, read.h, srcprop.c, srcprop.h
(scm_i_filename, scm_i_line, scm_i_column, scm_i_copy, scm_i_name,
scm_i_lambda, scm_i_source, scm_i_more, scm_i_procname, scm_i_dot,
scm_i_arrow, scm_i_else, scm_i_unquote, scm_i_uq_splicing,
scm_i_apply, scm_i_enter_frame, scm_i_apply_frame,
scm_i_exit_frame, scm_i_trace, scm_i_quote, scm_i_begin, scm_i_if,
scm_i_and, scm_i_or, scm_i_case, scm_i_cond, scm_i_letstar,
scm_i_do, scm_i_quasiquote, scm_i_define, scm_i_letrec, scm_i_let,
scm_i_atapply, scm_i_atcall_cc, scm_i_breakpoint): Renamed:
Consequently use scm_sym_ as prefix for symbols.
1999-08-17 08:44:38 +00:00
Mikael Djurfeldt
6ded69e17a * eval.c (scm_sym_args): Made global. 1999-08-16 15:20:44 +00:00
Mikael Djurfeldt
8b7840b975 *** empty log message *** 1999-08-16 15:19:46 +00:00
Mikael Djurfeldt
c1a6fd8f8a * objects.c (scm_set_object_procedure_x): Disallow setting of
procedures for pure generic functions.
1999-08-16 15:18:54 +00:00
Gary Houston
c94577b445 1999-08-12 Gary Houston <ghouston@easynet.co.uk>
* ports.c (scm_seek): one more: was scm_lseek.  Also changed the
	Scheme name from lseek to seek, but lseek was added recently so
	it shouldn't be a big problem.
	* ports.c, gdbint.c, ioext.c: changed callers.
1999-08-12 18:58:55 +00:00
Gary Houston
affc96b533 1999-08-11 Gary Houston <ghouston@easynet.co.uk>
* fports.c (fport_input_waiting): if select is used, return 1
	instead of whatever FD_ISSET expands to.  maybe it will be useful
	to interpret the value from the input_waiting ptob procedure as a
	lower bound on the number of bytes available.

	* Mikael asked for a few names to be changed...

	* ports.c (scm_make_port_type): take the write procedure as the
	second argument instead of the flush procedure.
	* ports.h (scm_ptob_descriptor): rename the ptob procedures:
	fflush -> flush,  read_flush -> end_input,  fclose -> close,
	fill_buffer -> fill_input,  ftruncate -> truncate,
	input_waiting_p -> input_waiting.

	* ports.c (end_input_void_port): was read_flush_void_port.
	(scm_set_port_end_input): was scm_set_port_flush_input.
	(scm_set_port_flush): was scm_set_port_write.
	(scm_set_port_input_waiting): was scm_set_port_input_waiting_p
	(scm_end_input): was scm_read_flush.
	(scm_fill_input): was scm_fill_buffer.
	(scm_flush): was scm_fflush.
	* fports.c (fport_input_waiting): renamed from fport_input_waiting_p.
	(fport_end_input): was local_read_flush.
	(fport_flush): was local_fflush.
	(fport_close): was local_fclose.
	(fport_truncate): was local_ftruncate.
	(fport_seek): was local_seek.
	(fport_free): was local_free.
	(fport_fill_input): was fport_fill_buffer.
	* strports.c (st_end_input): was st_read_flush.
	(st_truncate): was st_ftruncate.
	* vports.c: (sf_flush): was sfflush.
	(sf_close): was sfclose.
	(sf_fill_input): was sf_fill_buffer.

	* ports.c, fports.c, strports, vports.c, ioext.c, unif.c, filesys.c:
	change callers.
1999-08-11 18:35:42 +00:00
Mikael Djurfeldt
df061ffca7 *** empty log message *** 1999-08-06 19:40:12 +00:00
Mikael Djurfeldt
a43a8375d8 * objects.h, objects.c (scm_apply_generic_env): Added (used by
apply).
(scm_operator_p): Added.
(scm_sym_atdispatch): Added.
(scm_set_object_procedure_x): Modified to handle the new style
generic functions.
(scm_object_procedures): New debugging procedure.
1999-08-06 19:39:07 +00:00
Mikael Djurfeldt
f3d2630a64 * eval.c (SCM_IM_DISPATCH): Rewrote dispatch protocol. Dispatch
forms now contain the expressions to be dispatched upon instead of
depending on a surrounding lambda or let; Generic function
dispatch has been optimized; `apply' on a generic function now
works a little bit strangely.  It uses a trick so that the type
dispatch code in SCM_CEVAL can be reused.
1999-08-06 19:37:44 +00:00
Jim Blandy
c6e23ea25f Update FSF address in copyright notices. 1999-08-06 07:26:07 +00:00
Mikael Djurfeldt
eba968840d *** empty log message *** 1999-08-05 12:08:53 +00:00
Mikael Djurfeldt
ef1ae5630a * feature.c, feature.h (scm_c_run_hook): Added. 1999-08-05 12:08:01 +00:00
Mikael Djurfeldt
524da6b99d *** empty log message *** 1999-08-04 22:55:53 +00:00
Mikael Djurfeldt
04b6c08138 * eval.c (SCM_CEVAL:SCM_IM_DISPATCH): Bugfix: Jump back to
cdrxnoap and loopnoap instead of begin and loop.
1999-08-04 22:55:08 +00:00
Gary Houston
265e6a4d28 1999-08-04 Gary Houston <ghouston@easynet.co.uk>
* ports.c (scm_putc, scm_puts),
	* unif.c (scm_uniform_array_write): use scm_lfwrite.
	* ports.c (scm_putc): change type of first argument from int to	char.
1999-08-04 18:15:31 +00:00
Mikael Djurfeldt
82cc1b112c *** empty log message *** 1999-08-04 11:29:03 +00:00
Mikael Djurfeldt
f057455746 * objects.h (SCM_CLASSF_GOOPS_VALID): Added.
(scm_si_redfined, scm_si_hashsets): Moved.
1999-08-04 11:28:20 +00:00
Mikael Djurfeldt
7151229df3 * objects.c (scm_class_of): Use the new SCM_CLASSF_GOOPS_VALID
flag which combines type and status info so that the class
redefinition protocol has zero cost during normal execution.
1999-08-04 11:28:08 +00:00
Mikael Djurfeldt
ef67c5eac1 * eval.c (SCM_CEVAL): Improvements to SCM_IM_DISPATCH and
SCM_IM_HASH_DISPATCH.
1999-08-04 11:27:44 +00:00
Gary Houston
31703ab8c6 * ports.h (scm_ptob_descriptor): include a write procedure again.
it's more efficient for unbuffered fports (e.g., sockets.)

	* ports.c (scm_puts): use ptob->write.
	* vports.c (scm_make_sfptob): set write proc in ptob.
	* strports.c (scm_make_stptob): set write proc in ptob.
	* ports.c (write_void_port): new procedure.
	* vports.c (sf_write): new procedure.
	* ports.c (scm_lfwrite): use ptob->write.
	* strports.c (st_write): new procedure.
	* fports.c (fport_write): new procedure.
	(scm_make_fptob): set write in ptob to fport_write.
	* ports.h: prototype for scm_set_port_write.
	* ports.c (scm_make_port_type): initialise ptob write procedure.
	(scm_set_port_write): new proc.
1999-08-03 21:09:49 +00:00
Jim Blandy
769f054d52 *** empty log message *** 1999-08-01 08:08:18 +00:00
Jim Blandy
ae4c401660 * ports.c (scm_char_ready_p): Don't try to find PORT's ptab entry
until we've verified that it is actually a port.  (Thanks to
Lorentey Karoly.)
1999-08-01 08:07:40 +00:00
Mikael Djurfeldt
9ffdde1c44 *** empty log message *** 1999-07-31 17:01:53 +00:00
Mikael Djurfeldt
e4ef23303f * gc.c (scm_must_malloc, scm_must_realloc): Removed unnecessary
code, particularly an unnecessary test (len != size, where len ==
size).  (Was this leftovers from debugging code, or have I missed
something profound?)
1999-07-31 17:01:06 +00:00
Mikael Djurfeldt
5678aae066 *** empty log message *** 1999-07-31 09:05:58 +00:00
Mikael Djurfeldt
a7c930f19c * numbers.c (scm_makdbl): Bugfix: Initialize imaginary part.
(Thanks to Lorentey Karoly.)
1999-07-31 09:05:02 +00:00
Mikael Djurfeldt
b94903c2c1 * hashtab.c: Bugfix: Don't declare s_hash_fold without storage
size. (Thanks to James Dean Palmer.)
1999-07-31 09:04:46 +00:00
Mikael Djurfeldt
82a48a5747 Updated copyright notice 1999-07-30 21:48:33 +00:00
Mikael Djurfeldt
6e1fd26455 *** empty log message *** 1999-07-29 23:03:16 +00:00
Mikael Djurfeldt
a1ae1799ac * struct.c (scm_print_struct): Use vtable name. 1999-07-29 23:02:26 +00:00
Mikael Djurfeldt
fe970d8448 * stacks.c (scm_init_stacks): Set name of stack type. 1999-07-29 23:02:14 +00:00
Mikael Djurfeldt
e9cd0e473e * print.c (scm_init_print): Set name of print state type. 1999-07-29 23:02:01 +00:00
Mikael Djurfeldt
3a3111a88d * eval.c (scm_m_expand_body): Use scm_cons_source. 1999-07-29 23:01:01 +00:00
Mikael Djurfeldt
cb4832aefb *** empty log message *** 1999-07-29 21:13:33 +00:00
Mikael Djurfeldt
9f8c57ec0e * gsubr.c, procprop.h (scm_i_inner_name): Removed. 1999-07-29 21:12:42 +00:00
Mikael Djurfeldt
367a06cb7d * eval.c (SCM_CEVAL): Removed old implementation of internal
define.
1999-07-29 21:12:25 +00:00
Mikael Djurfeldt
7e3a72763c * debug.c, debug.h (scm_reverse_lookup): Added.
(scm_procedure_name): Use scm_reverse_lookup to lookup the name of
internal procedure definitions; Don't use scm_i_inner_name.
1999-07-29 21:11:51 +00:00
Mikael Djurfeldt
c75512d6a7 * debug.c, debug.h (scm_reverse_lookup): Added.
(scm_procedure_name): Use scm_reverse_lookup to lookup the name of
internal procedure definitions; Don't use scm_i_inner_name.

* debug.c (scm_procedure_source): Cons SCM_IM_LAMBDA onto
procedure source before calling scm_unmemocopy instead of faking
an environment.
1999-07-29 21:11:37 +00:00
Mikael Djurfeldt
6203706f4a Removed superfluous code in scm_macroexp. 1999-07-29 19:15:08 +00:00
Mikael Djurfeldt
8dc2b4f649 *** empty log message *** 1999-07-29 19:14:08 +00:00
Mikael Djurfeldt
2a52b4295e *** empty log message *** 1999-07-29 18:15:24 +00:00
Mikael Djurfeldt
29ff38c406 * eval.c, tags.h, print.c (SCM_IM_SLOT_REF, SCM_IM_SLOT_SET_X):
New isym operations.
1999-07-29 18:13:14 +00:00
Mikael Djurfeldt
de3ca191c0 * eval.h: Added prototypes for multi language support functions. 1999-07-29 18:13:04 +00:00
Mikael Djurfeldt
26d5b9b4a6 * eval.c, tags.h, print.c (SCM_IM_SLOT_REF, SCM_IM_SLOT_SET_X):
New isym operations.

* eval.c (SCM_IM_DISPATCH, SCM_IM_HASH_DISPATCH): Don't use
improper lists in the low-level representation, since that will
cause a begin to be prepended at macro expansion.

* eval.c (scm_cons_source): Version of cons which copies source
properties from an existing cell.
(scm_m_quote, scm_m_begin, scm_m_if, scm_m_set_x, scm_m_and,
scm_m_or, scm_m_case, scm_m_cond, scm_m_lambda, scm_m_letstar,
scm_m_do, scm_m_letrec, scm_m_let, scm_copy_tree): Use
scm_cons_source.
1999-07-29 18:12:51 +00:00