bpt/guile.git
27 years agoAdded argument checking to trace.
Mikael Djurfeldt [Sat, 1 Mar 1997 14:53:27 +0000 (14:53 +0000)]
Added argument checking to trace.

27 years ago* debug.scm (trace-entry, trace-exit): Check that we're on a repl
Mikael Djurfeldt [Sat, 1 Mar 1997 14:26:57 +0000 (14:26 +0000)]
* debug.scm (trace-entry, trace-exit): Check that we're on a repl
stack before printing traced frames; Re-enable trace flag at end
of handlers.

27 years ago* eval.c (scm_deval): Removed some old code.
Mikael Djurfeldt [Sat, 1 Mar 1997 14:23:27 +0000 (14:23 +0000)]
* eval.c (scm_deval): Removed some old code.
(ENTER_APPLY): Bugfix: Reset apply-frame trap on trap as is done
with the others.
(ENTER_APPLY, scm_deval): Reset trace flag on apply-frame and
exit-frame traps.

27 years agoExperimental hacks emulating the Guile-iii Tk interface.
Mikael Djurfeldt [Sat, 1 Mar 1997 02:04:54 +0000 (02:04 +0000)]
Experimental hacks emulating the Guile-iii Tk interface.

27 years agoExperimental hack implementing the Guile side of a prototype Emacs
Mikael Djurfeldt [Sat, 1 Mar 1997 02:04:00 +0000 (02:04 +0000)]
Experimental hack implementing the Guile side of a prototype Emacs
interface.

27 years ago * debug.scm: Add hook for reset of trace level at abort.
Mikael Djurfeldt [Sat, 1 Mar 1997 01:34:23 +0000 (01:34 +0000)]
* debug.scm: Add hook for reset of trace level at abort.

* boot-9.scm (run-hooks): New procedure.
(add-hooks!): New macro.
Change hooks to use these functions.

27 years ago(Slight improvement from previous fix.)
Mikael Djurfeldt [Sat, 1 Mar 1997 01:01:09 +0000 (01:01 +0000)]
(Slight improvement from previous fix.)

27 years ago* * debug.scm: *Warning* This feature is a bit premature. I add
Mikael Djurfeldt [Fri, 28 Feb 1997 23:11:22 +0000 (23:11 +0000)]
* * debug.scm: *Warning* This feature is a bit premature.  I add
it anyway because 1. it is very useful, and, 2. you can start
making it less premature by complaining to me and by modifying
the source! :-)
(trace): Given one or more procedure objects, trace each one.
Given no arguments, show all traced procedures.
(untrace): Given one or more procedure objects, untrace each one.
Given no arguments, untrace all traced procedures.  The tracing in
Guile have an advantage to most other systems: We don't create new
procedure objects, but mark the procedure objects themselves.
This means that also anonymous and internal procedures can be
traced.

* boot-9.scm (error-catching-loop): Added handling of apply-frame
and exit-frame exceptions.

* * boot-9.scm (assert-repl-prompt, the-prompt-string): Removed.
(set-repl-prompt!): Setter for repl prompt.
(scm-style-repl): If prompt is #f, don't prompt; if prompt is a
string, display it; if prompt is a thunk, call it and display its
result; otherwise display "> ".
(Change suggested by Roland Orre <orre@nada.kth.se>.)

27 years ago* symbols.c (msymbolize): Bugfix: Must initialize property list to
Mikael Djurfeldt [Fri, 28 Feb 1997 23:10:00 +0000 (23:10 +0000)]
* symbols.c (msymbolize): Bugfix: Must initialize property list to
SCM_EOL.

27 years ago* procs.c: Introduce the existent C function scm_thunk_p at the
Mikael Djurfeldt [Fri, 28 Feb 1997 21:37:30 +0000 (21:37 +0000)]
* procs.c: Introduce the existent C function scm_thunk_p at the
Scheme level as well.

