bpt/guile.git
26 years ago* README, ltconfig, ltmain.sh: New libtool: 1.0c.
Mikael Djurfeldt [Mon, 15 Sep 1997 22:21:47 +0000 (22:21 +0000)]
* README, ltconfig, ltmain.sh: New libtool: 1.0c.

26 years ago* boot-9.scm (iota): Renamed list-reverse! --> reverse!
Mikael Djurfeldt [Mon, 15 Sep 1997 21:43:41 +0000 (21:43 +0000)]
* boot-9.scm (iota): Renamed list-reverse! --> reverse!

26 years ago*** empty log message ***
Mikael Djurfeldt [Mon, 15 Sep 1997 21:36:19 +0000 (21:36 +0000)]
*** empty log message ***

26 years ago*** empty log message ***
Mikael Djurfeldt [Mon, 15 Sep 1997 21:27:58 +0000 (21:27 +0000)]
*** empty log message ***

26 years ago* sequences.h, sequences.c, append.h, append.c: Removed. These
Mikael Djurfeldt [Mon, 15 Sep 1997 21:26:06 +0000 (21:26 +0000)]
* sequences.h, sequences.c, append.h, append.c: Removed.  These
files implemented non-R4RS operations which would encourage
non-portable programming style and less easy-to-read code.

* Makefile.am (sequences.h, sequences.c, append.h, append.c):
Removed.

* libguile.h, eval.c, init.c, stime.c, unif.c: Removed #include
sequences.h, #include append.h.

* init.c (scm_boot_guile_1): Removed calls to scm_init_append and
scm_init_sequences.

* stime.c (bdtime2c): Changed scm_obj_length --> scm_vector_length.

26 years ago* Makefile.am (sequences.h, sequences.c, append.h, append.c):
Mikael Djurfeldt [Mon, 15 Sep 1997 21:23:07 +0000 (21:23 +0000)]
* Makefile.am (sequences.h, sequences.c, append.h, append.c):
Removed.

26 years ago* list.h (SCM_LISTn): New macros. Make list creation in C code
Mikael Djurfeldt [Mon, 15 Sep 1997 21:20:48 +0000 (21:20 +0000)]
* list.h (SCM_LISTn): New macros.  Make list creation in C code
prettier.  The idea comes from STk.

* sequences.h, sequences.c, append.h, append.c: Removed.  These
files implemented non-R4RS operations which would encourage
non-portable programming style and less easy-to-read code.

* Makefile.am (sequences.h, sequences.c, append.h, append.c):
Removed.

* libguile.h, eval.c, init.c, stime.c, unif.c: Removed #include
sequences.h, #include append.h.

* gh.h, gh_list.c: Renamed gh_list_length --> gh_length.

* list.h, list.c: Renamed scm_list_length --> scm_length, scm

26 years ago* ltmain.sh: Added a missing '\' before \n on line 32.
Mikael Djurfeldt [Thu, 11 Sep 1997 09:30:12 +0000 (09:30 +0000)]
* ltmain.sh: Added a missing '\' before \n on line 32.

26 years ago* session.scm (name): New procedure: Gives name of object.
Mikael Djurfeldt [Thu, 11 Sep 1997 08:59:30 +0000 (08:59 +0000)]
* session.scm (name): New procedure: Gives name of object.
(source): New procedure: Gives source of object.

26 years ago* procprop.h: Added declaration of scm_i_inner_name.
Mikael Djurfeldt [Thu, 11 Sep 1997 00:09:57 +0000 (00:09 +0000)]
* procprop.h: Added declaration of scm_i_inner_name.

* gsubr.c: New global symbol scm_i_inner_name.

* debug.c (scm_procedure_name): Try procedure property
`inner-name' if `name' fails.

* print.c (scm_iprin1): Use scm_macro_name.

* eval.c (scm_m_define): Give names to macros as well; Only the
first top-level definition gives a procedure/macro a name.
Otherwise confusing names can turn up in backtraces.
(SCM_CEVAL): SCM_IM_DEFINE: Set `inner-name' property instead of
`name'; Give names to macros as well.

* procs.c (scm_closure_p), print.c (scm_iprin1), eval.c
(scm_macro_transformer): Use SCM_CLOSUREP instead of
scm_closure_p.

