bpt/guile.git
27 years ago* root.h (scm_root, scm_set_root): Decouple thread support details
Mikael Djurfeldt [Thu, 3 Oct 1996 11:37:51 +0000 (11:37 +0000)]
* root.h (scm_root, scm_set_root): Decouple thread support details
by introducing the selector SCM_THREAD_LOCAL_DATA and the mutator
SCM_SET_THREAD_LOCAL_DATA.

27 years ago* print.c (scm_iprlist): Bugfix: Added SCM_ECONSP tests in hare
Mikael Djurfeldt [Thu, 3 Oct 1996 11:37:38 +0000 (11:37 +0000)]
* print.c (scm_iprlist): Bugfix: Added SCM_ECONSP tests in hare
and tortoise scanning loop.

27 years ago*** empty log message ***
Jim Blandy [Thu, 3 Oct 1996 05:50:40 +0000 (05:50 +0000)]
*** empty log message ***

27 years ago* Makefile.in: Rebuild dependencies.
Jim Blandy [Thu, 3 Oct 1996 05:50:25 +0000 (05:50 +0000)]
* Makefile.in: Rebuild dependencies.

27 years ago* libguile.h: #include "libguile/print.h" before "smob.h", since
Jim Blandy [Thu, 3 Oct 1996 05:48:13 +0000 (05:48 +0000)]
* libguile.h: #include "libguile/print.h" before "smob.h", since
the latter uses the print_state structure.

27 years ago* boot-9.scm (make-record-type, record-constructor): Don't assume
Jim Blandy [Thu, 3 Oct 1996 05:47:12 +0000 (05:47 +0000)]
* boot-9.scm (make-record-type, record-constructor): Don't assume
the empty list is false when parsing the argument list.

27 years ago* _scm.h: #include "print.h" here, since it seems to be used just
Jim Blandy [Thu, 3 Oct 1996 05:44:52 +0000 (05:44 +0000)]
* _scm.h: #include "print.h" here, since it seems to be used just
about everywhere.
* eval.c, gdbint.c, genio.h, numbers.h, smob.h, srcprop.c,
strports.c, unif.h: Don't #include "print.h".

27 years ago* throw.c (scm_ithrow): Use the correct variable when checking to
Jim Blandy [Thu, 3 Oct 1996 05:28:52 +0000 (05:28 +0000)]
* throw.c (scm_ithrow): Use the correct variable when checking to
see if a given element of scm_dynwinds is a valid catch.

* throw.c (scm_ithrow): If scm_dynwinds has invalid list
structure, abort; don't just silently ignore the garbage.

27 years ago* symbols.c (scm_intern_obarray_soft): Initialize the new symbol's
Jim Blandy [Thu, 3 Oct 1996 05:21:21 +0000 (05:21 +0000)]
* symbols.c (scm_intern_obarray_soft): Initialize the new symbol's
PROPS slot to '(), not #f; it's an empty alist.

