bpt/guile.git
26 years ago* guile-snarf.in: Pass args through to gcc in a way that preserves
Jim Blandy [Wed, 3 Dec 1997 17:30:39 +0000 (17:30 +0000)]
* guile-snarf.in: Pass args through to gcc in a way that preserves
whitespace boundaries.  (Thanks to Greg Badros.)

26 years ago* ports.c (scm_close_port): Make sure the port is open before
Jim Blandy [Wed, 3 Dec 1997 17:30:24 +0000 (17:30 +0000)]
* ports.c (scm_close_port): Make sure the port is open before
trying to close it.

26 years agoAdd copyrights; tweak comments.
Jim Blandy [Wed, 3 Dec 1997 17:29:12 +0000 (17:29 +0000)]
Add copyrights; tweak comments.

26 years ago * md/axp.s (qt_vstart): Typo fixes, thanks to Alexander Jolk.
Tim Pierce [Tue, 2 Dec 1997 17:36:19 +0000 (17:36 +0000)]
* md/axp.s (qt_vstart): Typo fixes, thanks to Alexander Jolk.

26 years ago * stacks.c (scm_frame_procedure): Reverse the logic in the return
Tim Pierce [Tue, 2 Dec 1997 17:34:07 +0000 (17:34 +0000)]
* stacks.c (scm_frame_procedure): Reverse the logic in the return
statement.  (Thanks to Doug Evans for pointing this out.)

26 years agoacconfig.h: Add USCORE.
Tim Pierce [Mon, 1 Dec 1997 18:22:04 +0000 (18:22 +0000)]
acconfig.h: Add USCORE.
scmconfig.h.in: Regenerated.

26 years ago* coop-defs.h (struct coop_t): Renamed errno --> _errno to prevent
Mikael Djurfeldt [Sun, 30 Nov 1997 10:36:13 +0000 (10:36 +0000)]
* coop-defs.h (struct coop_t): Renamed errno --> _errno to prevent
errno macro expansion of this field name.  (errno is a C
preprocessor macro on some systems.)

26 years agoDoc fix.
Tim Pierce [Sun, 30 Nov 1997 02:35:18 +0000 (02:35 +0000)]
Doc fix.

26 years ago* init.c (scm_start_stack): Removed initialization of
Mikael Djurfeldt [Sat, 29 Nov 1997 10:49:18 +0000 (10:49 +0000)]
* init.c (scm_start_stack): Removed initialization of
scm_the_last_stack_var.

* backtrace.h: Declare scm_the_last_stack_var.

* backtrace.c: Define scm_the_last_stack_var.

* root.c (mark_root): Don't mark the_last_stack_var.

* root.h (scm_root_state): Removed the_last_stack_var.

* throw.c: Added #include "fluids.h"
(ss_handler): `the-last-stack' is now a fluid.

* (backtrace.h, backtrace.c, throw.c): Renamed the_last_stack_var
--> the_last_stack_fluid.

* backtrace.c: Added #include "fluids.h"
(scm_init_backtrace): Initialize `the-last-stack' to a fluid.
(scm_backtrace): `the-last-stack' is now a fluid.

* init.c (scm_boot_guile_1): Moved call to scm_init_backtrace
after scm_init_fluids.

26 years ago* boot-9.scm (error-catching-loop, save-stack): `the-last-stack'
Mikael Djurfeldt [Sat, 29 Nov 1997 01:11:21 +0000 (01:11 +0000)]
* boot-9.scm (error-catching-loop, save-stack): `the-last-stack'
is now a fluid.

26 years ago* backtrace.c: Added #include "fluids.h"
Mikael Djurfeldt [Sat, 29 Nov 1997 01:10:21 +0000 (01:10 +0000)]
* backtrace.c: Added #include "fluids.h"
(scm_init_backtrace): Initialize `the-last-stack' to a fluid.
(scm_backtrace): `the-last-stack' is now a fluid.

* init.c (scm_boot_guile_1): Moved call to scm_init_backtrace
after scm_init_fluids.

26 years ago * iselect.c: #ifdef USE_THREADS around thread-related includes.
Tim Pierce [Fri, 28 Nov 1997 22:58:10 +0000 (22:58 +0000)]
* iselect.c: #ifdef USE_THREADS around thread-related includes.

* dynl-dl.c (sysdep_dynl_func): Check both USCORE and
DLSYM_ADDS_USCORE to decide whether to add an underscore.

26 years agoLibtool support for find-and-link-dynamic-module
Tim Pierce [Fri, 28 Nov 1997 17:22:20 +0000 (17:22 +0000)]
Libtool support for find-and-link-dynamic-module

26 years ago* iselect.c (coop_next_runnable_thread,
Mikael Djurfeldt [Fri, 28 Nov 1997 01:11:12 +0000 (01:11 +0000)]
* iselect.c (coop_next_runnable_thread,
coop_wait_for_runnable_thread): Disable interrupts so that no
async is executed before a potential error_revive.
(scm_internal_select): Disable interrupts during the parts of the
code which manipulate the sleep queue and the file descriptors.

26 years ago* iselect.c (coop_next_runnable_thread,
Mikael Djurfeldt [Fri, 28 Nov 1997 00:50:58 +0000 (00:50 +0000)]
* iselect.c (coop_next_runnable_thread,
coop_wait_for_runnable_thread): Disable interrupts so that no
async is executed before a potential error_revive.

26 years ago* iselect.h, iselect.c: New files. Implements
Mikael Djurfeldt [Thu, 27 Nov 1997 18:06:33 +0000 (18:06 +0000)]
* iselect.h, iselect.c: New files.  Implements
scm_internal_select.  (See NEWS.)

26 years agoUpdated
Mikael Djurfeldt [Thu, 27 Nov 1997 18:05:28 +0000 (18:05 +0000)]
Updated

26 years ago* Makefile.am: Added iselect.c and iselect.h.
Mikael Djurfeldt [Thu, 27 Nov 1997 18:04:56 +0000 (18:04 +0000)]
* Makefile.am: Added iselect.c and iselect.h.

* coop.c (coop_qinit): Initialize fields used by
scm_internal_select.
(coop_qget, coop_qget, coop_tmp_queue): Made global.
(coop_next_runnable_thread): If GUILE_ISELECT enabled, use
replacement in iselect.c.
(coop_mutex_lock, coop_condition_variable_wait, coop_abort,
coop_join): If GUILE_ISELECT enabled, use
coop_wait_for_runnable_thread instead of
coop_next_runnable_thread.
(usleep, sleep): New replacements for system functions if
GUILE_ISELECT is enabled.

* coop-threads.h: Declare coop_wait_for_runnable_thread.

* coop-defs.h (coop_t): Added fields used by scm_internal_select.

* filesys.c: Added #include "iselect.h".  Moved FD-macros to
iselect.h.  Implement Scheme level `select' using
scm_internal_select.  (See NEWS.)

