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
Jim Blandy
d098b5d348 (load): Should call primitive-load-path, not primitive-load. Oops. 1996-10-28 23:15:34 +00:00
Jim Blandy
99f97bfe7e *** empty log message *** 1996-10-28 23:06:04 +00:00
Jim Blandy
c368ffcff1 * boot-9.scm (load): Simplified; primitive-load does most of this
work now.
(%load-announce-win): Removed; no longer used.  Set %load-hook to
call %load-announce.
1996-10-28 23:00:25 +00:00
Jim Blandy
4fe3604d42 *** empty log message *** 1996-10-28 19:37:04 +00:00
Gary Houston
3afb28ce85 * boot-9.scm (stat:dev etc.) accessor functions for stat components.
(file-is-directory?): use stat:type.
1996-10-27 23:26:35 +00:00
Jim Blandy
3065a62a4c *** empty log message *** 1996-10-25 08:40:27 +00:00
Jim Blandy
0464a0956f * boot-9.scm (%read-sharp): Don't recognize the `#!' syntax here;
that's now taken care of in libguile, and in a way compatible with
SCSH (which this isn't).
1996-10-25 08:35:36 +00:00
Jim Blandy
e4c5095fda *** empty log message *** 1996-10-21 23:54:02 +00:00
Jim Blandy
c7c03b9f87 * boot-9.scm: Formatting tweaks. 1996-10-21 23:53:01 +00:00
Mikael Djurfeldt
fdd649e1bf Adjustment of load-stack selection. 1996-10-18 00:15:09 +00:00
Mikael Djurfeldt
c27659c87d Bugfix: arg-list --> args in error handler. 1996-10-17 23:56:31 +00:00
Mikael Djurfeldt
1bb961a353 *** empty log message *** 1996-10-17 23:43:30 +00:00
Mikael Djurfeldt
1c6cd8e85e * boot-9.scm (handle-system-error): Added hooks before-error-hook,
after-error-hook, before-backtrace-hook and after-backtrace-hook
to the error handler.  E.g.: fancy emacs support could plug into
these.
(save-stack): New function.  The stack is now made differently
depending on the stack id.  (The motivation is to make a better
choice regarding what stack frames to present to the user.)
(error-catching-loop): Stack handling code moved outside into
save-stack.
1996-10-17 23:43:23 +00:00
Gary Houston
d7189b4983 * Makefile.in (scm_files): add expect.scm.
* expect.scm: new file ported from guile-iii.
1996-10-17 23:21:10 +00:00
Gary Houston
35c5db8731 Second thoughts, keep handle-system-error but call it from
error-catching-loop.
1996-10-17 21:56:22 +00:00
Gary Houston
9a0d70e21e * boot-9.scm: remove handle-system-error, after moving the code into
error-catching-loop.
Don't set 'throw-handler-default property on error keys.
Just interpret (almost) any throw with 4 args as an error throw.
Delete some try-load stuff that was already commented out.
1996-10-17 21:45:04 +00:00
Jim Blandy
44cf1f0f8c Formatting niggles. 1996-10-16 22:29:19 +00:00
Jim Blandy
aa9576adaf *** empty log message *** 1996-10-16 02:22:21 +00:00
Jim Blandy
8b718458f3 * boot-9.scm: Doc fixes.
(make-module): Rework for readability.
(make-root-module, make-scm-module): USES argument to make-module
should be '(), not #f.
1996-10-16 02:18:33 +00:00
Jim Blandy
d065b65fdb *** empty log message *** 1996-10-15 22:31:06 +00:00
Jim Blandy
352a1ccedb * boot-9.scm (try-load): %sys-load-path has been renamed to
primitive-load-path; adjust call here.
1996-10-15 22:29:46 +00:00
Mikael Djurfeldt
fcd69146b1 *** empty log message *** 1996-10-15 14:06:29 +00:00
Mikael Djurfeldt
c01c94bf26 *** empty log message *** 1996-10-15 12:27:01 +00:00
Mikael Djurfeldt
5f771ab149 * boot-9.scm ((signal-handler n)): Bugfix: Moved the recording of
the stack to the correct place: when it is decided to generate an
error-signal.
1996-10-15 12:26:49 +00:00
Mikael Djurfeldt
2dfc85c018 *** empty log message *** 1996-10-14 20:29:16 +00:00
Mikael Djurfeldt
4cdee789b7 * boot-9.scm (error-catching-loop, signal-handler,
handle-system-error): Backtracing now works for signals aswell;
Backtracing mechanism can now identify the stack root created by
start-stack so that the user isn't exposed to system stack frames.
1996-10-14 20:28:39 +00:00
Mikael Djurfeldt
84d8ad9726 *** empty log message *** 1996-10-14 04:08:01 +00:00
Mikael Djurfeldt
bf05754893 * Makefile.in: Added threads.scm. 1996-10-14 04:07:53 +00:00
Mikael Djurfeldt
4f0292cfdb *** empty log message *** 1996-10-14 03:28:57 +00:00
Mikael Djurfeldt
6d2388ee6c * debug.scm (make-enable, make-disable): Simplified. 1996-10-14 03:28:35 +00:00
Mikael Djurfeldt
9b7def6677 * boot-9.scm: Renamed %%throw-handler-default -->
throw-handler-default.
((handle-system-error key . arg-list)): Changed the way errors are
reported.
((scm-style-repl)): Wrap up the call to eval in a start-stack
acro.
((error-catching-loop thunk)): Introduce a lazy-catch into
error-catching-loop so that the stack can be captured.
1996-10-14 03:28:26 +00:00
Jim Blandy
1eaceb6160 *** empty log message *** 1996-10-11 07:58:43 +00:00
Jim Blandy
95b6af86e8 * mapping.scm (hash-table-mapping): Explicitly request that
make-vector fill new vectors with '(); this will make it easier to
port Guile Scheme code to other Schemes.
* boot-9.scm (make-print-style, make-print-table): Same.
1996-10-11 07:54:02 +00:00
Gary Houston
6fa8995c39 * boot-9.scm (load): rewritten again.
Append "." to the default %load-path.
(feature?): new function: checks for a symbol in the features list.
(module-local-variable): remove apparently useless (caddr (list m v
...))
(%load-announce): minor formatting change.
(file-exists?): use access? if posix is featured.
(file-is-directory?): use stat if i/o-extensions is featured.
(try-module-autoload module-name): use file-exists? before
file-is-directory?
1996-10-06 06:33:11 +00:00
Mikael Djurfeldt
8acae5bbb7 *** empty log message *** 1996-10-05 17:48:40 +00:00
Mikael Djurfeldt
1188fb05bd * threads.scm: New file. Modified from the Cygnus-r0.3
distribution.
1996-10-05 17:48:22 +00:00
Mikael Djurfeldt
90895e5c8f * boot-9.scm: Added conditional loading of threads.scm. 1996-10-05 17:47:59 +00:00
Mikael Djurfeldt
8b4a21d1fb *** empty log message *** 1996-10-05 16:55:22 +00:00
Mikael Djurfeldt
1349bd530e * boot-9.scm (error-catching-loop): Added handling of key
`switch-repl'.

* boot-9.scm: Name change %%bad-throw --> bad-throw.
1996-10-05 16:55:06 +00:00
Jim Blandy
c90c9685af *** empty log message *** 1996-10-03 05:50:40 +00:00
Jim Blandy
8e69342425 * boot-9.scm (make-record-type, record-constructor): Don't assume
the empty list is false when parsing the argument list.
1996-10-03 05:47:12 +00:00
Gary Houston
5552355a7b * boot-9.scm (error): replace another throw with scm-error. Throw
to 'misc-error instead of 'error (no need to distinguish these.)
Don't set up 'error as a key.
Set up regex-error as a key, if regex is available.
(signal-handler): use scm-error, not throw.

(%try-load, try-load-with-path, %load, load-with-path,
basic-try-load-with-path, basic-load-with-path,
try-load-module-with-path,load-module-with-path): deleted, since
they seem redundant.
(try-load): define using %try-load, not try-load-with-path.
(load): rewritten.  load tries to open the file directly and
with a .scm extension before searching the library directories
(should "." be added to %load-path?  then load could still open
directly files starting with "/").
(try-module-autoload): use load, not load-with-path.
(%load-indent): deleted, -2 was causing errors.

(%read-sharp): use port-line, not line-number.
1996-09-28 19:38:45 +00:00
Gary Houston
855c0eacc8 * boot-9.scm (%try-load): define using primitive-load. Previously
%try-load itself was the primitive.
(load-with-path): use scm-error instead of %load-announce-lossage.
Errors are thrown to 'misc-error instead of 'could-not-load.
(%load-announce-lossage): deleted.
1996-09-24 07:19:51 +00:00
Mikael Djurfeldt
a0c976972a *** empty log message *** 1996-09-22 22:51:18 +00:00
Mikael Djurfeldt
6355358ad9 * boot-9.scm (warn, scm-style-repl): Use C printer instead of `print'.
(make-record-type type-name fields): Temporarily remove support
for printing of records (not possible yet with C printer).
1996-09-22 22:51:01 +00:00
Gary Houston
be2d2c708b * boot-9.scm (file-exists?, file-is-directory): catch only
system-error, not every kind of error.
(scm-error): new procedure.
1996-09-20 09:02:14 +00:00
Jim Blandy
434bf5ce78 . 1996-09-19 21:03:43 +00:00
Gary Houston
2194b6f00e * boot-9.scm (%%handle-system-error key): remove the code for
SCM-style errors.  handle the case that an unexpected number
	of args are supplied.
	(%%system-errors): removed.
	(error): redefine using a throw with key and 4 args.
	('error): associate 'error, 'error-signal keys with
	%%handle-system-error.
	(%%default-error-handler): removed.
	(signal-handler): throw with 4 args and use the error-signal key.
	Create an error message instead of using numerical codes.
	(%%bad-throw): call error instead of throw if key not found.

	* boot-9.scm: initialize new error keys (see libguile/ChangeLog).
	(%%handle-system-error key): check subr is not #f before printing.
	Recognize %s (embed an argument using "display") and
	%S (embed an argument using "write").
1996-09-19 09:04:55 +00:00
Gary Houston
234f2da620 * boot-9.scm (%%handle-system-error key): set args and rest to
the empty list if they are #f.
Initialize out-of-range as an error key.
1996-09-15 06:36:11 +00:00
Gary Houston
40c8906e1d * PLUGIN/REQ: try to make dependencies work right.
* PLUGIN/guile.config (xtra_dependencies): add only libgh.a.
(xtra_cflags): just add -L../lgh

* PLUGIN/guile.libs: try -lgh -lguile

* Makefile.am (INCLUDES): add -I../ so that libguile/scmconfig.h can
be found when srcdir != build dir.

* PLUGIN/REQ: remove the "ice-9 lgh" line which causes a cycle.
1996-09-14 09:53:20 +00:00