26 years ago* syncase.scm (psyncomp): New procedure: Recompiles psyntax.pp.
Mikael Djurfeldt [Wed, 10 Sep 1997 20:09:31 +0000 (20:09 +0000)]
* syncase.scm (psyncomp): New procedure: Recompiles psyntax.pp.
Should be used inside the (ice-9 syncase) module with (use-syntax
syncase) and with the current directory containing the psyntax.ss
source.
Added hack to transfer syntactic information from the builtin
variable `define' to the slib version if module (ice-9 slib) has
been loaded.

26 years ago* * boot-9.scm (primitive-macro?): New procedure.
Mikael Djurfeldt [Wed, 10 Sep 1997 20:07:04 +0000 (20:07 +0000)]
* * boot-9.scm (primitive-macro?): New procedure.

* slib.scm: Added hack which transfers syntactic information from
the builtin variable `define' to the slib version if module (ice-9
syncase) has been loaded.  This is necessary to get correct
expansion inside the slib module.

* psyntax.ss (build-let, build-named-let): New output
constructors.
(build-lexical-var): Seed gensym with symbolic name.
(self-evaluating?): Add keywords among self-evaluating types.
(let): New core form.
(if): Removed from core language.
(or, and, let, cond): Removed syntactic definitions.
(sc-expand3): New procedure: Expander which takes optional mode
and eval-syntactic-expanders-when arguments.

* syncase.scm (psyncomp): New procedure: Recompiles psyntax.pp.
Should be used inside the (ice-9 syncase) module with (use-syntax
syncase) and with the current directory containing the psyntax.ss
source.
Added hack to transfer syntactic information from the builtin
variable `define' to the slib version if module (ice-9 slib) has
been loaded.

26 years ago* * eval.c (macro?, macro-type, macro-name, macro-transfomer): New
Mikael Djurfeldt [Wed, 10 Sep 1997 20:05:28 +0000 (20:05 +0000)]
* * eval.c (macro?, macro-type, macro-name, macro-transfomer): New
procedures;
(prinmacro): Removed.  The code has been moved/merged into print.c
in order to decrease code redundancy.  We want macros to print in
a way equivalent to procedures, and it would be silly to duplicate
the required code.  (We don't want to maintain two places.)
(macrosmob): Print field is now a NULL pointer.

* eval.h (scm_macro_p, scm_macro_type, scm_macro_name,
scm_macro_transformer): New prototypes.
(scm_tc16_macro): Declared.

* * print.c (scm_iprin1): Added code for printing of macros.  Macros
are now printed in a way equivalent to procedures.

26 years ago* procs.h (scm_closure_p): Added declaration.
Mikael Djurfeldt [Wed, 10 Sep 1997 20:03:55 +0000 (20:03 +0000)]
* procs.h (scm_closure_p): Added declaration.

26 years ago* gc.c (scm_gc_mark): Fixed "rogue pointer in heap" message:
Mikael Djurfeldt [Wed, 10 Sep 1997 20:03:27 +0000 (20:03 +0000)]
* gc.c (scm_gc_mark): Fixed "rogue pointer in heap" message:
Shouldn't pass "heap" as the subr name.

26 years ago* emacs.scm (emacs-load): Added new parameter `module'.
Mikael Djurfeldt [Fri, 5 Sep 1997 01:21:02 +0000 (01:21 +0000)]
* emacs.scm (emacs-load): Added new parameter `module'.

* syncase.scm (putprop, getprop): Modified to use the object
properties of the variable object corresponding to the symbol;
This way we can ride on the mechanisms of the module system.
Changed `builtin-variable' calls to `define-public' calls.
Setup the hooks sc-expand and sc-interface.

* boot-9.scm (sc-interface, sc-expand): New builtin variables.
(set-current-module): Switch to and from sc-expand as
scm:eval-transformer when going into and out of modules using
syncase macros.
(module-use!): Set scm:eval-transformer to sc-expand when adding
the syncase interface.

26 years ago* syncase.scm (putprop): Temporary fix which publishes new syntax
Mikael Djurfeldt [Thu, 4 Sep 1997 13:02:10 +0000 (13:02 +0000)]
* syncase.scm (putprop): Temporary fix which publishes new syntax
globally (the old behaviour was complex and connected to the inner
workings of the current module system).

26 years ago*** empty log message ***
Jim Blandy [Wed, 3 Sep 1997 22:54:08 +0000 (22:54 +0000)]
*** empty log message ***

26 years ago* psyntax.ss: Updated.
Mikael Djurfeldt [Wed, 3 Sep 1997 19:32:26 +0000 (19:32 +0000)]
* psyntax.ss: Updated.
psyntax.pp: Bugfix: Previous version had some leading "t":s cut
off!

26 years ago*** empty log message ***
Jim Blandy [Tue, 2 Sep 1997 23:17:28 +0000 (23:17 +0000)]
*** empty log message ***