* genio.c (scm_getc): Block with scm_internal_select.  (See NEWS.)

* init.c: Call scm_init_iselect.

26 years agoUpdated using the correct versions of libtool and automake
Mikael Djurfeldt [Thu, 27 Nov 1997 18:04:01 +0000 (18:04 +0000)]
Updated using the correct versions of libtool and automake

26 years ago* configure.in: Added code to enable GUILE_ISELECT on systems
Mikael Djurfeldt [Thu, 27 Nov 1997 18:03:06 +0000 (18:03 +0000)]
* configure.in: Added code to enable GUILE_ISELECT on systems
which have the necessary functions (gettimeofday, select).

* acconfig.h: Added GUILE_ISELECT.

26 years ago Fix a memory leak in scm_read_line and a type cast bug in the ptob.
Tim Pierce [Thu, 27 Nov 1997 06:39:46 +0000 (06:39 +0000)]
Fix a memory leak in scm_read_line and a type cast bug in the ptob.
* fports.c (scm_fgets): Use malloc/free rather than scm_must_malloc
  and scm_must_free, since ultimately the string returned will be copied
  by scm_makfrom0str anyway.  Also, read any characters that may have
been pushed onto the port with scm_ungetc.
* ports.c (scm_generic_fgets): Same as for scm_fgets.
* ioext.c (scm_read_line): Free string after Guilifying it.
* ports.h (scm_ptobfuns): fgets method returns a char *, not a char.

26 years agogh bug fix
Anthony Green [Wed, 26 Nov 1997 03:45:23 +0000 (03:45 +0000)]
gh bug fix

26 years agogh bug fix
Anthony Green [Wed, 26 Nov 1997 03:13:00 +0000 (03:13 +0000)]
gh bug fix

26 years agoRegenerated aclocal.m4 and configure with all the necessary
Tim Pierce [Wed, 26 Nov 1997 02:16:16 +0000 (02:16 +0000)]
Regenerated aclocal.m4 and configure with all the necessary
macros (didn't get AM_PROG_LIBTOOL or GUILE_DLSYM_USCORE correct
last time).

26 years agocompleting changes to gh_repl and uniform array stuff
Mark Galassi [Tue, 25 Nov 1997 17:20:23 +0000 (17:20 +0000)]
completing changes to gh_repl and uniform array stuff

26 years agomade changes in gh_repl() and started adding the uniform array stuff to gh_
Mark Galassi [Tue, 25 Nov 1997 06:18:08 +0000 (06:18 +0000)]
made changes in gh_repl() and started adding the uniform array stuff to gh_

26 years ago*** empty log message ***
Tim Pierce [Tue, 25 Nov 1997 02:43:01 +0000 (02:43 +0000)]
*** empty log message ***