27 years ago* numbers.c (scm_istr2int): If the number is short (as most
Jim Blandy [Thu, 3 Oct 1996 05:18:47 +0000 (05:18 +0000)]
* numbers.c (scm_istr2int): If the number is short (as most
numbers are), just call scm_small_istr2int to deal with it.
(scm_small_istr2int): New function, created by un-#ifdefing the
non-bignum version of scm_istr2int and renaming it.

27 years ago* list.c, list.h: Use SCM_P instead of CPP hair. Doc fixes.
Jim Blandy [Thu, 3 Oct 1996 05:17:17 +0000 (05:17 +0000)]
* list.c, list.h: Use SCM_P instead of CPP hair.  Doc fixes.

* list.c (scm_member, scm_memv, scm_memq): Return #f if a matching
element is not found, as per R4RS.

27 years ago* aclocal.m4 (GUILE_STRUCT_UTIMBUF): Use AC_CACHE_CHECK instead of
Jim Blandy [Thu, 3 Oct 1996 05:04:37 +0000 (05:04 +0000)]
* aclocal.m4 (GUILE_STRUCT_UTIMBUF): Use AC_CACHE_CHECK instead of
AC_CACHE_VAL; #define UTIMBUF_NEEDS_POSIX outside AC_CACHE_VAL, so
it gets done whether or not the cache variable has a value.

27 years agoDistinguish #f and ().
Jim Blandy [Thu, 3 Oct 1996 05:02:36 +0000 (05:02 +0000)]
Distinguish #f and ().
* __scm.h: #undef SICP.
* pairs.h (SCM_EOL): Delete this definition, equating it with
SCM_BOOL_F.
* tags.h (SCM_EOL): Give it a new definition here; I think I found
the value it used to have.  Doc fixes, too.

27 years ago*** empty log message ***
Jim Blandy [Wed, 2 Oct 1996 05:55:50 +0000 (05:55 +0000)]
*** empty log message ***

27 years agoNew file: From the Cygnus r0.3-release.
Mikael Djurfeldt [Tue, 1 Oct 1996 03:34:42 +0000 (03:34 +0000)]
New file: From the Cygnus r0.3-release.

27 years agoNew files: From the Cygnus r0.3 release with some modification.
Mikael Djurfeldt [Tue, 1 Oct 1996 03:29:52 +0000 (03:29 +0000)]
New files: From the Cygnus r0.3 release with some modification.

27 years agoNew files: From the Cygnus r0.3 release.
Mikael Djurfeldt [Tue, 1 Oct 1996 03:27:35 +0000 (03:27 +0000)]
New files: From the Cygnus r0.3 release.

27 years ago*** empty log message ***
Mikael Djurfeldt [Tue, 1 Oct 1996 03:22:15 +0000 (03:22 +0000)]
*** empty log message ***

27 years ago* feature.h (scm_loc_features): Removed external declaration.
Mikael Djurfeldt [Tue, 1 Oct 1996 03:21:12 +0000 (03:21 +0000)]
* feature.h (scm_loc_features): Removed external declaration.
(Bug fix suggested by Petr Adamek <adamek@mit.edu>.)

27 years ago*** empty log message ***
Mikael Djurfeldt [Tue, 1 Oct 1996 03:20:18 +0000 (03:20 +0000)]
*** empty log message ***

27 years ago* root.c: Added #include "genio.h", #include "smob.h", #include
Mikael Djurfeldt [Tue, 1 Oct 1996 03:19:58 +0000 (03:19 +0000)]
* root.c: Added #include "genio.h", #include "smob.h", #include
"pairs.h", #include "throw.h", #include "dynwind.h", #include
"eval.h"
(scm_init_root): Added #include "root.x".

27 years ago* throw.c: Added #include "stackchk.h"
Mikael Djurfeldt [Tue, 1 Oct 1996 03:19:48 +0000 (03:19 +0000)]
* throw.c: Added #include "stackchk.h"
(scm_catch): Changed SCM_DEFER_INTS --> SCM_REDEFER_INTS and
SCM_ALLOW_INTS --> SCM_REALLOW_INTS.  This is so that scm_catch
can be used in scm_call_with_new_root; Added reenabling of stack
checking when catching a throw.

27 years ago* scmsigs.c: Define `signal' to be `pthread_signal' if using
Mikael Djurfeldt [Tue, 1 Oct 1996 03:19:39 +0000 (03:19 +0000)]
* scmsigs.c: Define `signal' to be `pthread_signal' if using
mit-pthreads.

27 years agoUpdated.
Mikael Djurfeldt [Tue, 1 Oct 1996 03:19:32 +0000 (03:19 +0000)]
Updated.

27 years ago* * root.c, root.h: Added root smob.
Mikael Djurfeldt [Tue, 1 Oct 1996 03:19:22 +0000 (03:19 +0000)]
* * root.c, root.h: Added root smob.
(cwdr, scm_call_with_new_root, scm_dynamic_root, scm_app_wdr): New
functions: Implements dynamic roots mostly according to spec in
SCM manual.  Main difference is that the second argument is a
throw handler rather than an error "thunk".

* root.h: Added declaration of scm_init_root.

27 years ago * gc.c (scm_igc): Added SCM_THREAD_CRITICAL_SECTION_START and
Mikael Djurfeldt [Tue, 1 Oct 1996 03:19:14 +0000 (03:19 +0000)]
* gc.c (scm_igc): Added SCM_THREAD_CRITICAL_SECTION_START and
SCM_THREAD_CRITICAL_SECTION_END.  Moved marking of root data to
root.c:mark_root.

* * root.c, root.h: Added root smob.
(cwdr, scm_call_with_new_root, scm_dynamic_root, scm_app_wdr): New
functions: Implements dynamic roots mostly according to spec in
SCM manual.  Main difference is that the second argument is a
throw handler rather than an error "thunk".

* root.c: Added #include "genio.h", #include "smob.h", #include
"pairs.h", #include "throw.h", #include "dynwind.h", #include
"eval.h"
(scm_init_root): Added #include "root.x".

27 years ago* libguile.h: Added #include "libguile/../threads/threads.h".
Mikael Djurfeldt [Tue, 1 Oct 1996 03:19:02 +0000 (03:19 +0000)]
* libguile.h: Added #include "libguile/../threads/threads.h".
(This is a kludge to get thread support working.  This should be
fixed.)

27 years ago* init.c (scm_start_stack): Call `scm_make_root' to dynamically
Mikael Djurfeldt [Tue, 1 Oct 1996 03:18:54 +0000 (03:18 +0000)]
* init.c (scm_start_stack): Call `scm_make_root' to dynamically
allocate the basic dynamic root object.
(scm_boot_guile): Added call to scm_init_root.

27 years ago* gc.c (scm_igc): Added SCM_THREAD_CRITICAL_SECTION_START and
Mikael Djurfeldt [Tue, 1 Oct 1996 03:18:43 +0000 (03:18 +0000)]
* gc.c (scm_igc): Added SCM_THREAD_CRITICAL_SECTION_START and
SCM_THREAD_CRITICAL_SECTION_END.  Moved marking of root data to
root.c:mark_root.

27 years ago* feature.c (scm_init_feature): Added threads feature (needs to be
Mikael Djurfeldt [Tue, 1 Oct 1996 03:18:32 +0000 (03:18 +0000)]
* feature.c (scm_init_feature): Added threads feature (needs to be
initialized here, since features doesn't exist when
scm_init_threads is called).

27 years ago* configure.in, acconfig.h: Added flags for thread support.
Mikael Djurfeldt [Tue, 1 Oct 1996 03:16:21 +0000 (03:16 +0000)]
* configure.in, acconfig.h: Added flags for thread support.

27 years ago* _scm.h: Added conditional #include "threads.h"
Mikael Djurfeldt [Tue, 1 Oct 1996 03:15:33 +0000 (03:15 +0000)]
* _scm.h: Added conditional #include "threads.h"

27 years ago* __scm.h (SCM_ASYNC_TICK): Added call to macro
Mikael Djurfeldt [Tue, 1 Oct 1996 03:15:04 +0000 (03:15 +0000)]
* __scm.h (SCM_ASYNC_TICK): Added call to macro
SCM_THREADS_SWITCHING_CODE.

27 years agoAdded dependency root.o: root.x.
Mikael Djurfeldt [Tue, 1 Oct 1996 03:10:11 +0000 (03:10 +0000)]
Added dependency root.o: root.x.

27 years ago*** empty log message ***
Mikael Djurfeldt [Tue, 1 Oct 1996 03:00:09 +0000 (03:00 +0000)]
*** empty log message ***

27 years ago* configure.in: Added some configuration magic from the Cygnus
Mikael Djurfeldt [Tue, 1 Oct 1996 02:58:50 +0000 (02:58 +0000)]
* configure.in: Added some configuration magic from the Cygnus
distribution.

27 years ago* configure: Updated.
Mikael Djurfeldt [Tue, 1 Oct 1996 02:58:39 +0000 (02:58 +0000)]
* configure: Updated.

27 years ago* aclocal.m4: New file. For now used for thread support
Mikael Djurfeldt [Tue, 1 Oct 1996 02:57:50 +0000 (02:57 +0000)]
* aclocal.m4: New file.  For now used for thread support
configuration.

27 years ago* strings.c, strings.h: (scm_makfrom0str, scm_makefrom0str_opt:
Gary Houston [Sat, 28 Sep 1996 19:40:54 +0000 (19:40 +0000)]
* strings.c, strings.h: (scm_makfrom0str, scm_makefrom0str_opt:
declare the char * to be const.  Avoids a warning in rgx.c.

* ports.h: spelling fix.

* filesys.c (scm_sys_stat, scm_sys,lstat): include file name in
error messages.

* load.c (scm_sys_try_load_path): throw an error if file not found
(like it says it in NEWS).

27 years ago* boot-9.scm (error): replace another throw with scm-error. Throw
Gary Houston [Sat, 28 Sep 1996 19:38:45 +0000 (19:38 +0000)]
* boot-9.scm (error): replace another throw with scm-error.  Throw
to 'misc-error instead of 'error (no need to distinguish these.)
Don't set up 'error as a key.
Set up regex-error as a key, if regex is available.
(signal-handler): use scm-error, not throw.

(%try-load, try-load-with-path, %load, load-with-path,
basic-try-load-with-path, basic-load-with-path,
try-load-module-with-path,load-module-with-path): deleted, since
they seem redundant.
(try-load): define using %try-load, not try-load-with-path.
(load): rewritten.  load tries to open the file directly and
with a .scm extension before searching the library directories
(should "." be added to %load-path?  then load could still open
directly files starting with "/").
(try-module-autoload): use load, not load-with-path.
(%load-indent): deleted, -2 was causing errors.

(%read-sharp): use port-line, not line-number.

27 years ago.
Jim Blandy [Sat, 28 Sep 1996 02:02:40 +0000 (02:02 +0000)]
.

27 years ago* throw.h, throw.c: Use SCM_P instead of #if hair.
Jim Blandy [Sat, 28 Sep 1996 00:04:22 +0000 (00:04 +0000)]
* throw.h, throw.c: Use SCM_P instead of #if hair.

27 years ago* throw.h, throw.c: Use SCM_P instead of #if hair.
Jim Blandy [Sat, 28 Sep 1996 00:01:40 +0000 (00:01 +0000)]
* throw.h, throw.c: Use SCM_P instead of #if hair.

Remove special support for uncaught throws; see throw.c for
rationale.
* throw.c (unhandled_throw): New function.
(scm_ithrow): Call unhandled_throw if we don't find a throw
target; don't mess with scm_bad_throw_vcell.
(scm_bad_throw_vcell): Variable deleted.
(scm_init_throw): Don't initialize it.

* throw.c (scm_ithrow): Don't let outer key matches shadow inner
#t catches.

27 years ago* load.c (scm_sys_try_load): don't check whether value returned
Gary Houston [Tue, 24 Sep 1996 07:21:17 +0000 (07:21 +0000)]
* load.c (scm_sys_try_load): don't check whether value returned
by scm_open_file is #f, it won't be.  Always return SCM_UNSPECIFIED.
Change the Scheme name from %try-load to primitive-load.

* error.c (scm_error): convert a NULL message to SCM_BOOL_F.
Can avoid passing a message, allowing it to be derived in the
error handler (e.g., if we want to throw to the key both from
Scheme and C).

27 years ago* boot-9.scm (%try-load): define using primitive-load. Previously
Gary Houston [Tue, 24 Sep 1996 07:19:51 +0000 (07:19 +0000)]
* boot-9.scm (%try-load): define using primitive-load.  Previously
%try-load itself was the primitive.
(load-with-path): use scm-error instead of %load-announce-lossage.
Errors are thrown to 'misc-error instead of 'could-not-load.
(%load-announce-lossage): deleted.

27 years ago*** empty log message ***
Mikael Djurfeldt [Sun, 22 Sep 1996 22:51:18 +0000 (22:51 +0000)]
*** empty log message ***

27 years ago* boot-9.scm (warn, scm-style-repl): Use C printer instead of `print'.
Mikael Djurfeldt [Sun, 22 Sep 1996 22:51:01 +0000 (22:51 +0000)]
* boot-9.scm (warn, scm-style-repl): Use C printer instead of `print'.
(make-record-type type-name fields): Temporarily remove support
for printing of records (not possible yet with C printer).

27 years ago * print.h: Modified prototypes for scm_iprlist, scm_prin1 and
Mikael Djurfeldt [Sun, 22 Sep 1996 22:47:10 +0000 (22:47 +0000)]
* print.h: Modified prototypes for scm_iprlist, scm_prin1 and
  scm_iprin1.  Removed prototype for scm_prlist.

* print.c, print.h: Closures now print like #<procedure foo (x)>.
People who whish to see the source can do `(print-enable 'source)'.
Removed #ifdef DEBUG_EXTENSIONS.

27 years ago* * print.c (scm_iprin1, scm_prin1, scm_iprlist): Circular
Mikael Djurfeldt [Sun, 22 Sep 1996 22:46:31 +0000 (22:46 +0000)]
* * print.c (scm_iprin1, scm_prin1, scm_iprlist): Circular
references now have a new appearance which is more compact and
also gives a clue about what the target of the reference is.
By setting parameters in the print state, more fancy printing can
be achieved.  This is used by the (not yet commited) backtrace
code.

* print.c: Added #include "struct.h".  Removed function
scm_prlist.

* print.c (scm_prin1): Print states are now allocated when calling
  scm_prin1 and then passed around to all printing functions as an
  argument.  A cache `print_state_pool' enables reuse of print
  states.
(scm_make_print_state): New function.
(scm_iprin1): Adaption to print states.
(scm_iprlist): An initial "hare and tortoise" scan brings down
time complexity to O (depth * N).  (Better time complexity will be
achieved when the printing code is completely rewritten.)

* print.c, print.h: Closures now print like #<procedure foo (x)>.
People who whish to see the source can do `(print-enable 'source)'.
Removed #ifdef DEBUG_EXTENSIONS.

27 years ago* arbiters.c (prinarb),
Mikael Djurfeldt [Sun, 22 Sep 1996 22:41:40 +0000 (22:41 +0000)]
* arbiters.c (prinarb),
async.c (print_async),
debug.c (prindebugobj, prinmemoized),
eval.c (prinprom, prinmacro),
filesys.c (scm_fd_print, scm_dir_print),
kw.c (print_kw),
mallocs.c (prinmalloc),
numbers.c, numbers.h (scm_floprint, scm_bigprint),
smob.h (scm_smobfuns),
srcprop.c (prinsrcprops),
throw.c (prinjb),
unif.c, unif.h (scm_raprin1, rapr1),
variable.c (prin_var): Changed argument `int writing' to
`scm_print_state *pstate'.

27 years ago* eval.c, numbers.h, unif.h, smob.h, srcprop.c: Added #include
Mikael Djurfeldt [Sun, 22 Sep 1996 22:41:10 +0000 (22:41 +0000)]
* eval.c, numbers.h, unif.h, smob.h, srcprop.c: Added #include
"print.h"

* arbiters.c (prinarb),
async.c (print_async),
debug.c (prindebugobj, prinmemoized),
eval.c (prinprom, prinmacro),
filesys.c (scm_fd_print, scm_dir_print),
kw.c (print_kw),
mallocs.c (prinmalloc),
numbers.c, numbers.h (scm_floprint, scm_bigprint),
smob.h (scm_smobfuns),
srcprop.c (prinsrcprops),
throw.c (prinjb),
unif.c, unif.h (scm_raprin1, rapr1),
variable.c (prin_var): Changed argument `int writing' to
`scm_print_state *pstate'.

27 years ago* struct.c (scm_make_struct_layout, init_struct, scm_struct_ref,
Mikael Djurfeldt [Sun, 22 Sep 1996 22:38:56 +0000 (22:38 +0000)]
* struct.c (scm_make_struct_layout, init_struct, scm_struct_ref,
scm_struct_set_x), struct.h, gc.c (scm_gc_mark): Completed Tom
Lord's implementation of structs, allowing for tail arrays as
described in the manual. Also fixed some bugs. (Both the interface
and the implementation should be improved.)

27 years ago* init.c (scm_boot_guile): Moved scm_init_struct upwards so
Mikael Djurfeldt [Sun, 22 Sep 1996 22:33:44 +0000 (22:33 +0000)]
* init.c (scm_boot_guile): Moved scm_init_struct upwards so
that it will be called before scm_init_print.

27 years ago* struct.c (scm_make_struct_layout, init_struct, scm_struct_ref,
Mikael Djurfeldt [Sun, 22 Sep 1996 22:33:09 +0000 (22:33 +0000)]
* struct.c (scm_make_struct_layout, init_struct, scm_struct_ref,
scm_struct_set_x), struct.h, gc.c (scm_gc_mark): Completed Tom
Lord's implementation of structs, allowing for tail arrays as
described in the manual. Also fixed some bugs. (Both the interface
and the implementation should be improved.)

27 years ago*** empty log message ***
Mikael Djurfeldt [Sun, 22 Sep 1996 22:28:11 +0000 (22:28 +0000)]
*** empty log message ***

27 years ago* boot-9.scm (file-exists?, file-is-directory): catch only
Gary Houston [Fri, 20 Sep 1996 09:02:14 +0000 (09:02 +0000)]
* boot-9.scm (file-exists?, file-is-directory): catch only
system-error, not every kind of error.
(scm-error): new procedure.

27 years ago.
Jim Blandy [Thu, 19 Sep 1996 21:03:43 +0000 (21:03 +0000)]
.

27 years ago.
Jim Blandy [Thu, 19 Sep 1996 20:35:22 +0000 (20:35 +0000)]
.

27 years ago*** empty log message ***
Jim Blandy [Thu, 19 Sep 1996 20:32:33 +0000 (20:32 +0000)]
*** empty log message ***

27 years ago* read.c (scm_init_read): Removed #ifdef READER_EXTENSIONS
Mikael Djurfeldt [Thu, 19 Sep 1996 14:17:27 +0000 (14:17 +0000)]
* read.c (scm_init_read): Removed #ifdef READER_EXTENSIONS

27 years ago* print.c, print.h: Closures now print like #<procedure foo (x)>.
Mikael Djurfeldt [Thu, 19 Sep 1996 14:17:01 +0000 (14:17 +0000)]
* print.c, print.h: Closures now print like #<procedure foo (x)>.
People who whish to see the source can do `(print-enable 'source)'.
Removed #ifdef DEBUG_EXTENSIONS.

27 years ago*** empty log message ***
Mikael Djurfeldt [Thu, 19 Sep 1996 14:16:25 +0000 (14:16 +0000)]
*** empty log message ***

27 years ago * filesys.c (scsm_sys_stat): don't SIGSEGV if argument is an
Gary Houston [Thu, 19 Sep 1996 09:08:07 +0000 (09:08 +0000)]
* filesys.c (scsm_sys_stat): don't SIGSEGV if argument is an
integer (assuming for now accepting an integer is a good thing).

* error.c, fports.c: replace use of %S in lgh_error args with %s.
%S will be used instead for write'ing arguments.

* unif.c (scm_transpose_array): change arguments in the SCM_WNA
asserts.  fix a few other asserts.
(scm_aind, scm_enclose_array, scm_array_in_bounds_p,
scm_uniform_vector_ref, scm_array_set_x,
scm_dimensions_to_unform_array): change args in
SCM_WNA SCM_ASSERTS and change scm_wta's to scm_wrong_num_args.
strop.c (scm_substring_move_left_x, scm_substring_move_right_x,
scm_substring_fill_x): likewise.
gsubr.c (scm_gsubr_apply): likewise.
eval.c (SCM_APPLY): likewise.

* eval.c (4 places): replace scm_everr with lgh_error or
scm_wrong_num_args.

* error.c, error.h (scm_wrong_num_args, scm_wrong_type_arg,
scm_memory_error): new procedures.
* scm_everr: deleted.  can use scm_wta, dropping first two args.
scm_error: convert NULL subr to SCM_BOOL_F.

* __scm.h: don't define SCM_STACK_OVFLOW, SCM_EXIT, SCM_ARG6, SCM_ARG7,
SCM_ARGERR.

* stackchk.c (scm_report_stack_overflow): use lgh_error instead
of scm_wta.

* error.c, error.h: new error keys: scm_arg_type_key,
scm_args_number_key, scm_memory_alloc_key, scm_stack_overflow_key,
scm_misc_error_key.
scm_wta: reimplement using lgh_error instead of scm_everr.

27 years ago * boot-9.scm (%%handle-system-error key): remove the code for
Gary Houston [Thu, 19 Sep 1996 09:04:55 +0000 (09:04 +0000)]
* boot-9.scm (%%handle-system-error key): remove the code for
SCM-style errors.  handle the case that an unexpected number
of args are supplied.
(%%system-errors): removed.
(error): redefine using a throw with key and 4 args.
('error): associate 'error, 'error-signal keys with
%%handle-system-error.
(%%default-error-handler): removed.
(signal-handler): throw with 4 args and use the error-signal key.
Create an error message instead of using numerical codes.
(%%bad-throw): call error instead of throw if key not found.

* boot-9.scm: initialize new error keys (see libguile/ChangeLog).
(%%handle-system-error key): check subr is not #f before printing.
Recognize %s (embed an argument using "display") and
%S (embed an argument using "write").

27 years ago* srcprop.h: Name changes: tc16_srcprops --> scm_tc16_srcprops,
Mikael Djurfeldt [Wed, 18 Sep 1996 19:36:44 +0000 (19:36 +0000)]
* srcprop.h: Name changes: tc16_srcprops --> scm_tc16_srcprops,
_scm_make_srcprops --> scm_make_srcprops; Remove one layer of
function calls in the definition of the whash access macros.

27 years ago* srcprop.c (scm_finish_srcprop): Bugfix: update ptr.
Mikael Djurfeldt [Wed, 18 Sep 1996 19:36:29 +0000 (19:36 +0000)]
* srcprop.c (scm_finish_srcprop): Bugfix: update ptr.
(scm_init_srcprop): Adjusted size of initial source-whash.  Name
changes: tc16_srcprops --> scm_tc16_srcprops, _scm_make_srcprops
--> scm_make_srcprops

27 years ago* read.h: Added prototype for scm_lreadrecparen
Mikael Djurfeldt [Wed, 18 Sep 1996 19:36:09 +0000 (19:36 +0000)]
* read.h: Added prototype for scm_lreadrecparen

27 years ago* read.c: Added code for recording of positions of source code
Mikael Djurfeldt [Wed, 18 Sep 1996 19:35:48 +0000 (19:35 +0000)]
* read.c: Added code for recording of positions of source code
expressions; New functions: recsexpr, scm_lreadrecparen;
_scm_make_srcprops --> scm_make_srcprops
(scm_flush_ws): Removed updating of positions counters.  This work
is already done by scm_gen_getc

27 years ago* print.c: Added #include "alist.h"
Mikael Djurfeldt [Wed, 18 Sep 1996 19:35:21 +0000 (19:35 +0000)]
* print.c: Added #include "alist.h"

27 years ago* ports.c, ports.h: Name change: scm_\(line\|column\)_number -->
Mikael Djurfeldt [Wed, 18 Sep 1996 19:34:58 +0000 (19:34 +0000)]
* ports.c, ports.h: Name change: scm_\(line\|column\)_number -->
scm_port_\1; Added mutator scm_set_port_filename_x (used when
loading source from non-file ports, which, e. g., happens when
using the Emacs interface).

27 years ago* options.c: Documentation fixes.
Mikael Djurfeldt [Wed, 18 Sep 1996 19:34:14 +0000 (19:34 +0000)]
* options.c: Documentation fixes.

27 years ago* gdbint.c: scm_lread now has one more argument.
Mikael Djurfeldt [Wed, 18 Sep 1996 19:33:58 +0000 (19:33 +0000)]
* gdbint.c: scm_lread now has one more argument.

27 years ago* fports.c (scm_open_file): Don't call scm_makfrom0str on a scheme
Mikael Djurfeldt [Wed, 18 Sep 1996 19:33:43 +0000 (19:33 +0000)]
* fports.c (scm_open_file): Don't call scm_makfrom0str on a scheme
object.

27 years ago* eval.c: Added #include "hash.h"
Mikael Djurfeldt [Wed, 18 Sep 1996 19:33:22 +0000 (19:33 +0000)]
* eval.c: Added #include "hash.h"

27 years ago* eq.c: Added #include "ramap.h"
Mikael Djurfeldt [Wed, 18 Sep 1996 19:32:40 +0000 (19:32 +0000)]
* eq.c: Added #include "ramap.h"

27 years ago*** empty log message ***
Mikael Djurfeldt [Wed, 18 Sep 1996 19:32:24 +0000 (19:32 +0000)]
*** empty log message ***

27 years ago* ports.h (scm_port_table): put back file_name, it will be used to
Gary Houston [Tue, 17 Sep 1996 02:09:50 +0000 (02:09 +0000)]
* ports.h (scm_port_table): put back file_name, it will be used to
support debugging.  Undo related changes in fports.c, ioext.c,
ports.c, gc.c.

27 years ago * ports.h (scm_port_table): remove file_name member for now, it seems
Gary Houston [Mon, 16 Sep 1996 03:32:26 +0000 (03:32 +0000)]
* ports.h (scm_port_table): remove file_name member for now, it seems
undesirable.
* fports.c (scm_open_file): don't set file_name in PTAB.
(prinfport): don't use file_name in PTAB.
* ioext.c (scm_sys_duplicate_port): don't set file_name in PTAB.
* ports.c (scm_add_to_port_table): don't intialize file_name.
(scm_port_file_name): remove for now.
* gc.c (scm_gc_mark): don't mark PTAB file_name.

* fports.h (scm_mkfile): prototype deleted.
* fports.c (scm_mkfile): merged into scm_open_file to simplify.

27 years ago* debug.c, unif.c: use scm_out_of_range instead of
Gary Houston [Sun, 15 Sep 1996 06:41:31 +0000 (06:41 +0000)]
* debug.c, unif.c: use scm_out_of_range instead of
wta for range errors (ASSERT still needs work).

* error.c, error.h (scm_out_of_range): new procedure.

* error.c, error.h (scm_out_of_range_key): new key.

* posix.c (scm_sync): #else was missing.

* error.c, error.h: append _key to names scm_num_overflow and
scm_system_error.

* __scm.h (SCM_SYSMISSING, SCM_NUM_OVERFLOW): use SCM_BOOL_F instead
of consing an empty list.
(SCM_SYSERROR etc.): move into error.c, make them procedures instead
of macros, saves code and string space.
error.c, fports.c, numbers.c, posix.c, ioext.c, filesys.c, socket.c,
fdsocket.c, simpos.c: change names of SCM_SYSERROR etc., to
lower case.  Rename scm_syserror_m to scm_syserror_msg.
error.h: prototypes for new procedures.

27 years ago* boot-9.scm (%%handle-system-error key): set args and rest to
Gary Houston [Sun, 15 Sep 1996 06:36:11 +0000 (06:36 +0000)]
* boot-9.scm (%%handle-system-error key): set args and rest to
the empty list if they are #f.
Initialize out-of-range as an error key.

27 years ago* PLUGIN/REQ: try to make dependencies work right.
Gary Houston [Sat, 14 Sep 1996 09:53:20 +0000 (09:53 +0000)]
* PLUGIN/REQ: try to make dependencies work right.

* PLUGIN/guile.config (xtra_dependencies): add only libgh.a.
(xtra_cflags): just add -L../lgh

* PLUGIN/guile.libs: try -lgh -lguile

* Makefile.am (INCLUDES): add -I../ so that libguile/scmconfig.h can
be found when srcdir != build dir.

* PLUGIN/REQ: remove the "ice-9 lgh" line which causes a cycle.

27 years ago* numbers.c: use SCM_NUM_OVERFLOW instead of scm_wta or ASSERT.
Gary Houston [Sat, 14 Sep 1996 07:47:50 +0000 (07:47 +0000)]
* numbers.c: use SCM_NUM_OVERFLOW instead of scm_wta or ASSERT.

* error.c, error.h: setup scm_num_overflow key.

* __scm.h: SCM_NUM_OVERFLOW: macro for reporting numerical overflow.
Remove definition of SCM_OVSCM_FLOW.

* fports.c (scm_open_file): use SCM_SYSERROR_M.

* __scm.h: SCM_SYSERROR_M: new macro for system errors with an
explicit message and args.

* error.c, error.h, __scm.h: change system_error_sym to
scm_system_error.

* error.c (system_error_sym): remove leading %% from the Scheme name
"%%system-error".

* __scm.h (SCM_SYSMISSING): Redefine using lgh_error.

* boot-9.scm: remove leading %% from references to '%%system-error.
(%%handle-system-error): don't pass all the thrown arguments when
aborting, just the key and subr.
Remove the code to "Install default handlers for built-in errors."
Remove the definition of the syserror procedure.
Associate 'numerical-overflow with default handler.

27 years agoAdded the new_procedure() stuff.
Mark Galassi [Fri, 13 Sep 1996 22:55:07 +0000 (22:55 +0000)]
Added the new_procedure() stuff.

27 years agoAdjusted the PLUGIN/REQ so that lgh is the last thing configured/built.
Mark Galassi [Fri, 13 Sep 1996 20:41:03 +0000 (20:41 +0000)]
Adjusted the PLUGIN/REQ so that lgh is the last thing configured/built.

27 years ago.
Jim Blandy [Fri, 13 Sep 1996 17:57:14 +0000 (17:57 +0000)]
.

27 years ago*** empty log message ***
Mikael Djurfeldt [Fri, 13 Sep 1996 13:32:46 +0000 (13:32 +0000)]
*** empty log message ***

27 years ago* __scm.h, chars.c, debug.c, eval.c, eval.h, extchrs.c, extchrs.h,
Mikael Djurfeldt [Fri, 13 Sep 1996 13:31:50 +0000 (13:31 +0000)]
* __scm.h, chars.c, debug.c, eval.c, eval.h, extchrs.c, extchrs.h,
fdsocket.c, feature.c, mbstrings.c, mbstrings.h, numbers.c,
numbers.h, print.c, scmhob.h, simpos.h, symbols.c, symbols.h,
tags.h, throw.c, variable.h: Name cleanup.  Lots of xxxSCM_yyy
removed.  (These were introduced by unsupervised name
substitution.)

27 years ago* __scm.h, chars.c, debug.c, eval.c, eval.h, extchrs.c, extchrs.h,
Mikael Djurfeldt [Fri, 13 Sep 1996 11:07:24 +0000 (11:07 +0000)]
* __scm.h, chars.c, debug.c, eval.c, eval.h, extchrs.c, extchrs.h,
fdsocket.c, feature.c, mbstrings.c, mbstrings.h, numbers.c,
numbers.h, print.c, scmhob.h, simpos.h, symbols.c, symbols.h,
tags.h, throw.c, variable.h: Name cleanup.  Lots of xxxSCM_yyy
removed.  (These were introduced by unsupervised name
substitution.)

27 years ago*** empty log message ***
Mikael Djurfeldt [Fri, 13 Sep 1996 03:02:53 +0000 (03:02 +0000)]
*** empty log message ***

27 years ago* boot-9.scm: Name change: value-ref --> local-ref
Mikael Djurfeldt [Fri, 13 Sep 1996 03:02:38 +0000 (03:02 +0000)]
* boot-9.scm: Name change: value-ref --> local-ref
resolved-ref --> nested-ref  Motivation: conformance to the other
dictionary operators: list-ref operates on list, vector-ref
operates on vector, nested-ref operates on nested namespace,
local-ref operates on the local nested namespace.

27 years agoShould be a more complete distribution; will test one more time.
Mark Galassi [Fri, 13 Sep 1996 00:00:58 +0000 (00:00 +0000)]
Should be a more complete distribution; will test one more time.

27 years ago*** empty log message ***
Mikael Djurfeldt [Thu, 12 Sep 1996 23:44:46 +0000 (23:44 +0000)]
*** empty log message ***

27 years ago* error.c (err_head): scm_iprin1 --> scm_prin1
Mikael Djurfeldt [Thu, 12 Sep 1996 23:44:21 +0000 (23:44 +0000)]
* error.c (err_head): scm_iprin1 --> scm_prin1

27 years ago* gscm.c (gscm_portprint_obj): scm_iprin1 --> scm_prin1
Mikael Djurfeldt [Thu, 12 Sep 1996 23:44:12 +0000 (23:44 +0000)]
* gscm.c (gscm_portprint_obj): scm_iprin1 --> scm_prin1

27 years ago* gscm.h (gscm_print_obj): scm_iprin1 --> scm_prin1
Mikael Djurfeldt [Thu, 12 Sep 1996 23:44:00 +0000 (23:44 +0000)]
* gscm.h (gscm_print_obj): scm_iprin1 --> scm_prin1

27 years ago* print.c: Added code for detection of circular references during
Mikael Djurfeldt [Thu, 12 Sep 1996 23:43:47 +0000 (23:43 +0000)]
* print.c: Added code for detection of circular references during
printing.  (init_ref_stack, grow_ref_stack): New functions.  Added
a hook for printing of closures (accessible via print options).
This leads to a split of calls to scm_iprin1 into two classes:
elementary print operations (e. g. the code which prints a smob)
still use scm_iprin1 while top level calls (like scm_display) use
scm_prin1.  scm_prin1 begins by clearing the data structure used
to record reference information.

27 years ago* print.h: Added declarations of scm_prin1 and scm_prlist.
Mikael Djurfeldt [Thu, 12 Sep 1996 23:43:34 +0000 (23:43 +0000)]
* print.h: Added declarations of scm_prin1 and scm_prlist.

27 years ago* strports.c (scm_strprint_obj): scm_iprin1 --> scm_prin1
Mikael Djurfeldt [Thu, 12 Sep 1996 23:43:18 +0000 (23:43 +0000)]
* strports.c (scm_strprint_obj): scm_iprin1 --> scm_prin1

27 years ago* debug.c: Adjusted header comment.
Mikael Djurfeldt [Thu, 12 Sep 1996 23:39:37 +0000 (23:39 +0000)]
* debug.c: Adjusted header comment.

27 years ago* tags.h: Typo.
Mikael Djurfeldt [Thu, 12 Sep 1996 23:39:23 +0000 (23:39 +0000)]
* tags.h: Typo.