1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-04 22:40:25 +02:00
Commit graph

1368 commits

Author SHA1 Message Date
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
Marius Vollmer
4851dc578d Fixed bad placement of struct news 1997-10-04 11:41:36 +00:00
Mikael Djurfeldt
c420febff1 Regenerated. 1997-10-03 00:53:49 +00:00
Mikael Djurfeldt
ef1ea498fc *** empty log message *** 1997-10-03 00:52:00 +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
Mikael Djurfeldt
4bfdf1584d 1997-10-03 Mikael Djurfeldt <mdj@nada.kth.se>
* print.h (SCM_PRINT_STATE_P): Removed SCM_NIMP test.  (NIMP
	macros should by convention not test for NIMPness.)
	(SCM_COERCE_OPORT): Adjust indentation.

	* print.c (scm_valid_oport_value_p): Adjusted indentation; Added
	SCM_NIMP test before SCM_PRINT_STATE_P.

	* struct.c, struct.h, gc.c: Renamed:
	scm_struct_i_layout	   --> scm_vtable_index_layout
	scm_struct_i_vcell	   --> scm_vtable_index_vcell
	scm_struct_i_vtable	   --> scm_vtable_index_vtable
	scm_struct_i_printer	   --> scm_vtable_index_printer
	scm_struct_i_vtable_offset --> scm_vtable_offset_user

	* struct.c (scm_print_struct): Use new printer slot; Default
	printing: Also output hex code of vtable so that type identity
	will be indicated as well.
	(scm_init_struct): Updated required_vtable_fields to "pruosrpw";
	Removed struct_printer_var; Removed struct-vtable-offset;
	(vtable-index-layout, vtable-index-vtable, vtable-index-printer,
	vtable-offset-user): New constants.

	* struct.h (scm_struct_i_vtable_offset): Bumped from 3 to 4.
	(scm_struct_i_printer, SCM_STRUCT_PRINTER): New slot in vtables.
  	If this slot contains a procedure, use that to print structures of
 	the type represented by this vtable.

	* print.c (scm_iprin1): Don't print arguments of macro
 	transformers.  (They are always: exp env.); Bugfix: Unmemoize
 	transformer source with correct environment.
1997-10-03 00:44:28 +00:00
Mikael Djurfeldt
f44dd64b76 Small adjustment to remove compiler warning message. 1997-10-02 22:13:26 +00:00
Mikael Djurfeldt
ba031394ec * print.c (scm_iprin1): Don't print arguments of macro
transformers.  (They are always: exp env.); Bugfix: Unmemoize
transformer source with correct environment.
1997-10-02 17:52:03 +00:00
Marius Vollmer
20cb8b8c4f *** empty log message *** 1997-10-02 15:09:45 +00:00
Marius Vollmer
1345df5d0d * throw.h (scm_handle_by_proc_catching_all): New prototype
throw.c (scm_handle_by_proc_catching_all): New function
1997-10-02 15:05:57 +00:00
Marius Vollmer
45113884d6 *** empty log message *** 1997-10-02 15:01:11 +00:00
Marius Vollmer
e71575d925 * root.c (cwdr_inner_body, cwdr_body): Remove "inner" from name,
there is now only one catch.
(cwdr_outer_body): Removed.
(cwdr_handler): New function.
(scm_internal_cwdr): New function to perform the function of cwdr
but take args that are more useful to C code.  Also, the handler
is now invoked *outside* of the new dynamic root, like the docs
say.  We no longer have to catch absolutely all errors, the caller
is responsible for using a handler that does not throw, if he
wants that.
(cwdr): Reimplemented in terms of scm_internal_cwdr.
* root.h (scm_internal_cwdr): New prototype.

* root.c (USE_STACKJMPBUF): New define to activate a stack-based
allocation of the jumpbuf of a root continuation.  The changes
below are controlled by it.  They are now deactivated.
(scm_internal_cwdr): Allocate the scm_contregs on the stack.  Set
the JMPBUF of the scm_rootcont to NULL before returning.
1997-10-02 15:00:03 +00:00
Marius Vollmer
bb35f3151b * print.h (SCM_PRINT_STATE_P, SCM_COERCE_OPORT): New macros.
(struct scm_print_state) [revealed]: New field.
(scm_print_state_vtable): Make visible to the outside world for
type checking purposes.
(scm_valid_oport_value_p): New prototype.

