1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-05 06:50:21 +02:00
Commit graph

8572 commits

Author SHA1 Message Date
Marius Vollmer
1e8f77cd7b * struct.c (scm_print_struct): Use scm_printer_apply to call the
user defined struct printer.
1997-07-27 09:09:54 +00:00
Marius Vollmer
c4f37e8038 * 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.
1997-07-27 09:08:38 +00:00
Marius Vollmer
9c3fb66f61 *** empty log message *** 1997-07-27 09:04:50 +00:00
Gary Houston
956055a9d6 * boot-9.scm (setenv): new procedure, scsh compatible. 1997-07-26 20:37:05 +00:00
Marius Vollmer
b3460a507a * 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.
1997-07-26 20:08:42 +00:00
Marius Vollmer
485cb6eb4f *** empty log message *** 1997-07-26 20:03:52 +00:00
Marius Vollmer
8a6a86714b * boot-9.scm (with-fluids): New macro to go with the
builtin `with-fluids*'.
1997-07-26 20:03:23 +00:00
Mikael Djurfeldt
269861c775 * eval.c (scm_apply): Handle the case when a tc7_sybr_2 is applied
to a list of length zero correctly.
1997-07-25 15:04:50 +00:00
Gary Houston
64d01d1315 NEWS: added new dup variants amound other things. 1997-07-24 09:11:02 +00:00
Mikael Djurfeldt
1b0c9ace51 * md/axp.s, md/axp_b.s: Changed comments from C-style to # to
please the alpha assembler.
1997-07-24 03:06:08 +00:00
Mikael Djurfeldt
4d0d7ef9d6 * slib.scm (install-require-module): In newer versions of slib 1997-07-24 02:32:42 +00:00
Tim Pierce
3cb988bd00 Line-oriented i/o:
scm_gen_read_line
scm_read_line
scm_fgets
scm_generic_fgets
1997-07-23 21:20:55 +00:00
Mikael Djurfeldt
757cfb94f4 * configure.in: Added thread support for the alpha architecture.
configure: Regenerated.
1997-07-23 18:36:44 +00:00
Mikael Djurfeldt
8309a10d87 * boot-9.scm: If using emacs interface, enable backtraces
automatically.
1997-07-23 18:15:37 +00:00
Gary Houston
e38303a26d * 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.)
1997-07-21 08:52:26 +00:00
Gary Houston
a9488d1218 * filesys.c (scm_close): oops, don't call SCM_INUM twice on the
argument.

* ioext.h: new prototypes.
* ioext.c (scm_primitive_dup, scm_primitive_dup2): new procedures.
1997-07-20 10:03:26 +00:00
Gary Houston
eadd48de2b * fluids.c (next_fluid_num): don't do
SCM_THREAD_CRITICAL_SECTION_START/END unless USE_THREADS is defined.

* ports.h: prototypes too.
* ports.c (scm_mode_bits, scm_port_mode): moved from fports.c.

* fports.h: prototype too.
* fports.c (scm_evict_ports): moved from ioext.c.

* ports.c (scm_close_port): return a boolean instead of unspecified.
throw an error if an error other than EBADF occurs.

* filesys.h: scm_close prototype.
* filesys.c (scm_close): new procedure, can close file descriptors
and ports (scsh compatible).

* ports.c (scm_flush_all_ports): SCM_PROC incorrectly allowed an
optional argument.
1997-07-20 05:49:39 +00:00
Gary Houston
9c29ac668f * ports.c (scm_flush_all_ports): SCM_PROC incorrectly allowed an
optional argument.
1997-07-19 18:21:55 +00:00
Marius Vollmer
9482a297ec *** empty log message *** 1997-07-18 16:26:47 +00:00
Marius Vollmer
7f47d2d877 *** empty log message *** 1997-07-18 14:45:38 +00:00
Marius Vollmer
b08323d190 * smob.h: Include "libguile/print.h" to make scm_print_state
visible.
1997-07-18 14:39:52 +00:00
Marius Vollmer
7b4e5a7ae3 * root.h: Added "fluids" member to scm_root_state.
* root.c: Include "fluids.h".  (scm_mark_root): Mark "fluids".
(scm_make_root): Call scm_copy_fluids to make fluid bindings
unique for the new root when it has a parent.
1997-07-18 14:37:36 +00:00
Marius Vollmer
d9dfcf8084 * root.c: Include "fluids.h". (scm_mark_root): Mark "fluids".
(scm_make_root): Call scm_copy_fluids to make fluid bindings
unique for the new root when it has a parent.
1997-07-18 14:35:58 +00:00
Marius Vollmer
ee3ea81d9a * init.c: Include "fluids.h". (scm_boot_guile_1): Added call to
scm_init_fluids to initialize the fluid machine.
(scm_start_stack): Initialize the fluids of the first root with
scm_make_initial_fluids.
1997-07-18 14:33:49 +00:00
Marius Vollmer
c487ad44e7 * dynl.c (free_dynl_obj): New function to free the dynamic object
data. (dynl_smob): Use it.
* dynl.c (scm_dynamic_link): Moved allocating of the memory for
the dynamic object data below the linking of the object to avoid
memory leak when the linking code throws an error.  Now the code
leaks a whole dynamically linked library when must_malloc throws,
but that should be much less likely.
1997-07-18 14:31:06 +00:00
Marius Vollmer
baff2bd54a * fluids.c, fluid.h: New files.
* Makefile.am (libguile_la_SOURCES): Added "fluids.c".
(modinclude_HEADERS): Added "fluids.h"
1997-07-18 14:30:36 +00:00
Marius Vollmer
04c76b5809 *** empty log message *** 1997-07-18 14:27:48 +00:00
Gary Houston
f4e5b81064 * configure.in: use AC_CHECK_FUNCS for sethostent etc.,
so scmconfig.h is updated with the test results.  this may
	disable one of the cygwin hacks.
1997-07-18 07:08:54 +00:00
Tim Pierce
9a8b5764bc *** empty log message *** 1997-07-11 19:04:35 +00:00
Jim Blandy
32552d73c6 *** empty log message *** 1997-07-11 05:44:05 +00:00
Jim Blandy
0e95879552 Changes to compile under gnu-win32, from Marcus Daniels:
* stime.c (tzset): If tzset isn't provided, make it a NOP.
(scm_localtime): Change SCM_EOF to SCM_EOL.
(scm_mktime): Likewise.
* socket.c: Don't include sys/un.h unless autoconf tells
us Unix domain sockets are available.
(scm_fill_sockaddr): Ignore Unix domain code.
(scm_addr_vector): Likewise.
(scm_init_addr_buffer): Likewise.
(scm_socketpair): Don't include unless socketpair was
found during autoconf.
* simpos.c (SYSTNAME): Treat cygwin like Unix.
* scmsigs.c (scm_pause): Don't include unless pause was found
during autoconf.
* posix.c (scm_getgroups): Don't include unless support function
was found during autoconf (in this case, getgroups).
(scm_setpwent): For setpwent.
(scm_setegid): For setegid.
* net_db.c (scm_inet_netof): Don't include unless support
function was found during autoconf (in this case, inet_netof).
(scm_lnaof): For inet_lnaof.
(scm_inet_makeaddr): For inet_makeaddr.
(scm_getnet): For getnetent, getnetbyname, getnetbyaddr.
(scm_getproto): For getprotoent.
(scm_getserv): For getservent.
(scm_sethost): For sethostent, endhostent.
(scm_setnet): For setnetent, endnetent.
(scm_setproto): For setprotoent, endprotoent.
(scm_setserv): For setservent, endservent.
* scmconfig.h.in: Regenerated.
1997-07-11 05:43:36 +00:00
Jim Blandy
4cd2a3e684 Changes to compile under gnu-win32, from Marcus Daniels:
* boot-9.scm (load-user-init): If HOME is unset, provide
a default of /.
1997-07-11 05:41:24 +00:00
Jim Blandy
da88f0cb9f Changes to compile under gnu-win32, from Marcus Daniels:
* configure.in: When sys/un.h exists, define HAVE_UNIX_DOMAIN_SOCKETS
to indicate that Unix domain sockets will work.
Check for socketpair, getgroups, setwent, pause, and tzset
(cygwin currently lacks these them).
Check for sethostent endhostent getnetent setnetent endnetent
getprotoent endprotoent getservent endservent getnetbyaddr
getnetbyname inet_lnaof inet_makeaddr inet_netof (cygwin currently
lacks them).  In the case of cygwin, temporarily prefix these
functions with "cygwin32_", the way that netdb.h does.
Don't define HAVE_REGCOMP unless both regcomp and regex.h are
available (cygwin b18 came distributed without a working regex.h
file).
* acconfig.h (HAVE_UNIX_DOMAIN_SOCKETS): Add this.
* configure: Regenerated.
1997-07-11 05:41:08 +00:00
Jim Blandy
2e3e9351a4 *** empty log message *** 1997-07-11 05:14:25 +00:00
Jim Blandy
3c5af9ef9b * boot-9.scm (define-public): Changed to accomodate Hobbit. 1997-07-11 05:13:59 +00:00
Jim Blandy
8cedfb2e6c *** empty log message *** 1997-07-10 05:26:41 +00:00
Jim Blandy
604d4dd95c * read.c (recsexpr): Give this a dummy definition if
DEBUG_EXTENSIONS isn't #defined.
1997-07-10 05:26:17 +00:00
Jim Blandy
b1edcd363e * error.c (scm_wta): Pass SCM_EOL to scm_misc_error as the list of
arguments for formatting the error message, not SCM_BOOL_F.  I
think this is left over from the (eq? '() #f) days.
1997-07-10 05:25:44 +00:00
Jim Blandy
da5b3eb149 * stime.c (scm_localtime, scm_mktime): Pass SCM_EOL to
scm_misc_error, not SCM_EOF.
1997-07-10 05:25:35 +00:00
Marius Vollmer
517591cdff *** empty log message *** 1997-07-04 21:48:34 +00:00
Marius Vollmer
1500e3ceb4 * coop-threads.c (scm_wait_condition_variable): Lock mutex again
after waiting.
1997-07-04 21:44:59 +00:00
Tim Pierce
780b12da58 *** empty log message *** 1997-07-04 21:05:08 +00:00
Marius Vollmer
3f094ddf73 *** empty log message *** 1997-07-03 15:25:25 +00:00
Marius Vollmer
beec890ea8 * root.c (cwdr_outer_body): Bugfix: Pass c' instead of &c' to
scm_internal_catch.
1997-07-03 15:22:59 +00:00
Tim Pierce
ec918b9b2e ltmain bugfix for dumb linkers 1997-07-02 17:32:52 +00:00
Jim Blandy
a01e24ecde *** empty log message *** 1997-07-01 01:01:43 +00:00
Jim Blandy
c484bf7fb0 The normal post-release changes. 1997-07-01 01:01:20 +00:00
Jim Blandy
90fcac06b7 * configure.in: Check for librx after libm; fundamentals need to
come first.
* configure: Regenerated.
1997-07-01 01:00:37 +00:00
Jim Blandy
cd09c89465 Bump version to 1.3a, for snapshots. 1997-07-01 00:50:57 +00:00
Tim Pierce
4a5fa91c06 alloca configure fixes 1997-06-28 21:32:46 +00:00