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

378 commits

Author SHA1 Message Date
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
Mikael Djurfeldt
a5be27cd24 * session.scm (apropos-internal): Musn't initialize symbol
accumulator with a constant pair.  That led to mutation of the
source!
1997-08-25 15:07:18 +00:00
Mikael Djurfeldt
68aed3ea96 * session.scm (vector-for-each): Removed.
(apropos): vector-for-each --> array-for-each.
(apropos-internal): New function.  Return list of accessible
symbols matching regexp.
1997-08-24 03:39:47 +00:00
Mikael Djurfeldt
1c21502928 * emacs.scm (emacs-load): New arguments: interactivep: when
non-false, send back results to Emacs; colnum: Column number;
Use modules (ice-9 debug) and (ice-9 session);
(no-stack, no-source): New simple-actions;
(result-to-emacs): New procedure. Sends data to Emacs via the
result protocol;
(get-frame-source, emacs-select-frame, emacs-frame-eval,
emacs-symdoc): New procedures.
1997-08-24 03:38:48 +00:00
Mikael Djurfeldt
8ccbf00d9a * debug.scm (frame-number->index): New function. Convert frame
number (as displayed in the backtrace) to frame index (to be used
in stack-ref).
1997-08-24 03:32:43 +00:00
Mikael Djurfeldt
8c5a8bed57 * emacs.scm (emacs-load): New argument: interactivep: when
non-false, send back results to Emacs.
1997-08-21 09:32:37 +00:00
Mikael Djurfeldt
8c3420ad4d * emacs.scm (emacs-load): Adjust stack narrowing.
(whitespace-chars): Include #\np.
1997-08-20 19:52:03 +00:00
Mikael Djurfeldt
eb7ec1e820 * emacs.scm (emacs-load): Adjust stack narrowing. 1997-08-20 17:42:15 +00:00
Mikael Djurfeldt
555f21d8bd *** empty log message *** 1997-08-20 11:24:14 +00:00
Mikael Djurfeldt
5fa781a092 * psyntax.pp: Removed leading blanks => 800K -> 100K. 1997-08-20 11:23:52 +00:00
Mikael Djurfeldt
6a546cd710 * syncase.scm: Also turn off debugging evaluator and recording of
procedure names during loading of psyntax.pp.
1997-08-20 11:23:22 +00:00
Mikael Djurfeldt
a48930c687 * syncase.scm: Don't tamper with debug mode setting when enabling
macros.  Instead cut the stack with start-stack.
	Load psyntax.pp with recording of positions turned off.
1997-08-19 21:58:29 +00:00
Mikael Djurfeldt
19ef2a9bdb * syncase.scm: Don't tamper with debug mode setting when enabling
macros.  Instead cut the stack with start-stack.
1997-08-19 20:51:42 +00:00
Mikael Djurfeldt
4f9cefe3c3 Dybvig's version 1997-08-19 19:45:40 +00:00
Mikael Djurfeldt
868dc739fd Added syncase.scm, psyntax.pp, psyntax.ss 1997-08-19 01:35:09 +00:00
Mikael Djurfeldt
ceb177a473 *** empty log message *** 1997-08-19 01:34:46 +00:00
Mikael Djurfeldt
ae11ddaef4 psyntax.pp, psyntax.ss (quasiquote): Changed fx= --> =. 1997-08-19 01:32:26 +00:00
Mikael Djurfeldt
230c435383 * syncase.scm: New file: Guile-adaption for syntax-case macros.
psyntax.pp, psyntax.ss: Syntax-case macros, portable version 2 by
R. Kent Dybvig, Oscar Waddell, Bob Hieb and Carl Bruggeman
1997-08-19 01:28:50 +00:00
Mikael Djurfeldt
4f161c5cb1 *** empty log message *** 1997-08-18 20:19:18 +00:00
Mikael Djurfeldt
0e81dabd94 * * session.scm: New file: Session support.
(apropos): New procedure: List bindings given regexp.
1997-08-18 20:02:22 +00:00
Gary Houston
6afcd3b2b6 * stime.h: prototype for scm_times.
* stime.c (scm_times): new procedure.
* ioext.c (scm_fseek): if the first argument is a file descriptor
call lseek.
(scm_ftell): if the first argument is a file descriptor call lseek
(sic).
* filesys.h: prototypes for scm_open_fdes, scm_fsync.
* filesys.c (scm_chmod): if the first argument is a file descriptor,
call fchmod.
(scm_chown): if the first argument is a port or file descriptor,
call fchown.
(scm_truncate_file): new procedure.
Add DEFER/ALLOW INTS to a few other procedures.
(scm_fsync): new procedure.
(scm_open_fdes): new procedure.
(scm_open): use scm_open_fdes.  If mode isn't specified, 666 will
now be used.
(scm_fcntl): the first argument can now be a file descriptor.  The
third argument is now optional.

* posix.c (scm_execl, scm_execlp): make the filename argument
compulsory, since omitting it causes SEGV.
(scm_sync): return unspecified instead of #f.
(scm_execle): new procedure.
(environ_list_to_c): new procedure.
(scm_environ): use environ_list_to_c.  disable interrupts.
(scm_convert_exec_args): take pos and subr arguments and
improve error checking.

* boot-9.scm: define tms accessors: clock, utime, stime, cutime,
cstime.
1997-08-16 18:48:44 +00:00
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