1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-30 20:00:19 +02:00
Commit graph

764 commits

Author SHA1 Message Date
Jim Blandy
e3173f937c * eval.c (scm_lookupcar1): Don't declare var2 unless USE_THREADS
is defined, to avoid warnings; it's only used in the
conflict-checking code.  Which might go away anyway.
(SCM_CEVAL): All goto's targeting the `dispatch' label are in
conditionals; put the label definition in an #if too, to stifle
warnings.
1997-06-21 05:53:04 +00:00
Jim Blandy
1773993b8f * Makefile.am (EXTRA_DIST): Include ChangeLog-gh and
ChangeLog-threads in the distribution.
* Makefile.in: Regenerated.
1997-06-21 05:25:12 +00:00
Tim Pierce
bee1449102 Fixed Guile snarfing problem with SunPro suite. 1997-06-20 16:52:19 +00:00
Tim Pierce
5540787919 Tue Jun 17 13:49:56 1997 Tim Pierce <twpierce@bio-5.bsd.uchicago.edu>
*	* load.c (scm_init_load_path): Append $(datadir)/guile to
	%load-path, so modules do not have to be installed in Guile's
	current version directory.
1997-06-17 19:20:07 +00:00
Marius Vollmer
e5f8e12fd0 *** empty log message *** 1997-06-16 19:10:33 +00:00
Marius Vollmer
419e9e117f * dynl.c (scm_dynamic_call, scm_dynamic_args_call): Wrap dynamic
function call in SCM_DEFER_INTS/SCM_ALLOW_INTS.
(scm_dynamic_link, scm_dynamic_unlink, scm_dynamic_func): Always
call the sysdep functions with deferred ints.
* dynl.c, dynl-dl.c, dynl-dld.c, dynl-shl.c (sysdep_dynl_link,
sysdep_dynl_unlink, sysdep_dynl_func): Expect to be called with
deferred interrupts and insert SCM_ALLOW_INTS before throwing an
error.