27 years ago* r4rs.scm (%load-verbosely): Reverted change to
Mikael Djurfeldt [Thu, 27 Feb 1997 23:05:23 +0000 (23:05 +0000)]
* r4rs.scm (%load-verbosely): Reverted change to
`module-defined?', since the module system isn't bootstrapped when
we load r4rs.scm.  This is just a temporary fix to make the
repository version runnable.

27 years ago* boot-9.scm: Removed the enabling of debug evaluator and
Mikael Djurfeldt [Thu, 27 Feb 1997 22:36:16 +0000 (22:36 +0000)]
* boot-9.scm: Removed the enabling of debug evaluator and
recording of source code positions.  This was placed there for our
convenience, but it has already sneaked into the distribution
once... so we'd better add this in our local copies instead when
we need it.  (These options are normally enabled at the end of
boot-9.scm when loading the debug module.)

27 years ago*** empty log message ***
Marius Vollmer [Thu, 27 Feb 1997 15:37:02 +0000 (15:37 +0000)]
*** empty log message ***

27 years ago* boot-9.scm (module-defined?): New function.
Marius Vollmer [Thu, 27 Feb 1997 15:36:04 +0000 (15:36 +0000)]
* boot-9.scm (module-defined?): New function.
(macroexpand-1, macroexpand): Use local-ref instead of defined?
and eval.
* r4rs.scm (%load-verbosely): Use "module-defined?" instead of
"defined?".
* slib.scm (defined?): New function to take the place of the
builtin "defined?".  It allways examines the slib module.

27 years ago* symbols.c, symbols.h (scm_symbol_value0): New function. Can be
Mikael Djurfeldt [Wed, 26 Feb 1997 12:08:26 +0000 (12:08 +0000)]
* symbols.c, symbols.h (scm_symbol_value0): New function.  Can be
used from C to easily lookup the value of a symbol in the current
module.

27 years ago*** empty log message ***
Mikael Djurfeldt [Mon, 24 Feb 1997 23:47:26 +0000 (23:47 +0000)]
*** empty log message ***

27 years ago* ltconfig, ltmain.sh: New versions from libtool-0.9.
Mikael Djurfeldt [Mon, 24 Feb 1997 23:41:28 +0000 (23:41 +0000)]
* ltconfig, ltmain.sh: New versions from libtool-0.9.

27 years ago* configure.in: Added AM_MAINTAINER_MODE
Mikael Djurfeldt [Mon, 24 Feb 1997 23:35:55 +0000 (23:35 +0000)]
* configure.in: Added AM_MAINTAINER_MODE
  Makefile.in, aclocal.m4, configure: Regenerated

27 years ago* unif.c (scm_init_unif): Added #include "unif.x". (There are two
Mikael Djurfeldt [Mon, 24 Feb 1997 23:21:23 +0000 (23:21 +0000)]
* unif.c (scm_init_unif): Added #include "unif.x".  (There are two
scm_init_unif in this file.  This will also fix a previous problem
with guile-snarf.)

27 years agoMoved paragraph about guile@cygnus.com into the section about getting
Jim Blandy [Mon, 24 Feb 1997 19:56:30 +0000 (19:56 +0000)]
Moved paragraph about guile@cygnus.com into the section about getting
Guile.

Added paragraph describing what's installed, to make it more clear
that you only need libguile.a.

27 years ago* gdb_interface.h (GDB_INTERFACE): Added some (void *) casts to avoid
Mikael Djurfeldt [Fri, 21 Feb 1997 23:02:01 +0000 (23:02 +0000)]
* gdb_interface.h (GDB_INTERFACE): Added some (void *) casts to avoid
warnings.

27 years ago*** empty log message ***
Marius Vollmer [Fri, 21 Feb 1997 18:22:50 +0000 (18:22 +0000)]
*** empty log message ***

27 years ago* Makefile.am (EXTRA_libguile_la_SOURCES): New variable to hold
Marius Vollmer [Fri, 21 Feb 1997 18:21:53 +0000 (18:21 +0000)]
* Makefile.am (EXTRA_libguile_la_SOURCES): New variable to hold
source files that are not always included in libguile but should
have their dependencies calculated by automake.  This variable is
recognized by automake, no further magic is needed.
(libguile_la_DEPENDENCIES): Changed to @LIBLOBJS@.  Libtool wants
to deal exclusively with *.lo files, as it seems.  The *.o files
are built automatically when the corresponding *.lo file gets
built.

27 years agoUpdate for post-1.0 release.
Jim Blandy [Fri, 21 Feb 1997 03:21:36 +0000 (03:21 +0000)]
Update for post-1.0 release.

27 years agoInitial, incomplete revision of source code access module for Guile debugger.
Jim Blandy [Wed, 19 Feb 1997 19:07:01 +0000 (19:07 +0000)]
Initial, incomplete revision of source code access module for Guile debugger.

27 years ago*** empty log message ***
Jim Blandy [Wed, 19 Feb 1997 19:05:24 +0000 (19:05 +0000)]
*** empty log message ***

27 years ago* list.h (scm_list_cdr_ref): Delete prototype; function no longer
Jim Blandy [Wed, 19 Feb 1997 19:05:11 +0000 (19:05 +0000)]
* list.h (scm_list_cdr_ref): Delete prototype; function no longer
exists.

27 years ago* unif.c (scm_array_set_x): minor change to argument error checking.
Gary Houston [Sat, 15 Feb 1997 18:49:59 +0000 (18:49 +0000)]
* unif.c (scm_array_set_x): minor change to argument error checking.

27 years ago* boot-9.scm (read-sharp): define directly, don't go through a
Gary Houston [Sat, 15 Feb 1997 18:48:12 +0000 (18:48 +0000)]
* boot-9.scm (read-sharp): define directly, don't go through a
%read-sharp layer.
* boot-9.scm (uniform-vector-set!): use uniform-array-set1!, not
uniform-vector-set1! which doesn't exist.

27 years ago* Makefile.am (libguile_la_SOURCES): Remove backtrace.c, debug.c,
Jim Blandy [Tue, 11 Feb 1997 23:25:55 +0000 (23:25 +0000)]
* Makefile.am (libguile_la_SOURCES): Remove backtrace.c, debug.c,
inet_aton.c, srcprop.c, stacks.c, and strerror.c from this list.
They should only be included in the library at configure.in's
discretion.
(libguile_la_LDADD): Include the appropriate .lo files here.
(libguile_la_DEPENDENCIES): List the corresponding .o files here,
so we know when to build them (and their .lo bretheren).
* configure.in (LIBLOBJS): New substituted variable.  We let
configure decide which .o files to include in LIBOBJS, and then
put the corresponding list of .lo files in LIBLOBJS.  The latter
is what we pass to libtool.
* Makefile.in, configure: regenerated.

27 years ago * gh_funcs.c (gh_define): added this function.
Mark Galassi [Mon, 10 Feb 1997 23:39:51 +0000 (23:39 +0000)]
* gh_funcs.c (gh_define): added this function.

* gh_init.c (gh_catch): fixed stupid bug, gh_catch() was not
  returning anything.

* gh_data.c (gh_scm2newstr): Renamed gh_scm2str0() to
gh_scm2newstr(), and did away with the str0 convention (it doesn't
seem to belong in gh_).
(gh_scm2str): this function now copies Scheme data to a
pre-allocated C string.

27 years agosynching
Mark Galassi [Mon, 10 Feb 1997 14:43:01 +0000 (14:43 +0000)]
synching

27 years ago* boot-9.scm (backtrace): Removed. (A C version now exists in
Mikael Djurfeldt [Mon, 10 Feb 1997 01:05:50 +0000 (01:05 +0000)]
* boot-9.scm (backtrace): Removed.  (A C version now exists in
backtrace.c.)

27 years ago* symbols.c (scm_sysintern0): New function. Contains the core of
Mikael Djurfeldt [Mon, 10 Feb 1997 01:01:54 +0000 (01:01 +0000)]
* symbols.c (scm_sysintern0): New function.  Contains the core of
old scm_sysintern but doesn't take a second value argument.
(scm_sysintern): Now uses scm_sysintern0.
(scm_sysintern_no_module_lookup): Renamed to
scm_sysintern0_no_module_lookup and doesn't take a second value
argument any longer.

* symbols.h (scm_sysintern0: Added declaration.

* options.c (scm_init_opts): Use scm_sysintern0 instead of
scm_sysintern when interning option keys.  Otherwise we risk
destroying the values of already interned variables.

* symbols.c (scm_sym2vcell): Bugfix: Treat definedp as
scheme-level boolean (use SCM_NFALSEP).

* backtrace.c (scm_init_backtrace): Make Scheme-level variable
`the-last-stack'.
(scm_backtrace): New function. (C version of old function from
boot-9.scm) Motivation: Make it possible to display backtraces
without depending on boot-9.scm.  (I'm uncertain if this
motivation is good enough...)

