1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-07-01 23:30:28 +02:00
Commit graph

1088 commits

Author SHA1 Message Date
Mikael Djurfeldt
db75135d74 * emacs.scm (emacs-load): Something has changed in the reader so
that we now should set the port line count to the specified value
(linum) instead of (- linum 1).
1997-08-14 19:23:13 +00:00
Mikael Djurfeldt
096d5f90c3 * slib.scm (slib:load): Use load-from-path instead of
primitive-load-path so that backtraces get narrowed properly at
the top.

* boot-9.scm (top-repl): Save stack already in signal handler in
order to narrow it correctly.
(save-stack): Adjust narrowing tag for the top of load-stacks.
1997-08-14 18:24:46 +00:00
Gary Houston
7a6f1ffa10 * ioext.h: fix up prototypes.
* ioext.c (scm_dup_to_fdes): renamed from scm_primitive_dup2.
Scheme name is now dup->fdes.
(scm_dup_to_fdes): make the second argument optional and
fold in the functionality of scm_primitive_dup.
(scm_primitive_dup): deleted.
* fports.h (SCM_P): prototypes for scm_setvbuf, scm_setfileno.
* fports.c (scm_setbuf0): don't disable the setbuf if MSDOS or
ultrix are defined.  Use setvbuf instead of setbuf.
(scm_setvbuf): new procedure.
(scm_init_fports): intern _IOFBF, _IOLBF, _IONBF.
(scm_setfileno): moved from ioext.c.
(scm_fgets): cast SCM_STREAM to (FILE *), remove unused lp variable.
(top of file): Delete 25 lines of probably obsolete CPP hair for MSDOS.