* dynl.c (scm_dynamic_unlink, scm_dynamic_call): Return
SCM_UNSPECIFIED.
1997-06-16 19:09:11 +00:00
Gary Houston
cc0b331281 * scmsigs.c (sys_deliver_signals): add a comment about a probable bug. 1997-06-14 19:04:24 +00:00
Jim Blandy
3688473b02 *** empty log message *** 1997-06-11 05:36:20 +00:00
Jim Blandy
34765ae7e1 * Makefile.in: Regenerated after xtra_PLUGIN_guile_libs change in
../configure.in.
1997-06-11 05:35:09 +00:00
Jim Blandy
95d59d10cf *** empty log message *** 1997-06-11 01:13:22 +00:00
Marius Vollmer
58932e4ad2 *** empty log message *** 1997-06-08 15:48:54 +00:00
Marius Vollmer
f8769b1d9b * eval.c (scm_lookupcar1): New procedure to cope with a race
condition during lookup (when using threads).
(scm_lookupcar): Implement in terms of scm_lookupcar1.
(SCM_CEVAL): Use scm_lookupcar1 instead of scm_lookupcar in one
place.
1997-06-08 15:46:19 +00:00
Jim Blandy
0b787875bc * regex-posix.c (scm_regexp_exec): Use the `start' argument if
supplied.  (Change from Tim Pierce.)
1997-06-07 00:07:33 +00:00
Marius Vollmer
0b46857faa *** empty log message *** 1997-06-06 15:19:36 +00:00
Marius Vollmer
5dade85779 *** empty log message *** 1997-06-04 22:42:29 +00:00
Marius Vollmer
916d65b1d1 * struct.c (struct_printer): New variable that holds a handle on
the Scheme variable *struct-printer*.  This variable can be set by
Scheme code to override the printing of structures.
(scm_print_struct): If struct_printer is set, call it.  If it is
not set, or returns #f, print the structure in the old fashion.
Include "eval.h" for scm_apply.
1997-06-04 22:40:58 +00:00
Marius Vollmer
7507aba159 *** empty log message *** 1997-06-03 21:53:24 +00:00
Marius Vollmer
bafcafb270 * struct.c (scm_struct_ref, scm_struct_set_x): Use
scm_struct_i_n_words to get the number of fields, not
-scm_struct_n_extra_words.

On the route to fancier struct printing:
* struct.c (scm_print_struct): New function to print a structure.
Include "genio.h" to support it.  This function doesn't do
anything interesting right now, but I think it should be here
anyway.
* struct.h: Include "print.h" and add prototype for
scm_print_struct.
* print.c (scm_iprin1): Call scm_print_struct instead of trying to
print structures ourself.
1997-06-03 21:49:52 +00:00
Gary Houston
2ad6b1a531 * scmsigs.c (sys_deliver_signals): bug fix: reset got_signal[i]
before applying the handler in case it doesn't return.
1997-06-01 08:08:49 +00:00
Gary Houston
e1a191a8ca * scmsigs.h, async.h: updated.
* _scm.h: if HAVE_RESTARTS is defined then don't use a SYSCALL
loop.

* posix.c (scm_uname): interpret only negative values as an error.
Solaris normally returns a positive value.

* script.c (scm_compile_shell_switches): if we are not going into
an interactive repl, set scm_mask_ints to zero so that asyncs can
run.

* simpos.c (scm_system):  don't ignore/unignore signals around
the "system" call.

* posix.c (scm_open_pipe): don't ignore/unignore signals around
the "popen" call.

* init.c (scm_boot_guile_1): don't call scm_init_signals, it's
done in boot-9.scm instead.

* scmsigs.c, async.c: Major rewriting of signal handling code.
(scm_sigaction): new procedure.
(scm_sleep): don't wrap sleep in SCM_SYSCALL, it would mess up the
timing.
(scm_raise): return unspecified, throw error on failure.

* boot-9.scm: signal-handler, alarm-thunk: removed.
don't define ticks-interrupt etc.
top-repl: install signal handlers for SIGINT, SIGFPE, SIGSEGV, SIGBUS
during call to scm-style-repl.

* acconfig.h: mention HAVE_RESTARTS.
* configure.in: check for sigaction and restartable system calls.
1997-05-31 19:02:38 +00:00
Jim Blandy
0e1652816a *** empty log message *** 1997-05-29 02:48:27 +00:00
Jim Blandy
20044282fa * regex-posix.c (scm_init_regex_posix): Register the "regex"
feature, to help boot-9.scm decide whether to import the regex
module.
1997-05-29 02:47:40 +00:00
Jim Blandy
4885ba0e62 *** empty log message *** 1997-05-29 02:20:36 +00:00
Jim Blandy
d16332b312 * eval.c: Include scmconfig.h at the beginning of the file so that
HAVE_ALLOCA_H may properly be defined.  Thanks to Bill Janssen for
pointing this out.
1997-05-29 02:20:19 +00:00
Jim Blandy
69e0587b1c * regex-posix.c: #include "_scm.h" before conditionally #including
<regex.h>; the former defines HAVE_REGCOMP.
1997-05-29 02:20:10 +00:00
Jim Blandy
1e5afba02b *** empty log message *** 1997-05-29 00:13:01 +00:00
Jim Blandy
24e37377fa * regex-posix.c: #include <regex.h> conditionally, so the file is
CPP'able (for dependency scanning) even on systems that don't have
a <regex.h> header.
1997-05-28 17:02:23 +00:00
Jim Blandy
5aefdd40a7 *** empty log message *** 1997-05-28 00:00:39 +00:00
Jim Blandy
50a095f1c8 Add new R4RS-compliant syntax for keywords.
* read.c (scm_lreadr): Recognize `#:' as a prefix for keywords,
regardless of the setting of the `keywords' read option.
* kw.c (prin_kw): Print keywords using the `#:' syntax, so they
can be re-read no matter what the setting of the `keywords' read
option.
1997-05-27 23:58:26 +00:00
Jim Blandy
995685aa70 formatting tweak 1997-05-27 23:48:24 +00:00
Jim Blandy
737c9113fe *** empty log message *** 1997-05-27 23:17:46 +00:00
Jim Blandy
f255378e9a Add support for POSIX regular expressions.
* regex-posix.c, regex-posix.h: New files. (Some code
is taken liberally from rx/rgx.c in the old Guile dist.)

* init.c: Include regex-posix.h.
(scm_boot_guile_1): Call scm_init_regex_posix.

* Makefile.am (EXTRA_libguile_la_SOURCES, modinclude_HEADERS):
Add regex-posix.[ch] sources.
* Makefile.in: Regenerated.

* scmconfig.h.in: Add HAVE_REGCOMP macro.  (automake is supposed
to do this automatically?  It didn't for me, bleh.)
1997-05-27 23:16:42 +00:00
Jim Blandy
33623b5ea7 *** empty log message *** 1997-05-27 02:38:45 +00:00
Jim Blandy
2221ecf5ee * Makefile.am: Increment shared lib revision number. I think
sometimes the uninstalled Guile finds the installed shared lib;
Gord says doing this might help.  As things turned out, I can't
say whether it does.
* Makefile.in: Regenerated.
1997-05-27 02:38:20 +00:00
Jim Blandy
8f29fbd0ca * fports.c (print_pipe_port): New function.
(scm_fptob): Use print_pipe_port instead of scm_prinport; the
latter doesn't even take the right arguments.
1997-05-27 02:37:22 +00:00
Jim Blandy
06de7963a3 *** empty log message *** 1997-05-26 23:52:20 +00:00
Jim Blandy
38cb0e9ca7 * ports.c (print_void_port, putc_void_port, puts_void_port,
write_void_port, flush_void_port, getc_void_port, close_void_port,
noop0): Use ANSI prototypes instead of K&R declarations, so the
initialization of void_port_ptob gets aggressively type-checked.
Fix arguments of print_void_port and write_void_port.  (Bill
Janssen)
1997-05-26 23:51:59 +00:00
Jim Blandy
524dfbccdf * gh_init.c (gh_enter): Cast c_main_prog to a void * before
passing it as the closure argument to scm_boot_guile.  (Bill
Janssen)
1997-05-26 23:51:42 +00:00
Jim Blandy
82892beda5 * Lots of files: New address for FSF. 1997-05-26 22:34:48 +00:00
Jim Blandy
a00c28cdbe *** empty log message *** 1997-05-26 18:14:38 +00:00
Jim Blandy
78c283dd07 *** empty log message *** 1997-05-26 18:08:30 +00:00
Jim Blandy
3f4c654dbb *** empty log message *** 1997-05-26 18:07:54 +00:00
Jim Blandy
d3be4a7ac2 * script.c (scm_find_executable): Use prototype-style definition
here; apparently it's not quite right to have const in a prototype
and then use a K&R declaration.  I wonder if stuff like this will
go away if we compile with -Wrequire-prototypes, or whatever that
is...
1997-05-26 18:07:42 +00:00
Jim Blandy
4a432bc07e * scmhob.h: New text from Bernard URBAN. 1997-05-26 18:07:36 +00:00
Jim Blandy
adb98aa9da *** empty log message *** 1997-05-16 09:26:12 +00:00
Jim Blandy
20cd54a08d * Makefile.am (libguile_la_LDFLAGS): Update libguile's shared
library version info to 1:0.
* Makefile.in: Regenerated.
1997-05-16 09:25:50 +00:00
Jim Blandy
142ad3d9a7 *** empty log message *** 1997-05-16 09:15:53 +00:00
Jim Blandy
1e598865e9 * backtrace.c, backtrace.h, debug.c, debug.h, eq.c,
gdb_interface.h, gdbint.c, gdbint.h, gh_data.c, gh_init.c,
gh_io.c, gh_list.c, gh_predicates.c, gh_test_c.c, gh_test_repl.c,
init.c, net_db.c, options.c, options.h, ports.c, print.c, read.c,
script.h, snarf.h, srcprop.c, srcprop.h, stacks.c, stacks.h,
throw.c: Update copyright years; these files have been worked on
significantly in 1997, but only had copyright years for 1996.
Also, change name of copyright holder on some from Mikael
Djurfeldt to Free Software Foundation; he has signed papers
assigning the changes to the FSF.
1997-05-16 09:14:28 +00:00
Jim Blandy
eeb56f3c7b *** empty log message *** 1997-05-16 08:07:47 +00:00
Jim Blandy
8e56830978 * script.c (scm_shell_usage): Pass FATAL to exit. There's no
reason not to give the user the option.
1997-05-16 08:07:35 +00:00