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

508 commits

Author SHA1 Message Date
Tim Pierce
848f2a0114 boot-9.scm (read-line): Rewritten to use %read-line.
ioext.c (%read-line): Return a cons of the input line and its terminator.
fports.c, genio.c, genio.h, ports.c, ports.h: Change fgets methods
	to return the string length as well as its contents.
1997-12-13 08:33:33 +00:00
Gary Houston
341eaef04b * README: using Automake 1.2d
* configure.in: AC_CHECK_FUNCS: add "system".
	* simpos.c (scm_system): always define: use sysmissing if not
	available.  Check for HAVE_SYSTEM instead of _Windows (does
	Windows lack system or does it have an unusable one?).
	Check for error conditions -1 and 127.  Use SCM_DEFER_INTS.
	Let the argument be optional: if not supplied, call system(NULL).
	* ports.c (scm_close_port): relax the type check from OPPORTP to
	PORTP; closing a closed port is allowed.
1997-12-07 07:02:17 +00:00
Mikael Djurfeldt
8bb7f6466b * boot-9.scm (error-catching-loop, save-stack): `the-last-stack'
is now a fluid.
1997-11-29 01:11:21 +00:00
Tim Pierce
ebd79f623f Libtool support for find-and-link-dynamic-module 1997-11-28 17:22:20 +00:00
Gary Houston
28d8ab3c69 * boot-9.scm (set-batch-mode?!, batch-mode?): initialize more
usefully so they will work from a script.
1997-11-09 23:36:17 +00:00
Marius Vollmer
13a7ee1606 *** empty log message *** 1997-10-31 22:18:09 +00:00
Marius Vollmer
cf8f1a90f9 * boot-9.scm (inherit-print-state): Moved definition to the
neighborhood of the record code.
1997-10-31 22:16:24 +00:00
Jim Blandy
930b16c032 *** empty log message *** 1997-10-27 07:07:15 +00:00
Jim Blandy
483f0ecb10 * 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.
1997-10-27 07:07:03 +00:00
Jim Blandy
3fa5bb75c3 *** empty log message *** 1997-10-26 07:24:36 +00:00
Jim Blandy
35adba8665 * Makefile.am: Include readline.scm in the list of files to be
installed, so Guile can find it for interactive use.
* Makefile.in: Regenerated.
1997-10-25 18:24:01 +00:00
Jim Blandy
2e3685828a *** empty log message *** 1997-10-23 05:03:29 +00:00
Jim Blandy
a6002912d7 * ls.scm (ls, lls): Don't assume (eq? #f '()). 1997-10-23 05:01:12 +00:00
Jim Blandy
a3cd2b988f 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.
1997-10-23 05:00:55 +00:00
Jim Blandy
6a4d3cfd00 * calling.scm, common-list.scm, ls.scm, q.scm, runq.scm,
string-fun.scm: Added copyright notices; reformatted.
1997-10-22 22:27:33 +00:00
Gary Houston
4bbbcd5c42 * 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.
1997-10-11 20:42:24 +00:00
Marius Vollmer
c115b54b78 *** empty log message *** 1997-10-06 13:20:50 +00:00
Marius Vollmer
1c11d900c0 * boot-9.scm (inherit-print-state): If NEW-PORT contains a
print-state, throw it away.
1997-10-06 13:19:47 +00:00
Mikael Djurfeldt
9f9aa47baf 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'.
1997-10-03 00:47:48 +00:00
Marius Vollmer
21fdbaeee4 *** empty log message *** 1997-10-02 14:33:25 +00:00
Marius Vollmer
ae335672cb * boot-9.scm (inherit-print-state): New experimental function. 1997-10-02 14:23:50 +00:00
Jim Blandy
adc14c93bc *** empty log message *** 1997-09-30 17:17:19 +00:00
Jim Blandy
a6401ee0f2 Suggestion and script from Maciej Stachowiak:
* boot-9.scm: Split off modules into separate, autoloadable files.
This reduces startup time from 10.5s to 5.5s (user cpu).
* calling.scm, common-list.scm, ls.scm, q.scm, runq.scm,
string-fun.scm: New files, containing stuff that used to be in
boot-9.scm.
* Makefile.am (ice9_sources): List new files here, for
distribution and installation.
* Makefile.in: Regenerated.
1997-09-30 17:16:54 +00:00
Jim Blandy
5aa28c1e21 *** empty log message *** 1997-09-30 03:57:02 +00:00
Jim Blandy
7370e377a2 * Makefile.in: Regenerated with automake 1.2c. 1997-09-30 03:55:48 +00:00
Mikael Djurfeldt
d1005e3cbb * slib.scm (slib:load): slib:load first tries to load the file
named NAME, then NAME.scm.  On error, report the error occuring at
the first attempt (NAME) rather than the second (NAME.scm).
1997-09-29 01:38:57 +00:00
Mikael Djurfeldt
2f110c3ce3 * boot-9.scm: Bugfix: Hard-solder the print-option procedure into
the make-options macro so that we needn't refer to a global
symbol.
1997-09-29 01:23:59 +00:00
Mikael Djurfeldt
83b381985d * debug.scm: Moved options interface procedures to boot-9.scm.
* boot-9.scm: Define options interface procedures here instead.
1997-09-28 20:12:17 +00:00
Jim Blandy
af01fdcd21 * boot-9.scm (separate-fields-discarding-char,
separate-fields-after-char, separate-fields-before-char): Call
continuation function, RET, as advertised: with each separated
field a separate argument.

* Makefile.in: Regenerated with automake 1.2a.
1997-09-28 03:09:59 +00:00
Mikael Djurfeldt
534a00990b * slib.scm (slib:load): Export.
* boot-9.scm (in-vicinity): Bugfix: Don't add "/" to an empty
vicinity;
Provide defmacro.
1997-09-20 13:57:22 +00:00
Mikael Djurfeldt
8fa5faad81 * r4rs.scm (apply): Set name property to 'apply. 1997-09-17 23:25:35 +00:00
Mikael Djurfeldt
a4f9b1f613 * boot-9.scm (try-module-linked): Try to find module among those already
registered.
(try-module-dynamic-link): Removed the first test which
corresponds to a call to `try-module-linked'.
(resolve-module): Resolve modules in this order: 1. Already
registered modules (for example those which have been statically
linked), 2. Try to autoload an .scm-file, 3. Try to dynamically
link a .so-file.
1997-09-16 21:31:19 +00:00
Mikael Djurfeldt
0a54457d78 * boot-9.scm (keyword->symbol, display-usage-report): Changed
length --> string-length.  (Thanks to Aleksandar Bakic.)
(separate-fields-discarding-char, separate-fields-after-char,
separate-fields-before-char): Bugfix from Maciej Stachowiak
<mstachow@mit.edu>.  Thanks!
1997-09-16 20:35:15 +00:00
Mikael Djurfeldt
11b0526116 * boot-9.scm (keyword->symbol, display-usage-report): Changed
length --> string-length.
1997-09-16 20:16:57 +00:00
Mikael Djurfeldt
24b2aac77c * boot-9.scm (iota): Renamed list-reverse! --> reverse! 1997-09-15 21:43:41 +00:00
Mikael Djurfeldt
7cfae7e6ad * session.scm (name): New procedure: Gives name of object.
(source): New procedure: Gives source of object.
1997-09-11 08:59:30 +00:00
Mikael Djurfeldt
2c63000098 * syncase.scm (psyncomp): New procedure: Recompiles psyntax.pp.
Should be used inside the (ice-9 syncase) module with (use-syntax
syncase) and with the current directory containing the psyntax.ss
source.
Added hack to transfer syntactic information from the builtin
variable `define' to the slib version if module (ice-9 slib) has
been loaded.
1997-09-10 20:09:31 +00:00
Mikael Djurfeldt
7a0ff2f807 * * boot-9.scm (primitive-macro?): New procedure.
* slib.scm: Added hack which transfers syntactic information from
	the builtin variable `define' to the slib version if module (ice-9
	syncase) has been loaded.  This is necessary to get correct
	expansion inside the slib module.

	* psyntax.ss (build-let, build-named-let): New output
	constructors.
	(build-lexical-var): Seed gensym with symbolic name.
	(self-evaluating?): Add keywords among self-evaluating types.
	(let): New core form.
	(if): Removed from core language.
	(or, and, let, cond): Removed syntactic definitions.
	(sc-expand3): New procedure: Expander which takes optional mode
	and eval-syntactic-expanders-when arguments.

	* syncase.scm (psyncomp): New procedure: Recompiles psyntax.pp.
	Should be used inside the (ice-9 syncase) module with (use-syntax
	syncase) and with the current directory containing the psyntax.ss
	source.
	Added hack to transfer syntactic information from the builtin
	variable `define' to the slib version if module (ice-9 slib) has
	been loaded.
1997-09-10 20:07:04 +00:00
Mikael Djurfeldt
d43f8c9708 * emacs.scm (emacs-load): Added new parameter `module'.
* syncase.scm (putprop, getprop): Modified to use the object
properties of the variable object corresponding to the symbol;
This way we can ride on the mechanisms of the module system.
Changed `builtin-variable' calls to `define-public' calls.
Setup the hooks sc-expand and sc-interface.