* root.h (scm_root_state): Add member the_last_stack_var.
(scm_the_stack_var): Defined to scm_root->the_last_stack_var.

* root.c (mark_root): Mark scm_the_last_stack_var.

* init.c (scm_start_stack): Initialize scm_the_last_stack_var to
SCM_BOOL_F.

27 years agoclean up last change
Jim Blandy [Sun, 9 Feb 1997 22:01:42 +0000 (22:01 +0000)]
clean up last change

27 years agochange testing for repository relocation
Jim Blandy [Sun, 9 Feb 1997 21:31:46 +0000 (21:31 +0000)]
change testing for repository relocation

27 years agoadded Gary to author list for manual and changed a conflicting node name
Mark Galassi [Sun, 9 Feb 1997 17:50:42 +0000 (17:50 +0000)]
added Gary to author list for manual and changed a conflicting node name

27 years ago* throw.c (mark_lazy_catch, free_lazy_catch): Removed.
Mikael Djurfeldt [Sun, 9 Feb 1997 16:21:49 +0000 (16:21 +0000)]
* throw.c (mark_lazy_catch, free_lazy_catch): Removed.
1. mark_lazy_catch didn't mark the smob.
2. Both functions above have standard variants:
(lazy_catch_funs): Changed mark_lazy_catch --> scm_mark0,
free_lazy_catch --> scm_free0.