26 years ago*** empty log message ***
Tim Pierce [Tue, 25 Nov 1997 00:08:51 +0000 (00:08 +0000)]
*** empty log message ***

26 years agofixed dynl memory leak
Tim Pierce [Sat, 22 Nov 1997 19:15:09 +0000 (19:15 +0000)]
fixed dynl memory leak

26 years agoAdded support for leading dlsym underscore.
Tim Pierce [Fri, 21 Nov 1997 19:39:23 +0000 (19:39 +0000)]
Added support for leading dlsym underscore.

26 years ago*** empty log message ***
Tim Pierce [Thu, 20 Nov 1997 04:40:02 +0000 (04:40 +0000)]
*** empty log message ***

26 years ago* boot-9.scm (set-batch-mode?!, batch-mode?): initialize more
Gary Houston [Sun, 9 Nov 1997 23:36:17 +0000 (23:36 +0000)]
* boot-9.scm (set-batch-mode?!, batch-mode?): initialize more
usefully so they will work from a script.

26 years agoSmall fix of last fix...
Mikael Djurfeldt [Thu, 6 Nov 1997 17:50:19 +0000 (17:50 +0000)]
Small fix of last fix...

26 years ago* regex-posix.c (scm_free_regex_t): Return size of regex_t instead
Mikael Djurfeldt [Thu, 6 Nov 1997 15:09:30 +0000 (15:09 +0000)]
* regex-posix.c (scm_free_regex_t): Return size of regex_t instead
of 0; size_t --> scm_size_t.  Thanks to Bernard Urban.

26 years ago*** empty log message ***
Jim Blandy [Thu, 6 Nov 1997 06:15:27 +0000 (06:15 +0000)]
*** empty log message ***

26 years ago*** empty log message ***
Marius Vollmer [Fri, 31 Oct 1997 22:18:09 +0000 (22:18 +0000)]
*** empty log message ***

26 years ago* boot-9.scm (inherit-print-state): Moved definition to the
Marius Vollmer [Fri, 31 Oct 1997 22:16:24 +0000 (22:16 +0000)]
* boot-9.scm (inherit-print-state): Moved definition to the
neighborhood of the record code.

26 years agoUpdate FTP address for libtool.
Jim Blandy [Mon, 27 Oct 1997 19:09:58 +0000 (19:09 +0000)]
Update FTP address for libtool.

26 years ago*** empty log message ***
Jim Blandy [Mon, 27 Oct 1997 07:07:15 +0000 (07:07 +0000)]
*** empty log message ***

26 years ago* boot-9.scm: Revert changes to this file from Oct 23. It turns
Jim Blandy [Mon, 27 Oct 1997 07:07:03 +0000 (07:07 +0000)]
* boot-9.scm: Revert changes to this file from Oct 23.  It turns
out to interact badly with the Emacs support and the Tcl/Tk
support.  It's not a high enough priority at the moment to be
worth fixing.  I'm leaving the other readline support in, though.