* print.c (scm_valid_oport_value_p): New function to check whether
a certain value is acceptable as a port argument.
(scm_print_state_vtable): New variable.
(scm_free_print_state): Set `revealed' field to false.
(scm_iprin1): Call user supplied closure printer with
scm_printer_apply.  Print in the traditional way when there isn't
one or when it returns #f.
(scm_prin1, scm_display, scm_write, scm_newline, scm_write_char):
Accept a port/print-state pair in addition to just a port.
(scm_prin1): Don't return the print_state to the pool when it has
been `revealed'.
(scm_printer_apply): Set `revealed' field of print_state to true.
(scm_init_print): Set scm_print_state_vtable.
(print_state_fluid, print_state_fluid_num): Removed.
1997-10-02 14:55:02 +00:00
Marius Vollmer
c68296f8fd * gc.c (scm_gc_sweep): Free the SCM_VELTS of a scm_tc7_contin only
when they are non-NULL.
(scm_gc_mark): Likewise, mark only when non-NULL.

* gc.c (scm_done_malloc): New function.
gc.h (scm_done_malloc): New prototype.
1997-10-02 14:45:09 +00:00
Marius Vollmer
5fccacb91b * gc.c (scm_done_malloc): New function.
gc.h (scm_done_malloc): New prototype.
1997-10-02 14:42:58 +00:00
Marius Vollmer
5ddca2ef51 Make dynamic linking work on Dec Unix. (Thanks to Clark McGrew)
* dynl.c: Include "dynl-dl.c" also when HAVE_DLOPEN is defined.
1997-10-02 14:40:30 +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
Marius Vollmer
cd721def20 *** empty log message *** 1997-10-02 14:21:37 +00:00
Marius Vollmer
a49953899d Make dynamic linking work on Dec Unix. (Thanks to Clark McGrew)
* configure.in: Check whether dlopen can be found without -ldl.
1997-10-02 14:17:07 +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
Mikael Djurfeldt
cb0a5b3957 automake version bumped to 1.2c 1997-09-30 13:39:12 +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
Jim Blandy
ec79dd9771 *** empty log message *** 1997-09-30 03:50:56 +00:00
Radey Shouman
de59897ac6 *** empty log message *** 1997-09-29 03:37:26 +00:00
Radey Shouman
e42c09cc6f Fixed problem in scm_array_index_map_x: looped endlessly with zero-rank
argument.
1997-09-29 03:29:27 +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
f6a2912315 *** empty log message *** 1997-09-28 04:09:06 +00:00
Jim Blandy
0d7368d7c1 * strports.c (scm_eval_string): Don't close the port. 1997-09-28 04:08:02 +00:00
Jim Blandy
3cef7514cb * stime.c (bdtime2c): Use SCM_LENGTH, not scm_vector_length; the
former returns a nice normal integer.  (Thanks to Daniel
Risacher.)
1997-09-28 04:07:04 +00:00
Jim Blandy
b8b1f32221 * New directory --- the build-guile command, intended to help
people build Guile-based applications.
* Makefile.am, Makefile.in, build-guile.in: New files.
1997-09-28 03:17:45 +00:00
Jim Blandy
8a01e7548c *** empty log message *** 1997-09-28 03:17:07 +00:00
Jim Blandy
993c846b48 * Makefile.in, md/Makefile.in, time/Makefile.in: Regenerated with
automake 1.2a.
1997-09-28 03:14:31 +00:00
Jim Blandy
af3509d72c * script.c (scm_compile_shell_switches): If we hit the -c or --
arguments, don't set the car of (command-line) to scm_usage_name,
the prettified name of the guile executable; give it the full
path, the way shells usually handle $0.
1997-09-28 03:13:36 +00:00
Jim Blandy
f8392303c5 Thanks to Shiro Kawai:
* gc.c (scm_gc_mark): Pass NULL to scm_wta as the subroutine name.
* ports.h (scm_ptobfuns): The fgets method returns a char *, not
an SCM.
1997-09-28 03:12:42 +00:00
Jim Blandy
cbab9700c3 * Makefile.am (libpath.h): Include the value of the THREAD_LIBS
makefile variable as a build parameter called LIBS.  The
build-guile program will use this, for the time being.
* Makefile.in: Regenerated.

* Makefile.in: Regenerated with automake 1.2a.
1997-09-28 03:12:04 +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
Jim Blandy
9ba3d4034c * Makefile.am: Add new `build' subdirectory to SUBDIRS.
* configure.in: Add build/Makefile to AC_OUTPUT clause.
* Makefile.in, configure: Regenerated.

* Makefile.in, aclocal.m4: Regenerated with automake 1.2a.
1997-09-28 03:06:14 +00:00
Jim Blandy
73e747bc28 *** empty log message *** 1997-09-28 03:04:17 +00:00
Jim Blandy
86f4024809 Move bug report address to top.
Mention European FTP mirror site.
1997-09-28 03:03:56 +00:00
Jim Blandy
7ed46dc83a Typo. 1997-09-28 03:03:20 +00:00
Mikael Djurfeldt
7e7904004c * ramap.c (scm_array_map): Renamed to scm_array_map_x. Removed
Scheme-level name `array-map' and renamed `serial-array-map' to
`serial-array-map!'.
1997-09-24 21:29:02 +00:00
Mikael Djurfeldt
298aa6e315 scm_array_map & co 1997-09-24 21:28:24 +00:00
Mikael Djurfeldt
bdf8afffb5 * backtrace.c: Introduced exception handlers which now enclose
`display-error' and `display-backtrace' so that error reporting
won't get into infinite loops if an error occurs during displaying
of the error.  This can very easily happen with user supplied
print call-back routines.
1997-09-24 20:18:54 +00:00
Mikael Djurfeldt
152800f1d3 Bugfix of the bugfix. 1997-09-24 19:46:47 +00:00