* boot-9.scm (move->fdes, dup->port): use dup->fdes, not primitive-dup.
(dup->fdes): deleted, now done in C.
1997-07-29 02:21:08 +00:00
Gary Houston
956055a9d6 * boot-9.scm (setenv): new procedure, scsh compatible. 1997-07-26 20:37:05 +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
4d0d7ef9d6 * slib.scm (install-require-module): In newer versions of slib 1997-07-24 02:32:42 +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
Jim Blandy
32552d73c6 *** empty log message *** 1997-07-11 05:44:05 +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
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
Tim Pierce
c75a590628 *** empty log message *** 1997-06-28 09:03:21 +00:00
Jim Blandy
fcff2c5c70 *** empty log message *** 1997-06-24 17:21:11 +00:00
Jim Blandy
8bb7330c9c * boot-9.scm, debug.scm, hcons.scm, lineio.scm, mapping.scm,
poe.scm, slib.scm, tags.scm, threads.scm: Use normal list
notation, instead of #/ notation.
1997-06-24 16:26:27 +00:00
Jim Blandy
db5614083d *** empty log message *** 1997-06-24 05:34:22 +00:00
Jim Blandy
6ac3c29227 * expect.scm (expect-strings): Pass regexp/newline flag to
make-regexp.
1997-06-24 05:33:29 +00:00
Jim Blandy
fb6d10650f Fix inconsistencies in parsing of #/ style lists.
* boot-9.scm (read-path-list-notation): New function.
(parse-path-symbol): Deleted.  Replaced by above.
Plug in read-path-list-notation as the parser for #/ lists,
instead of the anonymous lambda form calling parse-path-symbol.
(Thanks to Maurizio Vitale.)
1997-06-24 03:30:11 +00:00
Jim Blandy
f244dee1a1 Revert Marcus's changes; will re-apply when we get papers. 1997-06-24 02:16:31 +00:00
Jim Blandy
42f1c2c94b *** empty log message *** 1997-06-24 01:56:53 +00:00
Jim Blandy
eda764e9d4 Changes to compile under gnu-win32, from Marcus Daniels:
* boot-9.scm (load-user-init): If HOME is unset, provide
a default of /.
1997-06-24 01:44:58 +00:00
Jim Blandy
2409cdfac7 *** empty log message *** 1997-06-23 23:49:39 +00:00
Jim Blandy
9b345f6c21 Doc fix. 1997-06-23 23:44:34 +00:00
Jim Blandy
75fd4fb691 * boot-9.scm (make-list): Remove the definition of this function
from the (ice-9 common-list) module; make the `init' argument
optional in the	scm module's definition, to match the deleted
definition.  Harmony reigneth?  (Thanks to Bernard URBAN.)
1997-06-23 23:44:20 +00:00
Jim Blandy
91b28bb55d *** empty log message *** 1997-06-22 23:47:13 +00:00
Jim Blandy
9946dd45a4 Try to detect when people are using one version of libguile and a
different version of ice-9.  People have been skewing things and
sending in bug reports.
* version.scm.in: New file, which the configure script munges to
produce version.scm, which contains the ice-9 config stamp.
* boot-9.scm: Compare the libguile and ice-9 config stamps;
display a warning if the two are different.
* Makefile.am: Install version.scm, but don't distribute it.
Distribute version.scm.in, but don't install it.
* Makefile.in: Regenerated.
1997-06-22 23:46:41 +00:00
Jim Blandy
9fbdb48f36 *** empty log message *** 1997-06-20 02:01:36 +00:00
Jim Blandy
7ed9feb0f8 * slib.scm (slib:warn): Alias for WARN function. 1997-06-20 02:01:25 +00:00
Jim Blandy
e320da2fb9 *** empty log message *** 1997-06-13 05:50:58 +00:00
Jim Blandy
52c5a23aed * boot-9.scm (struct-printer): Fix off-by-one error in range
check.  Correctly check for struct printer tag.

* boot-9.scm (with-regexp-parts): Comment this out.  It has no
users in the core, and relies on mildly hairy details of the old
regexp interface.

* boot-9.scm (ipow-by-squaring, butlast): Fix uses of outdated
function names.

* boot-9.scm (with-excursion-getter-and-setter, q-rear): Doc
fixes.
1997-06-13 05:50:49 +00:00
Jim Blandy
ec8469e7cb * expect.scm: Turn this into a module, (ice-9 expect).
(expect-port, expect-timeout, expect-timeout-proc,
expect-eof-proc, expect-char-proc, expect, expect-strings,
expect-select): Make these public definitions.
(expect-strings): Use make-regexp and regexp-exec, instead of
regcomp and regexec.  We've omitted the REG_NEWLINE flag; hope
that's okay.
1997-06-13 05:50:37 +00:00
Jim Blandy
c6b15ad07e * test.scm: Re-enable tests asserting that '() is true, and not a
boolean.  This stuff has been true for a while.
1997-06-13 05:50:28 +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
Jim Blandy
4b0d60550c * slib.scm (identity): New function, used by SLIB. 1997-06-11 01:12:07 +00:00
Marius Vollmer
0b46857faa *** empty log message *** 1997-06-06 15:19:36 +00:00
Marius Vollmer
755da2fc99 * boot-9.scm (struct-printer): Bugfix: Check the layout of the
vtable and not the one of the struct.
1997-06-06 15:14:55 +00:00
Marius Vollmer
5dade85779 *** empty log message *** 1997-06-04 22:42:29 +00:00
Marius Vollmer
fa7e927466 * boot-9.scm (struct-layout, %struct-printer-tag, struct-printer,
make-struct-printer, set-struct-printer-in-vtable!): New bindings
to support printing of structures.
(record-type-vtable, make-record-type): Add slot to hold printing
function and initialize it with something appropriate.  Removed
commented out printing code.
(record-type-name, record-type-fields): Adjusted slot offsets.
(%print-module): Reduce argument list to "mod" and "port".
1997-06-04 22:39:09 +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
19da35d025 *** empty log message *** 1997-05-30 18:13:18 +00:00
Jim Blandy
e37e4bca97 * slib.scm (slib:load): Use primitive-load-path instead of
basic-load.  This is probably wrong, but hopefully the entire
source access system will be revised soon anyway, and this will
make require behave more like Emacs Lisp's require.  If this
breaks something, please let me know.  Maybe this is real dumb.
1997-05-30 18:13:10 +00:00
Jim Blandy
0e1652816a *** empty log message *** 1997-05-29 02:48:27 +00:00
Jim Blandy
05817d9e0e * regex.scm: Add a module declaration. Use DEFINE-PUBLIC everywhere.
* boot-9.scm: If the `regex' feature is present, use the module
(ice-9 regex).
1997-05-29 02:47:14 +00:00
Jim Blandy
737c9113fe *** empty log message *** 1997-05-27 23:17:46 +00:00
Jim Blandy
400d7382d2 * regex.scm: New file.
* Makefile.am (subpkgdata_DATA): Add regex.scm.
* Makefile.in: Regenerated.
1997-05-27 23:16:11 +00:00
Jim Blandy
36539a157a *** empty log message *** 1997-05-26 22:37:19 +00:00
Jim Blandy
1532804164 * COPYING, boot-9.scm, debug.scm, emacs.scm, expect.scm, gtcl.scm,
gwish.scm, hcons.scm, lineio.scm, mapping.scm, nonblocking.scm,
oldprint.scm, poe.scm, r4rs.scm, source.scm, tags.scm, test.scm,
threads.scm: New address for FSF.
1997-05-26 22:26:48 +00:00