26 years ago* gh_predicates.c (gh_boolean_p, gh_symbol_p, gh_char_p,
Jim Blandy [Tue, 2 Sep 1997 23:17:15 +0000 (23:17 +0000)]
* gh_predicates.c (gh_boolean_p, gh_symbol_p, gh_char_p,
gh_vector_p, gh_pair_p, gh_number_p, gh_string_p, gh_procedure_p,
gh_list_p, gh_inexact_p, gh_exact_p, gh_eq_p, gh_eqv_p,
gh_equal_p): Use SCM_NFALSEP, instead of testing against
SCM_BOOL_T.  Any non-false value is true.

26 years ago* symbols.h (scm_builtin_bindings, scm_builtin_weak_bindings,
Mikael Djurfeldt [Mon, 1 Sep 1997 22:28:49 +0000 (22:28 +0000)]
* symbols.h (scm_builtin_bindings, scm_builtin_weak_bindings,
scm_gensym): Added prototypes.

* symbols.c (scm_gensym): New function.  This will speed up
certain types of applications (such as macro systems) which
generate lots of symbols.

26 years ago* boot-9.scm (gensym): Removed (replaced by primitive).
Mikael Djurfeldt [Mon, 1 Sep 1997 22:27:58 +0000 (22:27 +0000)]
* boot-9.scm (gensym): Removed (replaced by primitive).
(obarray-gensym): Rewritten to use `gensym'.
(gentemp): Rewritten to use `gensym'.

26 years ago* numbers.c (logand, logior, logxor): Handle 0 or 1 arguments.
Mikael Djurfeldt [Mon, 1 Sep 1997 20:41:31 +0000 (20:41 +0000)]
* numbers.c (logand, logior, logxor): Handle 0 or 1 arguments.

26 years ago* gtcl.scm (make-tcl-binder): Rewritten to choose bindings
Mikael Djurfeldt [Mon, 1 Sep 1997 19:14:30 +0000 (19:14 +0000)]
* gtcl.scm (make-tcl-binder): Rewritten to choose bindings
according to the following priorities:
1. tcl bindings which are present in override-scheme-list
2. bindings from the-scm-module
3. tcl bindings
This way the gtcl module can occur first in the use-list without
disabling the scheme interpreter.
(new-interpreter): New function.

* gwish.scm: Moved initialization code for the-interpreter to
gtcl.scm; Moved name space cleaning code to gtcl.scm and rewrote
it; Call `new-interpreter'; Don't :use-module (guile).

26 years ago* unif.c (scm_shap2ra): tighten the checking of the array dimension
Gary Houston [Sat, 30 Aug 1997 19:28:38 +0000 (19:28 +0000)]
* unif.c (scm_shap2ra): tighten the checking of the array dimension
specifier, since (2) or (2 . 3) would cause SEGV.
(scm_transpose_array): more argument checking fixes.

26 years ago* Makefile.in, md/Makefile.in, time/Makefile.in: Regenerated.
Jim Blandy [Fri, 29 Aug 1997 04:50:36 +0000 (04:50 +0000)]
* Makefile.in, md/Makefile.in, time/Makefile.in: Regenerated.

26 years ago* Makefile.in: Regenerated.
Jim Blandy [Fri, 29 Aug 1997 04:50:17 +0000 (04:50 +0000)]
* Makefile.in: Regenerated.

26 years agoNew libtool: 1.0b.
Jim Blandy [Fri, 29 Aug 1997 04:49:54 +0000 (04:49 +0000)]
New libtool: 1.0b.
* ltconfig, ltmain.sh, config.guess: Freshly libtoolized.
* Makefile.in, aclocal.m4, configure: Regenerated, salamander-style.

26 years ago*** empty log message ***
Mikael Djurfeldt [Wed, 27 Aug 1997 22:52:00 +0000 (22:52 +0000)]
*** empty log message ***

26 years ago*** empty log message ***
Jim Blandy [Wed, 27 Aug 1997 22:48:58 +0000 (22:48 +0000)]
*** empty log message ***

26 years ago* Makefile.in, md/Makefile.in, time/Makefile.in: Regenerated, so
Jim Blandy [Wed, 27 Aug 1997 22:48:06 +0000 (22:48 +0000)]
* Makefile.in, md/Makefile.in, time/Makefile.in: Regenerated, so
it uses "tar", not "gtar".

26 years ago* config: Use the QuickThreads assembler fragment with Irix
Jim Blandy [Wed, 27 Aug 1997 22:47:46 +0000 (22:47 +0000)]
* config: Use the QuickThreads assembler fragment with Irix
dynamic linking support for Irix 6 as well as Irix 5.  Thanks to
Jesse Glick.

26 years ago* Makefile.in: Regenerated, so it uses "tar", not "gtar".
Jim Blandy [Wed, 27 Aug 1997 22:47:18 +0000 (22:47 +0000)]
* Makefile.in: Regenerated, so it uses "tar", not "gtar".

26 years ago* configure.in: Use the QuickThreads assembler fragment with Irix
Jim Blandy [Wed, 27 Aug 1997 22:42:50 +0000 (22:42 +0000)]
* configure.in: Use the QuickThreads assembler fragment with Irix
dynamic linking support for Irix 6 as well as Irix 5.  Thanks to
Jesse Glick.
* configure: Regenerated.

26 years agodoc fix
Jim Blandy [Tue, 26 Aug 1997 23:53:28 +0000 (23:53 +0000)]
doc fix

26 years agoRegenerated.
Mikael Djurfeldt [Mon, 25 Aug 1997 20:05:30 +0000 (20:05 +0000)]
Regenerated.

26 years ago*** empty log message ***
Mikael Djurfeldt [Mon, 25 Aug 1997 20:03:49 +0000 (20:03 +0000)]
*** empty log message ***

26 years ago* emacs.scm (object->string, format, error-args->string): New
Mikael Djurfeldt [Mon, 25 Aug 1997 20:03:21 +0000 (20:03 +0000)]
* emacs.scm (object->string, format, error-args->string): New
procedures.
(emacs-frame-eval): Reworked.

26 years ago* session.scm (apropos-internal): Musn't initialize symbol
Mikael Djurfeldt [Mon, 25 Aug 1997 15:07:18 +0000 (15:07 +0000)]
* session.scm (apropos-internal): Musn't initialize symbol
accumulator with a constant pair.  That led to mutation of the
source!

26 years agoUpdated
Mikael Djurfeldt [Mon, 25 Aug 1997 13:34:17 +0000 (13:34 +0000)]
Updated

26 years agoUpdated with messages about gh_write and scm_internal_stack_catch.
Mikael Djurfeldt [Mon, 25 Aug 1997 13:33:13 +0000 (13:33 +0000)]
Updated with messages about gh_write and scm_internal_stack_catch.

26 years ago* error.c, error.h (scm_error_callback): Removed (see NEWS).
Mikael Djurfeldt [Mon, 25 Aug 1997 12:33:50 +0000 (12:33 +0000)]
* error.c, error.h (scm_error_callback): Removed (see NEWS).

26 years ago* acinclude.m4 (GUILE_NAMED_CHECK_FUNC): New macro: Tagged test,
Mikael Djurfeldt [Sun, 24 Aug 1997 18:16:25 +0000 (18:16 +0000)]
* acinclude.m4 (GUILE_NAMED_CHECK_FUNC): New macro: Tagged test,
so that test for the same function can be performed multiple
times.

* configure.in (AC_CHECK_HEADERS): Test for rxposix.h,
rx/rxposix.h.  Add library rx only if regcomp can't be found
without it.

26 years agoSmall fix: sh doesn't have unset on all machines.
Mikael Djurfeldt [Sun, 24 Aug 1997 15:58:11 +0000 (15:58 +0000)]
Small fix: sh doesn't have unset on all machines.

26 years agoRegenerated
Mikael Djurfeldt [Sun, 24 Aug 1997 15:37:10 +0000 (15:37 +0000)]
Regenerated

26 years agoUpdated.
Mikael Djurfeldt [Sun, 24 Aug 1997 15:35:32 +0000 (15:35 +0000)]
Updated.

26 years ago* configure.in (AC_CHECK_HEADERS): Test for rxposix.h,
Mikael Djurfeldt [Sun, 24 Aug 1997 15:35:08 +0000 (15:35 +0000)]
* configure.in (AC_CHECK_HEADERS): Test for rxposix.h,
rx/rxposix.h.  Add library rx only if regcomp can't be found
without it.

* acconfig.h (HAVE_REGCOMP): Added it here since autoheader misses
it for some reason!

26 years ago* regex-posix.c: If <regex.h> can't be found, try <rxposix.h> or
Mikael Djurfeldt [Sun, 24 Aug 1997 15:33:49 +0000 (15:33 +0000)]
* regex-posix.c: If <regex.h> can't be found, try <rxposix.h> or
<rx/rxposix.h>.  (This is in order to accomodate for the GNU Rx
library.)

26 years ago* session.scm (vector-for-each): Removed.
Mikael Djurfeldt [Sun, 24 Aug 1997 03:39:47 +0000 (03:39 +0000)]
* session.scm (vector-for-each): Removed.
(apropos): vector-for-each --> array-for-each.
(apropos-internal): New function.  Return list of accessible
symbols matching regexp.

26 years ago* emacs.scm (emacs-load): New arguments: interactivep: when
Mikael Djurfeldt [Sun, 24 Aug 1997 03:38:48 +0000 (03:38 +0000)]
* emacs.scm (emacs-load): New arguments: interactivep: when
non-false, send back results to Emacs; colnum: Column number;
Use modules (ice-9 debug) and (ice-9 session);
(no-stack, no-source): New simple-actions;
(result-to-emacs): New procedure. Sends data to Emacs via the
result protocol;
(get-frame-source, emacs-select-frame, emacs-frame-eval,
emacs-symdoc): New procedures.

26 years ago* debug.scm (frame-number->index): New function. Convert frame
Mikael Djurfeldt [Sun, 24 Aug 1997 03:32:43 +0000 (03:32 +0000)]
* debug.scm (frame-number->index): New function.  Convert frame
number (as displayed in the backtrace) to frame index (to be used
in stack-ref).

26 years ago* ramap.c (scm_ra_matchp, scm_array_fill_int, racp, ramap_1,
Mikael Djurfeldt [Sun, 24 Aug 1997 03:29:35 +0000 (03:29 +0000)]
* ramap.c (scm_ra_matchp, scm_array_fill_int, racp, ramap_1,
ramap_2o, scm_array_index_map_x, raeql_1, scm_array_equal_p),
unif.c (scm_vector_set_length_x, scm_uniform_vector_length,
scm_array_p, scm_array_rank, scm_array_dimensions,
scm_enclose_array, scm_array_in_bounds_p, scm_uniform_vector_ref,
scm_cvref, scm_array_set_x, scm_array_contents, scm_array_to_list,
scm_array_prototype): Added case scm_tc7_wvect.

26 years ago* errno.h: prototype for scm_strerror.
Gary Houston [Sat, 23 Aug 1997 18:49:35 +0000 (18:49 +0000)]
* errno.h: prototype for scm_strerror.
* error.c (scm_strerror): new procedure.

26 years ago*** empty log message ***
Jim Blandy [Sat, 23 Aug 1997 02:23:13 +0000 (02:23 +0000)]
*** empty log message ***

26 years ago* THANKS: New file.
Jim Blandy [Sat, 23 Aug 1997 02:22:56 +0000 (02:22 +0000)]
* THANKS: New file.
* Makefile.in, aclocal.m4, configure: Regenerated.

26 years agoThis used to be a big THANKS file for all the Guile packages and
Jim Blandy [Sat, 23 Aug 1997 02:21:23 +0000 (02:21 +0000)]
This used to be a big THANKS file for all the Guile packages and
releases.  Now that it's under CVS, we don't need to keep the history,
and the doc and SCSH stuff can be sent off to the appropriate modules.

26 years agoSegregated system-specific installation instructions.
Jim Blandy [Sat, 23 Aug 1997 02:19:55 +0000 (02:19 +0000)]
Segregated system-specific installation instructions.

26 years ago*** empty log message ***
Jim Blandy [Fri, 22 Aug 1997 22:05:00 +0000 (22:05 +0000)]
*** empty log message ***

26 years ago* emacs.scm (emacs-load): New argument: interactivep: when
Mikael Djurfeldt [Thu, 21 Aug 1997 09:32:37 +0000 (09:32 +0000)]
* emacs.scm (emacs-load): New argument: interactivep: when
non-false, send back results to Emacs.

26 years ago* emacs.scm (emacs-load): Adjust stack narrowing.
Mikael Djurfeldt [Wed, 20 Aug 1997 19:52:03 +0000 (19:52 +0000)]
* emacs.scm (emacs-load): Adjust stack narrowing.
(whitespace-chars): Include #\np.

26 years ago* emacs.scm (emacs-load): Adjust stack narrowing.
Mikael Djurfeldt [Wed, 20 Aug 1997 17:42:15 +0000 (17:42 +0000)]
* emacs.scm (emacs-load): Adjust stack narrowing.

26 years ago*** empty log message ***
Mikael Djurfeldt [Wed, 20 Aug 1997 11:24:14 +0000 (11:24 +0000)]
*** empty log message ***

26 years ago* psyntax.pp: Removed leading blanks => 800K -> 100K.
Mikael Djurfeldt [Wed, 20 Aug 1997 11:23:52 +0000 (11:23 +0000)]
* psyntax.pp: Removed leading blanks => 800K -> 100K.

26 years ago* syncase.scm: Also turn off debugging evaluator and recording of
Mikael Djurfeldt [Wed, 20 Aug 1997 11:23:22 +0000 (11:23 +0000)]
* syncase.scm: Also turn off debugging evaluator and recording of
procedure names during loading of psyntax.pp.

26 years ago * syncase.scm: Don't tamper with debug mode setting when enabling
Mikael Djurfeldt [Tue, 19 Aug 1997 21:58:29 +0000 (21:58 +0000)]
* syncase.scm: Don't tamper with debug mode setting when enabling
macros.  Instead cut the stack with start-stack.
Load psyntax.pp with recording of positions turned off.

26 years ago * syncase.scm: Don't tamper with debug mode setting when enabling
Mikael Djurfeldt [Tue, 19 Aug 1997 20:51:42 +0000 (20:51 +0000)]
* syncase.scm: Don't tamper with debug mode setting when enabling
macros.  Instead cut the stack with start-stack.

26 years agoDybvig's version
Mikael Djurfeldt [Tue, 19 Aug 1997 19:45:40 +0000 (19:45 +0000)]
Dybvig's version

26 years agoAdded syncase.scm, psyntax.pp, psyntax.ss
Mikael Djurfeldt [Tue, 19 Aug 1997 01:35:09 +0000 (01:35 +0000)]
Added syncase.scm, psyntax.pp, psyntax.ss

26 years ago*** empty log message ***
Mikael Djurfeldt [Tue, 19 Aug 1997 01:34:46 +0000 (01:34 +0000)]
*** empty log message ***

26 years agopsyntax.pp, psyntax.ss (quasiquote): Changed fx= --> =.
Mikael Djurfeldt [Tue, 19 Aug 1997 01:32:26 +0000 (01:32 +0000)]
psyntax.pp, psyntax.ss (quasiquote): Changed fx= --> =.

26 years ago* syncase.scm: New file: Guile-adaption for syntax-case macros.
Mikael Djurfeldt [Tue, 19 Aug 1997 01:28:50 +0000 (01:28 +0000)]
* syncase.scm: New file: Guile-adaption for syntax-case macros.
psyntax.pp, psyntax.ss: Syntax-case macros, portable version 2 by
R. Kent Dybvig, Oscar Waddell, Bob Hieb and Carl Bruggeman

26 years ago*** empty log message ***
Mikael Djurfeldt [Mon, 18 Aug 1997 20:19:18 +0000 (20:19 +0000)]
*** empty log message ***

26 years ago* * session.scm: New file: Session support.
Mikael Djurfeldt [Mon, 18 Aug 1997 20:02:22 +0000 (20:02 +0000)]
* * session.scm: New file: Session support.
(apropos): New procedure: List bindings given regexp.

26 years ago* list.c (scm_list_append_x): Allow non-pair as last argument.
Mikael Djurfeldt [Mon, 18 Aug 1997 13:17:46 +0000 (13:17 +0000)]
* list.c (scm_list_append_x): Allow non-pair as last argument.
This is consistent with the R4RS append and is probably the
correct behaviour as specified by R2RS.  (Thanks to Radey Shouman)

26 years ago* stime.h: prototype for scm_times.
Gary Houston [Sat, 16 Aug 1997 18:48:44 +0000 (18:48 +0000)]
* stime.h: prototype for scm_times.
* stime.c (scm_times): new procedure.
* ioext.c (scm_fseek): if the first argument is a file descriptor
call lseek.
(scm_ftell): if the first argument is a file descriptor call lseek
(sic).
* filesys.h: prototypes for scm_open_fdes, scm_fsync.
* filesys.c (scm_chmod): if the first argument is a file descriptor,
call fchmod.
(scm_chown): if the first argument is a port or file descriptor,
call fchown.
(scm_truncate_file): new procedure.
Add DEFER/ALLOW INTS to a few other procedures.
(scm_fsync): new procedure.
(scm_open_fdes): new procedure.
(scm_open): use scm_open_fdes.  If mode isn't specified, 666 will
now be used.
(scm_fcntl): the first argument can now be a file descriptor.  The
third argument is now optional.

* posix.c (scm_execl, scm_execlp): make the filename argument
compulsory, since omitting it causes SEGV.
(scm_sync): return unspecified instead of #f.
(scm_execle): new procedure.
(environ_list_to_c): new procedure.
(scm_environ): use environ_list_to_c.  disable interrupts.
(scm_convert_exec_args): take pos and subr arguments and
improve error checking.

* boot-9.scm: define tms accessors: clock, utime, stime, cutime,
cstime.

26 years ago* emacs.scm (emacs-load): Something has changed in the reader so
Mikael Djurfeldt [Thu, 14 Aug 1997 19:23:13 +0000 (19:23 +0000)]
* emacs.scm (emacs-load): Something has changed in the reader so
that we now should set the port line count to the specified value
(linum) instead of (- linum 1).

26 years ago* slib.scm (slib:load): Use load-from-path instead of
Mikael Djurfeldt [Thu, 14 Aug 1997 18:24:46 +0000 (18:24 +0000)]
* slib.scm (slib:load): Use load-from-path instead of
primitive-load-path so that backtraces get narrowed properly at
the top.

* boot-9.scm (top-repl): Save stack already in signal handler in
order to narrow it correctly.
(save-stack): Adjust narrowing tag for the top of load-stacks.

26 years ago* stacks.c (scm_make_stack), coop-threads.c, mit-pthreads.c
Mikael Djurfeldt [Thu, 14 Aug 1997 15:00:03 +0000 (15:00 +0000)]
* stacks.c (scm_make_stack), coop-threads.c, mit-pthreads.c
(scm_call_with_new_thread): Bugfix: SCM_WNA should go as third
argument to SCM_ASSERT.  Furthermore, the name of the function
should be passed as first argument when signalling
SCM_WNA. (Thanks to Thomas Morgan)

26 years ago* gsubr.c (scm_gsubr_apply): From Radey Shouman
Mikael Djurfeldt [Thu, 14 Aug 1997 14:58:25 +0000 (14:58 +0000)]
* gsubr.c (scm_gsubr_apply): From Radey Shouman
<shouman@zianet.com>: "The switch in scm_gsubr_apply that
dispatches on the number of actual args has a default case
reporting an internal error.  This is a vestige from a version
that mallocated a SCM vector to hold the arguments.  In the
current version this check is too late: if it ever happens we will
have already overstepped the bounds of the array.

Also, the patch [...] adds a check for too many actual arguments."

mdj: Removed check for "internal programming error".

26 years ago* * gh_io.c (gh_write): New function.
Mikael Djurfeldt [Wed, 13 Aug 1997 14:55:34 +0000 (14:55 +0000)]
* * gh_io.c (gh_write): New function.

26 years ago* * gh_eval.c (catch_with_saved_stack): Removed. Replaced by:
Mikael Djurfeldt [Wed, 13 Aug 1997 14:54:49 +0000 (14:54 +0000)]
* * gh_eval.c (catch_with_saved_stack): Removed.  Replaced by:
throw.c (scm_internal_stack_catch): New sibling to the other catch
functions.  Code moved from gh_eval.c.
throw.h: Added header.
gh_eval.c (gh_eval_str_with_stack_saving_handler): Renamed call to
scm_internal_stack_catch.

26 years agoreally delete primitive-dup.
Gary Houston [Tue, 29 Jul 1997 03:52:24 +0000 (03:52 +0000)]
really delete primitive-dup.

26 years ago* ioext.h: fix up prototypes.
Gary Houston [Tue, 29 Jul 1997 02:21:08 +0000 (02:21 +0000)]
* ioext.h: fix up prototypes.
* ioext.c (scm_dup_to_fdes): renamed from scm_primitive_dup2.
Scheme name is now dup->fdes.
(scm_dup_to_fdes): make the second argument optional and
fold in the functionality of scm_primitive_dup.
(scm_primitive_dup): deleted.
* fports.h (SCM_P): prototypes for scm_setvbuf, scm_setfileno.
* fports.c (scm_setbuf0): don't disable the setbuf if MSDOS or
ultrix are defined.  Use setvbuf instead of setbuf.
(scm_setvbuf): new procedure.
(scm_init_fports): intern _IOFBF, _IOLBF, _IONBF.
(scm_setfileno): moved from ioext.c.
(scm_fgets): cast SCM_STREAM to (FILE *), remove unused lp variable.
(top of file): Delete 25 lines of probably obsolete CPP hair for MSDOS.

* boot-9.scm (move->fdes, dup->port): use dup->fdes, not primitive-dup.
(dup->fdes): deleted, now done in C.

26 years ago*** empty log message ***
Marius Vollmer [Sun, 27 Jul 1997 09:11:05 +0000 (09:11 +0000)]
*** empty log message ***

26 years ago* struct.c (scm_print_struct): Use scm_printer_apply to call the
Marius Vollmer [Sun, 27 Jul 1997 09:09:54 +0000 (09:09 +0000)]
* struct.c (scm_print_struct): Use scm_printer_apply to call the
user defined struct printer.

26 years ago* print.c (scm_iprin1): Enter printed structures into the print
Marius Vollmer [Sun, 27 Jul 1997 09:08:38 +0000 (09:08 +0000)]
* print.c (scm_iprin1): Enter printed structures into the print
state as nested data while they are printed.
(print_state_fluid, print_state_fluid_num): New variables.
(scm_init_print): Initialize them.
(scm_iprin): If print_state_fluid carries a print_state, use that
instead of creating a new one.
(scm_printer_apply, apply_stub, struct apply_data): New
definitions to help with calling printer functions written in
Scheme.
* print.h (scm_printer_apply): New prototype.

26 years ago*** empty log message ***
Marius Vollmer [Sun, 27 Jul 1997 09:04:50 +0000 (09:04 +0000)]
*** empty log message ***

26 years ago* boot-9.scm (setenv): new procedure, scsh compatible.
Gary Houston [Sat, 26 Jul 1997 20:37:05 +0000 (20:37 +0000)]
* boot-9.scm (setenv): new procedure, scsh compatible.

26 years ago* dynwind.c (scm_dowinds): Handle fluids on the wind list.
Marius Vollmer [Sat, 26 Jul 1997 20:08:42 +0000 (20:08 +0000)]
* dynwind.c (scm_dowinds): Handle fluids on the wind list.
* fluids.h (scm_internal_with_fluids, scm_with_fluids,
scm_swap_fluids, scm_swap_fluids_reverse): New prototypes.
* fluids.c (scm_internal_with_fluids, scm_with_fluids,
scm_swap_fluids, scm_swap_fluids_reverse): New functions.

26 years ago*** empty log message ***
Marius Vollmer [Sat, 26 Jul 1997 20:03:52 +0000 (20:03 +0000)]
*** empty log message ***

26 years ago* boot-9.scm (with-fluids): New macro to go with the
Marius Vollmer [Sat, 26 Jul 1997 20:03:23 +0000 (20:03 +0000)]
* boot-9.scm (with-fluids): New macro to go with the
builtin `with-fluids*'.

26 years ago* eval.c (scm_apply): Handle the case when a tc7_sybr_2 is applied
Mikael Djurfeldt [Fri, 25 Jul 1997 15:04:50 +0000 (15:04 +0000)]
* eval.c (scm_apply): Handle the case when a tc7_sybr_2 is applied
to a list of length zero correctly.

26 years agoNEWS: added new dup variants amound other things.
Gary Houston [Thu, 24 Jul 1997 09:11:02 +0000 (09:11 +0000)]
NEWS: added new dup variants amound other things.

26 years ago* md/axp.s, md/axp_b.s: Changed comments from C-style to # to
Mikael Djurfeldt [Thu, 24 Jul 1997 03:06:08 +0000 (03:06 +0000)]
* md/axp.s, md/axp_b.s: Changed comments from C-style to # to
please the alpha assembler.

26 years ago* slib.scm (install-require-module): In newer versions of slib
Mikael Djurfeldt [Thu, 24 Jul 1997 02:32:42 +0000 (02:32 +0000)]
* slib.scm (install-require-module): In newer versions of slib

26 years agoLine-oriented i/o:
Tim Pierce [Wed, 23 Jul 1997 21:20:55 +0000 (21:20 +0000)]
Line-oriented i/o:
scm_gen_read_line
scm_read_line
scm_fgets
scm_generic_fgets

26 years ago* configure.in: Added thread support for the alpha architecture.
Mikael Djurfeldt [Wed, 23 Jul 1997 18:36:44 +0000 (18:36 +0000)]
* configure.in: Added thread support for the alpha architecture.
configure: Regenerated.

26 years ago* boot-9.scm: If using emacs interface, enable backtraces
Mikael Djurfeldt [Wed, 23 Jul 1997 18:15:37 +0000 (18:15 +0000)]
* boot-9.scm: If using emacs interface, enable backtraces
automatically.

26 years ago* ioext.h: removed scm_duplicate_port prototype.
Gary Houston [Mon, 21 Jul 1997 08:52:26 +0000 (08:52 +0000)]
* ioext.h: removed scm_duplicate_port prototype.

* ioext.c (scm_primitive_dup2): return the new file descriptor
instead of SCM_UNSPECIFIED, since similarity to scm_primitive_dup
is convenient.
(scm_fdopen): bug fix: don't try to make port unbuffered until its
stream has been set.
(scm_duplicate_port): deleted, there's now an implementation in
boot-9.scm.
(scm_primitive_dup2): do nothing if newfd == oldfd.

* boot-9.scm (dup->port, dup->inport, dup->outport, dup->fdes,
dup, fdes->inport, fdes->outport, port->fdes): new procedures.
(duplicate-port): was a C primitive, now it's here.
(move->fdes): allow the first argument to be a file descriptor.
Return the modified port or file descriptor (was unspecified.)