* boot-9.scm (sc-interface, sc-expand): New builtin variables.
(set-current-module): Switch to and from sc-expand as
scm:eval-transformer when going into and out of modules using
syncase macros.
(module-use!): Set scm:eval-transformer to sc-expand when adding
the syncase interface.
1997-09-05 01:21:02 +00:00
Mikael Djurfeldt
1f355b4f35 * syncase.scm (putprop): Temporary fix which publishes new syntax
globally (the old behaviour was complex and connected to the inner
workings of the current module system).
1997-09-04 13:02:10 +00:00
Jim Blandy
1aa8162bdc *** empty log message *** 1997-09-03 22:54:08 +00:00
Mikael Djurfeldt
e9b7bb80d7 * psyntax.ss: Updated.
psyntax.pp: Bugfix: Previous version had some leading "t":s cut
off!
1997-09-03 19:32:26 +00:00
Mikael Djurfeldt
e672f1b55a * boot-9.scm (gensym): Removed (replaced by primitive).
(obarray-gensym): Rewritten to use `gensym'.
(gentemp): Rewritten to use `gensym'.
1997-09-01 22:27:58 +00:00
Mikael Djurfeldt
30d732a682 * gtcl.scm (make-tcl-binder): Rewritten to choose bindings
according to the following priorities:
1. tcl bindings which are present in override-scheme-list
2. bindings from the-scm-module
3. tcl bindings
This way the gtcl module can occur first in the use-list without
disabling the scheme interpreter.
(new-interpreter): New function.

* gwish.scm: Moved initialization code for the-interpreter to
gtcl.scm; Moved name space cleaning code to gtcl.scm and rewrote
it; Call `new-interpreter'; Don't :use-module (guile).
1997-09-01 19:14:30 +00:00
Jim Blandy
6f527da051 * Makefile.in: Regenerated. 1997-08-29 04:50:17 +00:00
Jim Blandy
34695603c7 *** empty log message *** 1997-08-27 22:48:58 +00:00
Jim Blandy
2fe609e0d7 * Makefile.in: Regenerated, so it uses "tar", not "gtar". 1997-08-27 22:47:18 +00:00
Mikael Djurfeldt
02fbff5e8d Regenerated. 1997-08-25 20:05:30 +00:00
Mikael Djurfeldt
b0a0bd4533 *** empty log message *** 1997-08-25 20:03:49 +00:00
Mikael Djurfeldt
52f1b04606 * emacs.scm (object->string, format, error-args->string): New
procedures.
(emacs-frame-eval): Reworked.
1997-08-25 20:03:21 +00:00