27 years ago* configure.in: Added changequote(,) before the host case (since
Mikael Djurfeldt [Sun, 9 Feb 1997 13:29:55 +0000 (13:29 +0000)]
* configure.in: Added changequote(,) before the host case (since
we use [ and ] in a pattern).
* configure: Regenerated.

27 years ago*** empty log message ***
Jim Blandy [Fri, 7 Feb 1997 23:02:10 +0000 (23:02 +0000)]
*** empty log message ***

27 years ago* configure.in: Recognize i686 as an okay processor too.
Jim Blandy [Fri, 7 Feb 1997 23:01:51 +0000 (23:01 +0000)]
* configure.in: Recognize i686 as an okay processor too.

27 years ago* config.sub, config.guess: New versions, that handle i686, etc.
Jim Blandy [Fri, 7 Feb 1997 22:58:26 +0000 (22:58 +0000)]
* config.sub, config.guess: New versions, that handle i686, etc.

27 years ago*** empty log message ***
Jim Blandy [Fri, 7 Feb 1997 22:41:10 +0000 (22:41 +0000)]
*** empty log message ***

27 years ago* throw.c (scm_internal_lazy_catch): New function.
Jim Blandy [Fri, 7 Feb 1997 22:38:27 +0000 (22:38 +0000)]
* throw.c (scm_internal_lazy_catch): New function.
(scm_lazy_catch): Rewritten to use it.
(scm_ithrow): Handle the new lazy catch representation.
Use SCM_LAZY_CATCH_P, instead of assuming that any wind list entry
that doesn't have a jmpbuf is a lazy catch clause.
(tc16_lazy_catch, struct lazy_catch, mark_lazy_catch,
free_lazy_catch, print_lazy_catch, lazy_catch_funs,
make_lazy_catch, SCM_LAZY_CATCH_P): Support funs, including a new
smob.
(scm_init_throw): Register the new lazy-catch smob type.
* throw.h (scm_internal_lazy_catch): decl for new function.

27 years ago* throw.c (scm_internal_lazy_catch): New function.
Jim Blandy [Fri, 7 Feb 1997 22:38:20 +0000 (22:38 +0000)]
* throw.c (scm_internal_lazy_catch): New function.
(scm_lazy_catch): Rewritten to use it.
(scm_ithrow): Handle the new lazy catch representation.
Use SCM_LAZY_CATCH_P, instead of assuming that any wind list entry
that doesn't have a jmpbuf is a lazy catch clause.
(tc16_lazy_catch, struct lazy_catch, mark_lazy_catch,
free_lazy_catch, print_lazy_catch, lazy_catch_funs,
make_lazy_catch, SCM_LAZY_CATCH_P): Support funs, including a new
smob.
(scm_init_throw): Register the new lazy-catch smob type.
* throw.h (scm_internal_lazy_catch): decl for new function.

* throw.c (scm_internal_catch): Doc fixes.

27 years ago* alloca.c: New file, needed to support the AC_FUNC_ALLOCA call in
Jim Blandy [Fri, 7 Feb 1997 22:37:10 +0000 (22:37 +0000)]
* alloca.c: New file, needed to support the AC_FUNC_ALLOCA call in
configure.in.  Including this might cause problems if applications
that link against libguile include their own copies of alloca, but
if they're using autoconf, they should be adding libguile to LIBS
before calling AC_FUNC_ALLOCA anyway, in which case they'll find
the copy in libguile, and things will be okay.  (I think.)

27 years ago* strop.c (scm_string_upcase_x, scm_string_downcase_x): moved from
Gary Houston [Thu, 6 Feb 1997 07:05:08 +0000 (07:05 +0000)]
* strop.c (scm_string_upcase_x, scm_string_downcase_x): moved from
unif.c.
strop.h: move prototypes too.
* posix.c (scm_init_posix): don't intern EINTR since it's now done
elsewhere.

* ioext.c (scm_init_ioext): don't intern stat macros, S_IRUSR
etc.  I deleted them from filesys.c long ago, but didn't
notice they were here too (although ineffective since
sys/stat.h wasn't included).

27 years ago * eval.c: Don't define alloca in GCC case. gcc will automatically
Tom Tromey [Wed, 5 Feb 1997 18:19:57 +0000 (18:19 +0000)]
    * eval.c: Don't define alloca in GCC case.  gcc will automatically
        use __builtin_alloca if appropriate.

27 years ago*** empty log message ***
Jim Blandy [Wed, 5 Feb 1997 00:25:25 +0000 (00:25 +0000)]
*** empty log message ***

27 years ago*** empty log message ***
Jim Blandy [Wed, 5 Feb 1997 00:20:01 +0000 (00:20 +0000)]
*** empty log message ***

27 years ago*** empty log message ***
Jim Blandy [Tue, 4 Feb 1997 23:30:20 +0000 (23:30 +0000)]
*** empty log message ***

27 years ago* eval.c (safe_setjmp): New function: trivial wrapper for setjmp.
Jim Blandy [Tue, 4 Feb 1997 23:30:07 +0000 (23:30 +0000)]
* eval.c (safe_setjmp): New function: trivial wrapper for setjmp.
(SCM_CEVAL, SCM_APPLY): Call it, instead of setjmp, to make sure
that values of automatic variables are preserved.  See comments
for safe_setjmp for details.

27 years ago*** empty log message ***
Jim Blandy [Tue, 4 Feb 1997 22:22:19 +0000 (22:22 +0000)]
*** empty log message ***

27 years agoChange from Thomas Morgan:
Jim Blandy [Tue, 4 Feb 1997 22:21:37 +0000 (22:21 +0000)]
Change from Thomas Morgan:
* variable.c: Include eq.h.
(var_equal): New function.
(variable_smob): Use var_equal as the discriminator for variables.

27 years ago* throw.c (s_throw): Remove extraneous declaration.
Jim Blandy [Tue, 4 Feb 1997 22:21:31 +0000 (22:21 +0000)]
* throw.c (s_throw): Remove extraneous declaration.

27 years ago*** empty log message ***
Jim Blandy [Tue, 4 Feb 1997 22:13:52 +0000 (22:13 +0000)]
*** empty log message ***

27 years ago* simpos.c (SYSTNAME): Accept both 'unix' and '__unix' as
Jim Blandy [Tue, 4 Feb 1997 22:00:42 +0000 (22:00 +0000)]
* simpos.c (SYSTNAME): Accept both 'unix' and '__unix' as
indications of Unixness.
* stime.c: Same.

27 years ago* configure.in: Call AC_FUNC_ALLOCA, to see if we have alloca.
Jim Blandy [Tue, 4 Feb 1997 22:00:30 +0000 (22:00 +0000)]
* configure.in: Call AC_FUNC_ALLOCA, to see if we have alloca.
* eval.c: Add necessary CPP cruft to support that.
* configure, Makefile.in, scmconfig.h.in: regenerated.

27 years ago*** empty log message ***
Jim Blandy [Tue, 4 Feb 1997 21:59:53 +0000 (21:59 +0000)]
*** empty log message ***

27 years agoChange from Thomas Morgan:
Jim Blandy [Tue, 4 Feb 1997 21:59:40 +0000 (21:59 +0000)]
Change from Thomas Morgan:
* procprop.c (scm_procedure_properties): Convert the Scheme
boolean returned by scm_procedure_p into a C boolean before using
it as a condition for SCM_ASSERT.
(scm_procedure_property): Likewise.

27 years ago* configure.in: Call AC_FUNC_ALLOCA, to see if we have alloca.
Jim Blandy [Tue, 4 Feb 1997 21:59:23 +0000 (21:59 +0000)]
* configure.in: Call AC_FUNC_ALLOCA, to see if we have alloca.
* eval.c: Add necessary CPP cruft to support that.
* configure, Makefile.in: regenerated.

27 years ago* * net_db.c (scm_lnaof): change scheme name from lnaof to inet-lnaof.
Gary Houston [Tue, 4 Feb 1997 05:27:57 +0000 (05:27 +0000)]
* * net_db.c (scm_lnaof): change scheme name from lnaof to inet-lnaof.
* read.c (scm_lreadr): use scm_misc_error to improve one of the
"unknown # object" error messages.

* strop.c (scm_i_index, scm_i_rindex): combine into one procedure
(scm_i_index) and declare it static.  Add a 'direction' argument
to indicate what way the search should go.
(scm_i_index): throw out-of-range error instead of wrong-type-arg
if indices are bad.
(scm_string_index, scm_string_rindex): adjust usage of scm_i_index.
strop.h: remove scm_i_index, scm_i_rindex prototypes.

27 years ago*** empty log message ***
Jim Blandy [Mon, 3 Feb 1997 20:34:34 +0000 (20:34 +0000)]
*** empty log message ***

27 years ago * ioext.c, ioext.h: remove obsolete _sys_ from 9 procedure names.
Gary Houston [Fri, 31 Jan 1997 04:36:24 +0000 (04:36 +0000)]
* ioext.c, ioext.h: remove obsolete _sys_ from 9 procedure names.

* * posix.c (scm_fork): Scheme name changed from fork to primitive-fork,
to avoid clash with various scsh forks.

27 years agoThe following two changes (ramap.c, throw.c) are motivated by the
Mikael Djurfeldt [Thu, 30 Jan 1997 20:25:09 +0000 (20:25 +0000)]
The following two changes (ramap.c, throw.c) are motivated by the
apparent unportability of forward declarations of static arrays of
the form `static foo bar[];'.

* ramap.c (scm_array_fill_x): Moved above scm_array_fill_int.
(ra_rpsubrs, ra_asubrs): Moved to the top of array code.

* throw.c (scm_throw): Moved above scm_ithrow.

* options.h: Removed the extern declarations of scm_yes_sym and
scm_no_sym since these are static.

27 years agosmall manual stuff
Mark Galassi [Tue, 28 Jan 1997 14:46:20 +0000 (14:46 +0000)]
small manual stuff

27 years ago * boot-9.scm (read-line!, read-delimited!, read-delimited,
Gary Houston [Sat, 25 Jan 1997 18:24:54 +0000 (18:24 +0000)]
* boot-9.scm (read-line!, read-delimited!, read-delimited,
read-line): new procedures, see libguile/ChangeLog.

27 years ago * ports.c: add SCM_PROC declarations for pt-size and pt-member.
Gary Houston [Sat, 25 Jan 1997 18:23:49 +0000 (18:23 +0000)]
* ports.c: add SCM_PROC declarations for pt-size and pt-member.

* Makefile.am: remove AWK=@AWK@.
Add a rule for generating errnos.list.
(CLEANFILES): put errnos.list here instead of in DISTCLEANFILES.

* configure.in: add AC_SUBST(AWK) and AC_SUBST(ERRNO_EXTRACT).
don't extract errnos, just set a variable (avoids the
need to recompile error.c just because configure is run.)

* unif.h: update prototypes.
* unif.c (scm_uniform_array_read,write): change the offset and
length arguments to start and end, for consistency.

* __scm.h: uncomment SCM_ARG6 and SCM_ARG7, I needed SCM_ARG6.

* ioext.h: update prototypes.
* * ioext.c (scm_read_delimited_x): replaces scm_read_line and
scm_read_line_x, it's a more general procedure using an
interface from scsh.  read-line and read-line! are now defined
in boot-9.scm.
*   Note that the new read-line trims the terminator
by default, previously it was appended to the returned string.  An
optional argument specifies how to process the terminator (scsh
compatible).  For the old behaviour: (read-line port 'concat).
scm_read_line, scm_read_line_x: deleted.  (read-line port 'split)
returns a pair, but is converted to multiple values if the scsh
module is loaded.

socket.h: update prototypes.
* socket.c (scm_recvfrom): for consistency with other procedures,
take start and end as separate optional arguments.
* (scm_recv, scm_recvfrom): don't allow the second argument
to be a size, only a buffer.  Change the scheme names to
recv! and recvfrom!.  Don't return the buffer.

* ioext.h, posix.h: move prototypes too.
* ioext.c, posix.c (scm_read_line, scm_read_line_x, scm_write_line:
moved back from posix.c to ioext.c.  Also move #includes of "genio.h"
"read.h" and "unif.h".
* ioext.c: include "chars.h"

27 years agosome updates on gh_ and also incorporated Jim Blandy's essay in the ref manual
Mark Galassi [Sat, 25 Jan 1997 00:01:08 +0000 (00:01 +0000)]
some updates on gh_ and also incorporated Jim Blandy's essay in the ref manual

27 years agolittle stuff on manual
Mark Galassi [Thu, 23 Jan 1997 16:17:30 +0000 (16:17 +0000)]
little stuff on manual

27 years agoadded lost entries after getting confused about a conflict
Marius Vollmer [Wed, 22 Jan 1997 22:35:21 +0000 (22:35 +0000)]
added lost entries after getting confused about a conflict

27 years agofixed manual problems
Mark Galassi [Wed, 22 Jan 1997 00:31:34 +0000 (00:31 +0000)]
fixed manual problems

27 years agoadded newdoc tree
Mark Galassi [Tue, 21 Jan 1997 15:27:49 +0000 (15:27 +0000)]
added newdoc tree

27 years ago* dynl.c: The dynamic linking and module registration functions
Marius Vollmer [Mon, 20 Jan 1997 19:11:41 +0000 (19:11 +0000)]
* dynl.c: The dynamic linking and module registration functions
are now defined even when dynamic linking is not available for the
host system.  Some of their functionality can be done without
dynamic linking; when it's really needed, they throw errors.

27 years ago * init.scm (index, rindex): replace versions in utilities.scm with
Gary Houston [Sat, 18 Jan 1997 17:51:33 +0000 (17:51 +0000)]
* init.scm (index, rindex): replace versions in utilities.scm with
primitives.
load errno.scm.

* netconst.scm: undefine maybe-define and maybe-define-so after use.
* errno.scm: new file.

* fports.c (scm_open_file): pass errno to scm_syserror_msg.
* filesys.h: update prototypes.  Remove macros: SCM_FD_P, SCM_FD_FLAGS,
SCM_FD.
* filesys.c (scm_sys_stat, scm_sys_lstat): pass errno to
scm_syserror_msg.
* (scm_sys_read_fd, scm_sys_write_fd, scm_sys_close, scm_sys_lseek,
scm_sys_dup): deleted: FD capability will be added to other
procedures.
* Remove support for the FD object type: scm_tc16_fd, scm_fd_print,
scm_fd_free, fd_smob, scm_intern_fd.
* (scm_open): renamed from scm_sys_open.  Return a port instead of
an FD object.  Make the mode argument optional.
* (scm_sys_create): deleted, it's just a special case of open.
(scm_init_filesys): move interning of constants O_CREAT etc.,
here (were previously using SCM_CONST_LONG macro).
Add missing constants: O_RDONLY, O_WRONLY, O_RDWR, O_CREAT.
don't newsmob fd.
(numerous _sys_ procedures): remove gratuitous _sys_ from names.
include "fports.h" and <stdio.h>
(scm_stat, scm_select): don't support FD objects.

* error.h: adjust scm_syserror_msg prototype.
* error.c (scm_syserror_msg): take an extra argument for errno.
Using the global value didn't always work, since it could be
reset by procedure calls in the message or args arguments.

* fports.c (scm_setbuf0): call setbuf even if FIONREAD is not defined.
I don't understand why the check was there (and what about the
ultrix check?)

* strop.c (scm_string_copy): allow shared substrings to be copied.

* unif.h: corresponding change to prototypes.
* unif.c (scm_uniform_array_read_x, scm_uniform_array_write_x):
recognize two new optional arguments: offset and length.  Allow
the port argument to be an integer (file descriptor, for scsh).
Include <unistd.h> for "read" prototype.

27 years ago*** empty log message ***
Jim Blandy [Sat, 18 Jan 1997 16:48:23 +0000 (16:48 +0000)]
*** empty log message ***

27 years ago*** empty log message ***
Marius Vollmer [Sat, 18 Jan 1997 11:51:03 +0000 (11:51 +0000)]
*** empty log message ***

27 years ago* symbols.c (scm_sysintern): Renamed to
Marius Vollmer [Sat, 18 Jan 1997 11:49:35 +0000 (11:49 +0000)]
* symbols.c (scm_sysintern): Renamed to
scm_sysintern_no_module_lookup.
(scm_sysintern): New function to take the place of the old
scm_sysintern. It uses the current toplevel lookup closure to give
the symbol its value.  This is a temporary hack to put packages
like gtcltk into their own module.
(scm_can_use_top_level_lookup_closure_var): New variable to tell
us whether `scm_top_level_lookup_closure_var' has been initialized
and is usable.
* eval.c (scm_init_eval): Set it.

27 years ago* dynl.c (scm_dynamic_func): New function to get the address of a
Marius Vollmer [Sat, 18 Jan 1997 11:40:31 +0000 (11:40 +0000)]
* dynl.c (scm_dynamic_func): New function to get the address of a
function in a dynamic object.
(scm_dynamic_call, scm_dynamic_args_call): Accept the values
produced by scm_dynamic_func as the thing to call.

* dynl.c, dynl-dl.c, dynl-dld.c, dynl-shl.c: Restructured.
(scm_register_module_xxx, scm_registered_modules,
scm_clear_registered_modules): New functions.

27 years ago* configure.in: Only define DYNAMIC_LINKING when one of the system
Marius Vollmer [Sat, 18 Jan 1997 11:38:15 +0000 (11:38 +0000)]
* configure.in: Only define DYNAMIC_LINKING when one of the system
dependent functions is detected.

27 years ago*** empty log message ***
Marius Vollmer [Sat, 18 Jan 1997 11:30:37 +0000 (11:30 +0000)]
*** empty log message ***

27 years agoAdded dynamic linking of modules. See libguile/DYNAMIC-LINKING.
Marius Vollmer [Sat, 18 Jan 1997 11:29:20 +0000 (11:29 +0000)]
Added dynamic linking of modules. See libguile/DYNAMIC-LINKING.

* boot-9.scm (split-c-module-name, convert-c-registered-modules,
init-dynamic-module, dynamic-maybe-call,
find-and-link-dynamic-module, link-dynamic-module,
try-module-dynamic-link, registered-modules): New definitions for
dynamic linking of modules.
(resolve-module): Try to dynamically link the requested module
after failing to load it as Scheme code.

27 years ago*** empty log message ***
Jim Blandy [Fri, 17 Jan 1997 19:27:57 +0000 (19:27 +0000)]
*** empty log message ***

27 years ago*** empty log message ***
Jim Blandy [Tue, 14 Jan 1997 17:55:17 +0000 (17:55 +0000)]
*** empty log message ***

27 years ago* Makefile.am: add AWK=@AWK@ (?)
Gary Houston [Mon, 13 Jan 1997 06:22:51 +0000 (06:22 +0000)]
* Makefile.am: add AWK=@AWK@ (?)

27 years ago* Makefile.am (EXTRA_DIST): add errnos_cnvt.awk, errnos.default,
Gary Houston [Mon, 13 Jan 1997 04:05:27 +0000 (04:05 +0000)]
* Makefile.am (EXTRA_DIST): add errnos_cnvt.awk, errnos.default,
errnos_get.c.
Add a rule to generate errnos.c from errnos.
* error.c (scm_init_error): include errnos.c.
* errnos_cnvt.awk: new file, converts the list of errno codes to
C expressions.
* errnos_get.c: new file.
* errnos.default: new file, contains errnos to try if they can't
be extracted from errno.h.
* configure.in: if using GCC, try and extract errno codes from
errno.h.
Added AC_PROG_AWK.

27 years ago*** empty log message ***
Marius Vollmer [Sat, 11 Jan 1997 19:01:21 +0000 (19:01 +0000)]
*** empty log message ***

27 years ago* configure.in: Replaced AC_PROG_RANLIB with AM_PROG_LIBTOOL.
Marius Vollmer [Sat, 11 Jan 1997 19:00:04 +0000 (19:00 +0000)]
* configure.in: Replaced AC_PROG_RANLIB with AM_PROG_LIBTOOL.
* Makefile.am: Made libguile into a libtool library.
* PLUGIN/guile.config: Removed "-L ../libguile" from xtra_cflags.
Set libtool_libs to indicate that libguile is a libtool library.
See guile/ChangeLog for details.
* .cvsignore: ignore "*.lo", the libtool library objects.

27 years ago*** empty log message ***
Marius Vollmer [Sat, 11 Jan 1997 18:51:00 +0000 (18:51 +0000)]
*** empty log message ***

27 years ago* ltconfig, ltmain.sh: New files for libtool support. libguile,
Marius Vollmer [Sat, 11 Jan 1997 18:50:17 +0000 (18:50 +0000)]
* ltconfig, ltmain.sh: New files for libtool support. libguile,
rx, gh and gtcltk-lib can now be build as shared libraries.
* Makefile.am (EXTRA_DIST): Added ltconfig and ltmain.sh

27 years ago* net_db.c (scm_getserv): add missing SCM_ALLOW_INTS.
Gary Houston [Wed, 8 Jan 1997 07:49:37 +0000 (07:49 +0000)]
* net_db.c (scm_getserv): add missing SCM_ALLOW_INTS.
use htons in getservbyport argument.

27 years ago* boot-9.scm (getservbyport, getservbyname): remove stray %.
Gary Houston [Wed, 8 Jan 1997 07:48:03 +0000 (07:48 +0000)]
* boot-9.scm (getservbyport, getservbyname): remove stray %.

27 years ago*** empty log message ***
Jim Blandy [Wed, 8 Jan 1997 01:52:25 +0000 (01:52 +0000)]
*** empty log message ***

27 years ago* ports.h (SCM_PTOBNUM): Removed extraneous semicolon.
Jim Blandy [Wed, 8 Jan 1997 01:51:14 +0000 (01:51 +0000)]
* ports.h (SCM_PTOBNUM): Removed extraneous semicolon.
* smob.h: (SCM_PTOBNUM): Removed entirely; this definition is a
duplicate.

27 years ago*** empty log message ***
Jim Blandy [Wed, 8 Jan 1997 01:28:55 +0000 (01:28 +0000)]
*** empty log message ***

27 years ago* objprop.c (scm_object_property): No need to take the CDR of the
Jim Blandy [Wed, 8 Jan 1997 01:28:01 +0000 (01:28 +0000)]
* objprop.c (scm_object_property): No need to take the CDR of the
value returned by scm_object_properties, since Aug 20 change.

27 years ago* lineio.scm (make-line-buffering-input-port): Properly test for
Jim Blandy [Wed, 8 Jan 1997 01:27:12 +0000 (01:27 +0000)]
* lineio.scm (make-line-buffering-input-port): Properly test for
the case of an empty buffer list.  The old code assumed that '()
was false.

27 years ago* boot-9.scm (and=>): Rename THUNK argument to PROCEDURE, 'cos
Jim Blandy [Wed, 8 Jan 1997 01:27:01 +0000 (01:27 +0000)]
* boot-9.scm (and=>): Rename THUNK argument to PROCEDURE, 'cos
that's what it is.

27 years ago*** empty log message ***
Jim Blandy [Wed, 8 Jan 1997 00:09:05 +0000 (00:09 +0000)]
*** empty log message ***

27 years ago* configure.in: When checking for struct linger, #include
Jim Blandy [Wed, 8 Jan 1997 00:08:08 +0000 (00:08 +0000)]
* configure.in: When checking for struct linger, #include
<sys/types.h> as well as <sys/socket.h>.  I've never known
<sys/types.h> to cause any portability problems, and Solaris's
<sys/socket.h> needs it.
* configure: Rebuilt.