26 years ago* scmconfig.h.in: Updated (HAVE_LIBTERMCAP was added when
Mikael Djurfeldt [Sun, 26 Oct 1997 16:06:23 +0000 (16:06 +0000)]
* scmconfig.h.in: Updated (HAVE_LIBTERMCAP was added when
configure.in was changed).

26 years ago* README (libtool): Tell people to use version 1.0e.
Mikael Djurfeldt [Sun, 26 Oct 1997 15:44:00 +0000 (15:44 +0000)]
* README (libtool): Tell people to use version 1.0e.

26 years ago*** empty log message ***
Jim Blandy [Sun, 26 Oct 1997 07:24:36 +0000 (07:24 +0000)]
*** empty log message ***

26 years ago* Makefile.am (modinclude_HEADERS): Include readline.h here.
Jim Blandy [Sun, 26 Oct 1997 07:24:04 +0000 (07:24 +0000)]
* Makefile.am (modinclude_HEADERS): Include readline.h here.
* Makefile.in: Regenerated.

26 years ago*** empty log message ***
Marius Vollmer [Sat, 25 Oct 1997 21:57:48 +0000 (21:57 +0000)]
*** empty log message ***

26 years ago* print.h (SCM_COERCE_OPORT): Renamed to SCM_COERCE_OUTPORT. An
Marius Vollmer [Sat, 25 Oct 1997 21:54:46 +0000 (21:54 +0000)]
* print.h (SCM_COERCE_OPORT): Renamed to SCM_COERCE_OUTPORT.  An
OPORT is an `open' port, not an output port.

26 years ago* filesys.c (scm_close, set_element, get_element, scm_chown,
Marius Vollmer [Sat, 25 Oct 1997 21:54:12 +0000 (21:54 +0000)]
* filesys.c (scm_close, set_element, get_element, scm_chown,
scm_chmod, scm_stat, scm_truncate_file, scm_fcntl, scm_fsync): Use
SCM_COERCE_OUTPORT to cope with the printstate/port magic.
* ports.c (scm_port_revealed, scm_set_port_revealed_x,
scm_close_port, scm_port_line, scm_set_port_line_x,
scm_port_column, scm_set_port_column_x, scm_port_filename,
scm_set_port_filename_x, scm_port_mode,
scm_close_all_ports_except, scm_set_current_output_port,
scm_set_current_error_port): Likewise
* ioext.c (scm_redirect_port, scm_dup_to_fdes, scm_freopen,
scm_ftell, scm_fileno, scm_isatty_p, scm_primitive_move_to_fdes):
Likewise
* posix.c (scm_ttyname, scm_tcgetpgrp, scm_tcsetpgrp): Likewise
* backtrace.c (display_backtrace_body): Likewise
* fports (scm_setvbuf): Likewise
* socket.c (scm_getsockopt, scm_setsockopt, scm_shutdown,
scm_connect, scm_bind, scm_listen, scm_accept, scm_getsockname,
scm_getpeername, scm_send, scm_sendto): Likewise
* unif.c (scm_uniform_array_write): Likewise

26 years ago*** empty log message ***
Marius Vollmer [Sat, 25 Oct 1997 21:52:05 +0000 (21:52 +0000)]
*** empty log message ***

26 years ago* Makefile.am: Include readline.scm in the list of files to be
Jim Blandy [Sat, 25 Oct 1997 18:24:01 +0000 (18:24 +0000)]
* Makefile.am: Include readline.scm in the list of files to be
installed, so Guile can find it for interactive use.
* Makefile.in: Regenerated.

26 years ago*** empty log message ***
Jim Blandy [Sat, 25 Oct 1997 06:55:55 +0000 (06:55 +0000)]
*** empty log message ***

26 years ago* Makefile.am: Call the library libqthreads.a, not libqt.a. The
Jim Blandy [Sat, 25 Oct 1997 06:54:51 +0000 (06:54 +0000)]
* Makefile.am: Call the library libqthreads.a, not libqt.a.  The
old name conflicts with the Qt user interface toolkit.
* Makefile.in: Regenerated.

26 years agoMinor problems with substring-related tag changes.
Jim Blandy [Sat, 25 Oct 1997 06:53:47 +0000 (06:53 +0000)]
Minor problems with substring-related tag changes.
* symbols.h (SCM_SUBSTRP): Don't mask off the S bit; that's
exactly what we want to leave in to detect substrings.
(SCM_ROSTRINGP, ROUCHARS): Formatting tweaks.
* tags.h: Fix diagrams and comments describing the S tag bit;
remove vestigial remarks about the D tag bit.
(SCM_TYP7, SCM_TYP7S): Rephrased for readability.
* strings.c: Formatting tweaks.

26 years ago* load.c (scm_init_load_path): Check GUILE_LOAD_PATH environment
Jim Blandy [Sat, 25 Oct 1997 06:53:11 +0000 (06:53 +0000)]
* load.c (scm_init_load_path): Check GUILE_LOAD_PATH environment
variable first; then SCHEME_LOAD_PATH, with a warning message.
(scm_parse_path): New function.
* script.c: Doc fixes.

26 years agoCall the QuickThreads library libqthreads.a, not libqt.a. The old
Jim Blandy [Sat, 25 Oct 1997 06:52:10 +0000 (06:52 +0000)]
Call the QuickThreads library libqthreads.a, not libqt.a.  The old
name conflicts with the Qt user interface toolkit.
* threads.m4 (CY_AC_WITH_THREADS): Use new library name.
* configure.in: Same.
* aclocal.m4, configure: Regenerated.

26 years ago*** empty log message ***
Jim Blandy [Sat, 25 Oct 1997 06:46:27 +0000 (06:46 +0000)]
*** empty log message ***

26 years agoDocument "GUILE_LOAD_PATH" change.
Jim Blandy [Sat, 25 Oct 1997 06:44:31 +0000 (06:44 +0000)]
Document "GUILE_LOAD_PATH" change.

Give more details about the deleted header files, and functions.

Clarify explanation of build-guile.

Make all the syscall changes subheadings of "Changes to Scheme
functions and syntax".

26 years agoRefer to "GUILE_LOAD_PATH", instead of "SCHEME_LOAD_PATH".
Jim Blandy [Sat, 25 Oct 1997 06:34:53 +0000 (06:34 +0000)]
Refer to "GUILE_LOAD_PATH", instead of "SCHEME_LOAD_PATH".

26 years ago*** empty log message ***
Jim Blandy [Thu, 23 Oct 1997 05:03:29 +0000 (05:03 +0000)]
*** empty log message ***

26 years agoReadline support, from Daniel Risacher.
Jim Blandy [Thu, 23 Oct 1997 05:02:18 +0000 (05:02 +0000)]
Readline support, from Daniel Risacher.
* readline.c, readline.h: New files.
* init.c: #include "readline.h".
(scm_boot_guile_1): Call scm_init_readline, if we have it.
* Makefile.am (libguile_la_SOURCES): Include readline.c.
* Makefile.in: Regenerated.
* scmconfig.h.in: Regenerated, after change to ../configure.

26 years ago* ls.scm (ls, lls): Don't assume (eq? #f '()).
Jim Blandy [Thu, 23 Oct 1997 05:01:12 +0000 (05:01 +0000)]
* ls.scm (ls, lls): Don't assume (eq? #f '()).

26 years agoAdd support for readline function.
Jim Blandy [Thu, 23 Oct 1997 05:00:55 +0000 (05:00 +0000)]
Add support for readline function.
* readline.scm: New module.
* boot-9.scm (repl-reader): New function.
(scm-style-repl): Call repl-reader, instead of doing the reading
ourselves.  Remove repl-report-reset; it was never used for
anything.
(top-repl): If we've got the readline primitives, then redefine
repl-reader to use them.
If we've got the readline primitives, import the readline module.

26 years ago* configure.in: Check for the readline library, and the termcap
Jim Blandy [Thu, 23 Oct 1997 04:59:30 +0000 (04:59 +0000)]
* configure.in: Check for the readline library, and the termcap
library (on which readline relies).
* configure: Regenerated.

26 years ago* calling.scm, common-list.scm, ls.scm, q.scm, runq.scm,
Jim Blandy [Wed, 22 Oct 1997 22:27:33 +0000 (22:27 +0000)]
* calling.scm, common-list.scm, ls.scm, q.scm, runq.scm,
string-fun.scm: Added copyright notices; reformatted.

26 years ago*** empty log message ***
Jim Blandy [Wed, 22 Oct 1997 21:01:17 +0000 (21:01 +0000)]
*** empty log message ***

26 years agoNew libtool: 1.0e.
Jim Blandy [Wed, 22 Oct 1997 20:58:02 +0000 (20:58 +0000)]
New libtool: 1.0e.
* ltconfig, ltmain.sh, config.sub, config.guess: Updated.
* configure, aclocal.m4: Regenerated.

26 years agoa couple of name changes for consistency with ! -> _x
Mark Galassi [Mon, 20 Oct 1997 17:32:08 +0000 (17:32 +0000)]
a couple of name changes for consistency with ! -> _x

26 years agoimplemented several missing gh_ functions, mostly related to lists and pairs
Mark Galassi [Mon, 20 Oct 1997 03:59:37 +0000 (03:59 +0000)]
implemented several missing gh_ functions, mostly related to lists and pairs

26 years agoupdated NEWS for mbstring removal
Tom Tromey [Sat, 18 Oct 1997 17:40:16 +0000 (17:40 +0000)]
updated NEWS for mbstring removal

26 years ago* tags.h (scm_tc7_substring): Changed the comment and code to
Mikael Djurfeldt [Sat, 18 Oct 1997 00:20:50 +0000 (00:20 +0000)]
* tags.h (scm_tc7_substring): Changed the comment and code to
conform with the changes below.  Folks!  We have suddenly two new
free tc7 codes!!!  Jummy, jummy!

26 years ago* tags.h (scm_tc7_substring): Changed the comment and code to
Mikael Djurfeldt [Sat, 18 Oct 1997 00:17:34 +0000 (00:17 +0000)]
* tags.h (scm_tc7_substring): Changed the comment and code to
conform with the changes below.  Folks!  We have suddenly two new
free tc7 codes!!!  Jummy, jummy!

26 years ago * Makefile.in: Rebuilt.
Tom Tromey [Wed, 15 Oct 1997 17:18:32 +0000 (17:18 +0000)]
* Makefile.in: Rebuilt.
* Makefile.am (libguile_la_SOURCES): Removed extchrs.c,
mbstrings.c.
(modinclude_HEADERS): Removed extchrs.h, mbstrings.h.
* unif.c (scm_vector_set_length_x): Don't handle multibyte
strings.
* tag.c (scm_utag_mb_string, scm_utag_mb_substring): Removed.
(scm_tag): Don't handle multibyte strings.
* read.c: Don't include mbstrings.h.
(scm_lreadr): Don't handle multibyte ports.
* kw.c: Don't include mbstrings.h.
* init.c: Don't include mbstrings.h.
(scm_boot_guile_1): Don't init mbstrings module.
* hash.c (scm_hasher): Don't handle mbstrings.
* gscm.c (gscm_run_scm): Don't init mbstrings module.
* gc.c (scm_gc_mark): Don't handle mbstrings.
(scm_gc_sweep): Likewise.
* eval.c (SCM_CEVAL): Don't handle mbstrings.
* eq.c (scm_equal_p): Use SCM_TYP7S, not SCM_TYP7SD.
* tags.h (SCM_TYP7SD): Removed.
(SCM_TYP7D): Removed.
(scm_tc7_mb_string): Removed.
(scm_tc7_mb_substring): Removed.
* print.c (scm_iprin1): Handle char printing directly.  Don't
handle mbstrings.
Don't include "mbstrings.h".
* symbols.c (scm_intern_obarray_soft, scm_string_to_symbol,
scm_string_to_obarray_symbol, msymbolize): Don't set symbol's
multi-byte flag.
Don't include "mbstrings.h".
* symbols.h (SCM_SYMBOL_MULTI_BYTE_STRINGP): Removed.
(SCM_SYMBOL_SLOTS): Define as 4.
(SCM_ROSTRINGP): Use SCM_TYP7S, not SCM_TYP7SD.
* arbiters.c, backtrace.c, debug.c, dynl.c, eval.c, fluids.c,
gc.c, gsubr.c, ioext.c, kw.c, mallocs.c, numbers.c, ports.c,
print.c, read.c, regex-posix.c, root.c, srcprop.c, stackchk.c,
struct.c, threads.c, throw.c, unif.c, variable.c: Use new
("gen"-less) I/O function names.
* ports.c (scm_add_to_port_table): Don't set port's
representation.
* ports.h (scm_port_representation_type): Removed.
(scm_string_representation_type): Removed.
(struct scm_port_table ): Removed representation field.
(SCM_PORT_REPRESENTATION): Removed.
(SCM_SET_PORT_REPRESENTATION): Removed.
* genio.h: Use new function names.
* genio.c: Don't include "extchrs.h".
(scm_gen_putc, scm_gen_puts, scm_gen_write, scm_get_getc):
Removed.
(scm_putc, scm_puts, scm_lfwrite): No longer static.
(scm_getc): No longer static; handle line and column changes.
(scm_ungetc): Renamed from scm_gen_ungetc.
(scm_do_read_line): Renamed from scm_gen_read_line.
* libguile.h: Don't include "extchrs.h" or "mbstrings.h"
* extchrs.h, extchrs.c, mbstrings.h, mbstrings.c: Removed.

26 years ago*** empty log message ***
Mark Galassi [Mon, 13 Oct 1997 07:26:23 +0000 (07:26 +0000)]
*** empty log message ***

26 years ago * gh_test_repl.c (c_vector_test): same as gh_test_c.c
Mark Galassi [Mon, 13 Oct 1997 07:25:31 +0000 (07:25 +0000)]
* gh_test_repl.c (c_vector_test): same as gh_test_c.c

* gh_test_c.c (c_vector_test): some improvements on the vector
routines test.

* gh.h (gh_vector): this used to exist but do the wrong thing.
Now it (almost) does the right thing, though it takes a list
instead of the individual arguments.  I need to see how it could
be done right.
(gh_list_to_vector): added this function as a macro.  Corresponds
to Scheme's (list->vector ...).
(gh_vector_to_list): added this function as a macro.  Corresponds
to Scheme's (vector->list ...).

* gh_data.c (gh_vector_ref): renamed from gh_vref to
gh_vector_ref, so that it resembles the Scheme routines more.
(gh_vector_set): renamed from gh_vset to gh_vector_set, so that it
resembles the Scheme routines more.
(gh_make_vector): this used to be (stupidly) called gh_vector().
This is the right name, since it does the same thing as the Scheme
(make-vector ...) procedure.

26 years ago* eval.c (SCM_CEVAL, scm_apply): Completed GOOPS support code;
Mikael Djurfeldt [Sun, 12 Oct 1997 12:54:54 +0000 (12:54 +0000)]
* eval.c (SCM_CEVAL, scm_apply): Completed GOOPS support code;
Some indentation fixes.

* objects.h (SCM_METACLASS_STANDARD_LAYOUT): Printer field is no
longer a user field; New field: class_flags.

* objets.c, objects.h: New metaclass: scm_metaclass_operator.

26 years ago* ports.h: #include "libguile/print.h"
Mikael Djurfeldt [Sun, 12 Oct 1997 12:52:59 +0000 (12:52 +0000)]
* ports.h: #include "libguile/print.h"

26 years ago*** empty log message ***
Gary Houston [Sat, 11 Oct 1997 20:44:49 +0000 (20:44 +0000)]
*** empty log message ***

26 years ago * expect.scm: (expect-regexec): new procedure, use it in
Gary Houston [Sat, 11 Oct 1997 20:42:24 +0000 (20:42 +0000)]
* expect.scm: (expect-regexec): new procedure, use it in
expect-strings to fix the => syntax under the new regex system.
(top): include regex module in define-module statement.
* (error-catching-loop): new local variable "interactive".  if
#f, abort terminates the process.
(set-batch-mode?!, batch-mode?): new closures, defined in
error-catching-loop.  the names are from scsh.

26 years agorenamed gh_int2scmb to gh_bool2scm
Mark Galassi [Tue, 7 Oct 1997 15:39:24 +0000 (15:39 +0000)]
renamed gh_int2scmb to gh_bool2scm

26 years ago*** empty log message ***
Jim Blandy [Mon, 6 Oct 1997 16:04:33 +0000 (16:04 +0000)]
*** empty log message ***

26 years ago* build-guile.in: Try to return an appropriate exit status.
Jim Blandy [Mon, 6 Oct 1997 16:04:17 +0000 (16:04 +0000)]
* build-guile.in: Try to return an appropriate exit status.

26 years ago*** empty log message ***
Jim Blandy [Mon, 6 Oct 1997 15:49:53 +0000 (15:49 +0000)]
*** empty log message ***

26 years ago* build-guile.in: Rearranged to use a table of subcommands, and include
Jim Blandy [Mon, 6 Oct 1997 15:49:29 +0000 (15:49 +0000)]
* build-guile.in: Rearranged to use a table of subcommands, and include
per-subcommand help.

* build-guile.in: New "info" subcommand, for easy access to Guile
build variables.

26 years ago*** empty log message ***
Marius Vollmer [Mon, 6 Oct 1997 13:31:49 +0000 (13:31 +0000)]
*** empty log message ***

26 years ago*** empty log message ***
Marius Vollmer [Mon, 6 Oct 1997 13:20:50 +0000 (13:20 +0000)]
*** empty log message ***

26 years ago* boot-9.scm (inherit-print-state): If NEW-PORT contains a
Marius Vollmer [Mon, 6 Oct 1997 13:19:47 +0000 (13:19 +0000)]
* boot-9.scm (inherit-print-state): If NEW-PORT contains a
print-state, throw it away.

26 years agoFixed bad placement of struct news
Marius Vollmer [Sat, 4 Oct 1997 11:41:36 +0000 (11:41 +0000)]
Fixed bad placement of struct news

26 years agoRegenerated.
Mikael Djurfeldt [Fri, 3 Oct 1997 00:53:49 +0000 (00:53 +0000)]
Regenerated.

26 years ago*** empty log message ***
Mikael Djurfeldt [Fri, 3 Oct 1997 00:52:00 +0000 (00:52 +0000)]
*** empty log message ***

26 years ago1997-10-03 Mikael Djurfeldt <mdj@nada.kth.se>
Mikael Djurfeldt [Fri, 3 Oct 1997 00:47:48 +0000 (00:47 +0000)]
1997-10-03  Mikael Djurfeldt  <mdj@nada.kth.se>

* boot-9.scm (struct-layout): Use `vtable-index-layout' instead of
`0'.

1997-10-02  Mikael Djurfeldt  <mdj@nada.kth.se>

* boot-9.scm (struct-printer, make-struct-printer,
set-struct-printer-in-vtable!, *struct-printer*): Removed.
(record-type-vtable, make-record-type): Don't use make-struct-printer.
(record-type-vtable): User fields "prpr" (printer is no longer a
user field).
(record-type-name, record-type-fields): Decreased slot index by
one; Use `vtable-offset-user'.

26 years ago1997-10-03 Mikael Djurfeldt <mdj@nada.kth.se>
Mikael Djurfeldt [Fri, 3 Oct 1997 00:44:28 +0000 (00:44 +0000)]
1997-10-03  Mikael Djurfeldt  <mdj@nada.kth.se>

* print.h (SCM_PRINT_STATE_P): Removed SCM_NIMP test.  (NIMP
macros should by convention not test for NIMPness.)
(SCM_COERCE_OPORT): Adjust indentation.

* print.c (scm_valid_oport_value_p): Adjusted indentation; Added
SCM_NIMP test before SCM_PRINT_STATE_P.

* struct.c, struct.h, gc.c: Renamed:
scm_struct_i_layout    --> scm_vtable_index_layout
scm_struct_i_vcell    --> scm_vtable_index_vcell
scm_struct_i_vtable    --> scm_vtable_index_vtable
scm_struct_i_printer    --> scm_vtable_index_printer
scm_struct_i_vtable_offset --> scm_vtable_offset_user

* struct.c (scm_print_struct): Use new printer slot; Default
printing: Also output hex code of vtable so that type identity
will be indicated as well.
(scm_init_struct): Updated required_vtable_fields to "pruosrpw";
Removed struct_printer_var; Removed struct-vtable-offset;
(vtable-index-layout, vtable-index-vtable, vtable-index-printer,
vtable-offset-user): New constants.

* struct.h (scm_struct_i_vtable_offset): Bumped from 3 to 4.
(scm_struct_i_printer, SCM_STRUCT_PRINTER): New slot in vtables.
   If this slot contains a procedure, use that to print structures of
  the type represented by this vtable.

* print.c (scm_iprin1): Don't print arguments of macro
  transformers.  (They are always: exp env.); Bugfix: Unmemoize
  transformer source with correct environment.

26 years agoSmall adjustment to remove compiler warning message.
Mikael Djurfeldt [Thu, 2 Oct 1997 22:13:26 +0000 (22:13 +0000)]
Small adjustment to remove compiler warning message.

26 years ago* print.c (scm_iprin1): Don't print arguments of macro
Mikael Djurfeldt [Thu, 2 Oct 1997 17:52:03 +0000 (17:52 +0000)]
* print.c (scm_iprin1): Don't print arguments of macro
transformers.  (They are always: exp env.); Bugfix: Unmemoize
transformer source with correct environment.

26 years ago*** empty log message ***
Marius Vollmer [Thu, 2 Oct 1997 15:09:45 +0000 (15:09 +0000)]
*** empty log message ***

26 years ago* throw.h (scm_handle_by_proc_catching_all): New prototype
Marius Vollmer [Thu, 2 Oct 1997 15:05:57 +0000 (15:05 +0000)]
* throw.h (scm_handle_by_proc_catching_all): New prototype
throw.c (scm_handle_by_proc_catching_all): New function

26 years ago*** empty log message ***
Marius Vollmer [Thu, 2 Oct 1997 15:01:11 +0000 (15:01 +0000)]
*** empty log message ***

26 years ago* root.c (cwdr_inner_body, cwdr_body): Remove "inner" from name,
Marius Vollmer [Thu, 2 Oct 1997 15:00:03 +0000 (15:00 +0000)]
* root.c (cwdr_inner_body, cwdr_body): Remove "inner" from name,
there is now only one catch.
(cwdr_outer_body): Removed.
(cwdr_handler): New function.
(scm_internal_cwdr): New function to perform the function of cwdr
but take args that are more useful to C code.  Also, the handler
is now invoked *outside* of the new dynamic root, like the docs
say.  We no longer have to catch absolutely all errors, the caller
is responsible for using a handler that does not throw, if he
wants that.
(cwdr): Reimplemented in terms of scm_internal_cwdr.
* root.h (scm_internal_cwdr): New prototype.

* root.c (USE_STACKJMPBUF): New define to activate a stack-based
allocation of the jumpbuf of a root continuation.  The changes
below are controlled by it.  They are now deactivated.
(scm_internal_cwdr): Allocate the scm_contregs on the stack.  Set
the JMPBUF of the scm_rootcont to NULL before returning.

26 years ago* print.h (SCM_PRINT_STATE_P, SCM_COERCE_OPORT): New macros.
Marius Vollmer [Thu, 2 Oct 1997 14:55:02 +0000 (14:55 +0000)]
* print.h (SCM_PRINT_STATE_P, SCM_COERCE_OPORT): New macros.
(struct scm_print_state) [revealed]: New field.
(scm_print_state_vtable): Make visible to the outside world for
type checking purposes.
(scm_valid_oport_value_p): New prototype.

* print.c (scm_valid_oport_value_p): New function to check whether
a certain value is acceptable as a port argument.
(scm_print_state_vtable): New variable.
(scm_free_print_state): Set `revealed' field to false.
(scm_iprin1): Call user supplied closure printer with
scm_printer_apply.  Print in the traditional way when there isn't
one or when it returns #f.
(scm_prin1, scm_display, scm_write, scm_newline, scm_write_char):
Accept a port/print-state pair in addition to just a port.
(scm_prin1): Don't return the print_state to the pool when it has
been `revealed'.
(scm_printer_apply): Set `revealed' field of print_state to true.
(scm_init_print): Set scm_print_state_vtable.
(print_state_fluid, print_state_fluid_num): Removed.

26 years ago* gc.c (scm_gc_sweep): Free the SCM_VELTS of a scm_tc7_contin only
Marius Vollmer [Thu, 2 Oct 1997 14:45:09 +0000 (14:45 +0000)]
* gc.c (scm_gc_sweep): Free the SCM_VELTS of a scm_tc7_contin only
when they are non-NULL.
(scm_gc_mark): Likewise, mark only when non-NULL.

* gc.c (scm_done_malloc): New function.
gc.h (scm_done_malloc): New prototype.

26 years ago* gc.c (scm_done_malloc): New function.
Marius Vollmer [Thu, 2 Oct 1997 14:42:58 +0000 (14:42 +0000)]
* gc.c (scm_done_malloc): New function.
gc.h (scm_done_malloc): New prototype.

26 years agoMake dynamic linking work on Dec Unix. (Thanks to Clark McGrew)
Marius Vollmer [Thu, 2 Oct 1997 14:40:30 +0000 (14:40 +0000)]
Make dynamic linking work on Dec Unix. (Thanks to Clark McGrew)
* dynl.c: Include "dynl-dl.c" also when HAVE_DLOPEN is defined.