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

744 commits

Author SHA1 Message Date
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
Jim Blandy
3d781d4935 * net_db.c (scm_gethost, scm_getnet, scm_getproto, scm_getserv):
Return #f on end-of-file when scanning table (i.e. when called
with no arguments).  Try to catch errors, when we can.
* posix.c (scm_getgrgid, scm_getpwuid): Same.
1997-05-16 08:06:17 +00:00
Jim Blandy
095936d24f *** empty log message *** 1997-05-16 08:05:22 +00:00
Jim Blandy
190b072dc8 *** empty log message *** 1997-05-15 21:30:45 +00:00
Jim Blandy
9cb76af41a * script.h (scm_shell-usage, scm_compile_shell_switches): New
external declarations.  These are useful.
1997-05-15 21:30:06 +00:00
Jim Blandy
075139397c * net_db.c (scm_gethost, scm_getnet, scm_getproto, scm_getserv):
Return #f on end-of-file when scanning table (i.e. when called
with no arguments).  Try to catch errors, when we can.
1997-05-15 21:29:58 +00:00
Gary Houston
a48a89bc17 * posix.c: don't include <sys/select.h> or define macros for
select, since they were not used in this file.

*	* filesys.c (scm_select): make the fifth parameter microseconds,
	not milliseconds.  let the fourth parameter be either a real value
	or an integer or #f.  The first, second and third arguments can
	now be vectors: the type of the corresponding return set will be
	the same.
	(set_element, get_element): new static procedures.
1997-05-15 08:46:37 +00:00
Jim Blandy
223be5f043 *** empty log message *** 1997-05-15 02:03:37 +00:00
Jim Blandy
b377f53e56 * strports.c (scm_eval_string): New function.
(scm_eval_0str): Trivially re-implemented in terms of
scm_eval_string.
* strports.h (scm_eval_string): New extern decl.
1997-05-15 02:02:40 +00:00
Jim Blandy
e1cd56f9d3 *** empty log message *** 1997-05-15 00:59:19 +00:00
Jim Blandy
7a98cdb9df * net_db.c (h_errno): Add extern decl for this. 1997-05-15 00:59:04 +00:00
Jim Blandy
f3b1485f15 *** empty log message *** 1997-05-14 23:33:37 +00:00
Jim Blandy
6a2c4c81ae * fports.c (local_pclose): New function.
(scm_pipob): Use it in the initializer here.
1997-05-14 23:31:00 +00:00
Jim Blandy
45db98d029 From Tim Pierce:
* net_db.c (scm_gethost, scm_getproto, scm_getnet, scm_getserv):
Use a meaningful error message when signalling an error.  For
this, scm_gethost must check h_errno rather than errno.
1997-05-14 17:20:10 +00:00
Jim Blandy
86327304c8 Doc fix. 1997-05-14 16:59:16 +00:00
Jim Blandy
9b01064c23 *** empty log message *** 1997-05-13 21:42:30 +00:00
Jim Blandy
de185a275e * Makefile.in: Regenerated, using automake-1.1p. 1997-05-13 21:42:11 +00:00
Jim Blandy
cbb9f376ac Doc fix 1997-05-13 15:54:07 +00:00
Gary Houston
0267051bad socket.c (scm_addr_vector): use SCM_UNDEFINED in scm_listify,
not SCM_UNSPECIFIED
1997-05-13 04:56:21 +00:00
Gary Houston
d636d18c1e * socket.c (scm_addr_vector): use SCM_UNDEFINED in scm_listify,
not SCM_UNSPECIFIED.
1997-05-13 04:54:25 +00:00
Gary Houston
08fea0882d * script.c (scm_compile_shell_switches): don't append (quit) if
interactive.
(scm_shell): call scm_exit_status and exit on the result of the
evaluation.
1997-05-13 04:49:49 +00:00