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

6023 commits

Author SHA1 Message Date
Thien-Thi Nguyen
8c914f6b69 In boilerplate, use -l$0. Thanks to Daniel Skarda. 2001-08-01 05:09:30 +00:00
Gary Houston
9be745030e * srfi-14.c (scm_char_set_diff_plus_intersection): wasn't correctly
accounting for the (char-set-union cs2...) in the spec.  i.e.,
	(char-set-diff+intersection a) -> copy-of-a, empty-set
	and the following are equivalent:
	(char-set-diff+intersection a (char-set #\a) (char-set #\b))
	(char-set-diff+intersection a (char-set #\a #\b))

	(scm_char_set_xor_x): disabled the side-effecting code, since it
	gives inconsistent results to scm_char_set_xor for the case
	(char-set-xor! a a a).

	(scm_char_set_diff_plus_intersection_x): added cs2 argument, since
	two arguments are compulsory in final spec.  also similar changes
	as for scm_char_set_diff_plus_intersection.
	* srfi-14.h (scm_char_set_diff_plus_intersection_x): added cs2.
2001-07-31 21:42:24 +00:00
Keisuke Nishida
88c4ba2aef * boot-9.scm (process-define-module): Bug fixed. 2001-07-31 14:08:04 +00:00
Dirk Herrmann
3c9a524f01 * Rewrote string->number stuff. 2001-07-30 19:35:15 +00:00
Dirk Herrmann
01f11e027e * Minor changes. 2001-07-30 18:55:50 +00:00
Dirk Herrmann
6cf695375f * Use SCM_CONSP, not SCM_ECONSP. 2001-07-30 18:25:14 +00:00
Marius Vollmer
54866b6c20 *** empty log message *** 2001-07-29 20:48:52 +00:00
Marius Vollmer
8b958d72d1 (hashset-index): Renumbered, since the vcell slot of structs has been
removed.
2001-07-29 20:48:41 +00:00
Marius Vollmer
c0227bcdb0 (build_class_class_slots): Removed vcell slot definition. 2001-07-29 20:46:37 +00:00
Marius Vollmer
7895b092c4 Renumbered slot indices. (SCM_CLASS_CLASS_LAYOUT):
Removed vcell slot layout code.
(scm_si_vcell): Removed.
2001-07-29 20:46:23 +00:00
Marius Vollmer
e93854046b (scm_si_redefined, scm_si_hashsets): Renumbered. 2001-07-29 20:43:05 +00:00
Marius Vollmer
6902384eb9 (scm_struct_vtable_p): Do not check vcell slot for zero. Use
scm_vtable_index_layout instead of "0" when accessing said slot.
(scm_init_struct): Remove vcell slot layout code from
required_vtable_fields.
2001-07-29 20:42:06 +00:00
Marius Vollmer
7866776ca0 (scm_vtable_index_vcell): Removed. Renumbered subsequent indices. 2001-07-29 20:39:38 +00:00
Martin Grabmüller
024001c213 Check in forgotten test scripts. 2001-07-27 16:11:13 +00:00
Marius Vollmer
a0f5718e15 *** empty log message *** 2001-07-26 21:40:52 +00:00
Marius Vollmer
904a077df1 * tags.h: Update tag system docs.
(scm_tc3_cons_gloc): Renamed to scm_tc3_struct.  Changed all uses.
(scm_tcs_cons_gloc): Renamed to scm_tcs_struct.  Changed all uses.
(SCM_ECONSP, SCM_NECONSP): Removed.  Changed all uses to SCM_CONSP
or SCM_NCONSP, respectively.

* struct.c, struct.h, srcprop.c, procs.c, procprop.c, print.c,
objects.c. modules.c, goops.c, eval.c, debug.c: Changed all uses
of scm_tc3_cond_gloc and scm_tcs_cons_gloc.  See above.

* print.c (scm_iprin1): Remove printing of glocs.  Do not try to
tell glocs from structs.

* gc.c (scm_gc_mark, scm_gc_sweep): Remove handling of glocs.

* eval.c (scm_m_atbind): Make a list of variables, not glocs.
(scm_ceval, scm_deval): For SCM_IM_BIND, fiddle with variables
instead of with glocs.
(EVALCAR): Do not test for glocs.
(scm_lookupcar, scm_lookupcar1): Do not handle glocs in race
condition.
(scm_unmemocar): Do not handle glocs.
(scm_m_atfop): Memoize as a variable, not as a gloc.
(scm_eval_args, scm_deval_args): Do not handle glocs.
(scm_ceval, scm_deval): Likewise.

* eval.h (SCM_XEVALCAR): Do not test for glocs.
(SCM_GLOC_VAR, SCM_GLOC_VAL, SCM_GLOC_SET_VAL, SCM_GLOC_VAL_LOC):
Removed.

* debug.h, debug.c (scm_make_gloc, scm_gloc_p): Removed.

* dynwind.c (scm_swap_bindings): Likewise.
(scm_dowinds): Updated to recognize lists of variables instead of
lists of glocs.

* __scm.h (SCM_CAUTIOS, SCM_RECKLESS): Update comments.
2001-07-26 21:40:18 +00:00
Marius Vollmer
5b54c4daa1 *** empty log message *** 2001-07-26 16:58:55 +00:00
Marius Vollmer
d315ea8ccc (GC_noop1): Moved into the same #if/#endif context where it is needed. 2001-07-26 16:58:30 +00:00
Martin Grabmüller
67b7dd9ea9 Minor typo fix in NEWS.
Examples are now built and tested on `make installcheck'.
2001-07-26 05:31:57 +00:00
Gary Houston
3c3db1289a * numbers.c (scm_logand, scm_logior, scm_logxor): adjusted the
docstrings to reflect the n-ary implementation.
2001-07-25 22:37:05 +00:00
Marius Vollmer
dd29a16921 *** empty log message *** 2001-07-25 22:01:50 +00:00
Marius Vollmer
a130e9829b (scm_ceval, scm_deval): Use "RETURN" macro when returning value of a
variable, not the plain "return" statement.
2001-07-25 22:01:27 +00:00
Marius Vollmer
f5fe6c2f7e *** empty log message *** 2001-07-25 21:03:59 +00:00
Marius Vollmer
d22a0ea164 Allow variables in memoized code (in addition to glocs).
(scm_lookupcar): Handle variables in lost races.  Replace symbol
with variable directly, do not make a gloc.
(scm_unmemocar): Rewrite variables using a reverse lookup, just
like glocs.
(scm_ceval, scm_deval): Deal with variables in SCM_IM_SET and in
the main switch.
2001-07-25 21:03:28 +00:00
Marius Vollmer
6d9ad98a17 *** empty log message *** 2001-07-25 15:33:03 +00:00
Marius Vollmer
2b1d120cd7 * variable.c (scm_i_variable_print): Use "value" instead of
"binding" since a binding is the mapping between symbols and
variables, not between variables and their values.
2001-07-25 15:32:30 +00:00
Marius Vollmer
ee0c7345a9 *** empty log message *** 2001-07-25 15:32:20 +00:00
Marius Vollmer
dbf5dfb3c1 * variable.h (scm_tc16_variable): Removed.
(SCM_VARIABLEP): Test for new tc7 code.
(scm_i_variable_print): New.
* variable.c (scm_tc16_variable): Removed.
(variable_print): Renamed to scm_i_variable_print and made
non-static.
(variable_equal_p): Removed.
(make_variable): Construct a tc7 object instead of a smob.
(scm_init_variable): Do not register smob.
2001-07-25 15:28:07 +00:00
Marius Vollmer
e5aca4b5c4 * tags.h (scm_tc7_variable): New.
* gc.c (scm_gc_mark): Handle scm_tc7_variable objects.
* print.c (scm_iprin1): Likewise.
2001-07-25 15:22:53 +00:00
Marius Vollmer
11057044d8 *** empty log message *** 2001-07-23 22:10:42 +00:00
Marius Vollmer
6ebb983574 (SUBDIRS): Build libguile before ice-9. 2001-07-23 22:10:29 +00:00
Marius Vollmer
9d198c1b17 * syncase.scm (psyncomp): Removed, it is now in compile-psyntax.scm.
* Makefile.am (psyntax.pp): Enable rule for psyntax.pp only in
maintainer mode.  Use compile-psyntax.scm for actual compilation.
Make sure the uninstalled guile is used.
(EXTRA_DIST): Distribute compile-psyntax.scm
* compile-psyntax.scm: New file.
2001-07-23 22:09:42 +00:00
Gary Houston
d95744e986 Reverse the n-ary logxor change. The behaviour is weird in a set
context, but consistent with logxor and scsh.  Maybe it should get
     the benefit of the doubt.
2001-07-22 23:21:03 +00:00
Gary Houston
42b54c05a9 (scm_char_set_xor): bug fix: characters should only be included if
they occur in exactly one argument, but were included if they
	occured an odd number of times >= 3, e.g, in (char-set-xor a a a)
	where a is (char-set #\a).  fix it with a "mask" array.
2001-07-22 22:01:50 +00:00
Gary Houston
d1bc66027e * srfi-14.c (scm_char_set_intersection, scm_char_set_xor): remove
the compulsory cs1 arguments: all args are optional in final spec.
	* srfi-14.h: declarations updated.
2001-07-22 20:17:28 +00:00
Marius Vollmer
f3805ebb7c *** empty log message *** 2001-07-22 18:31:11 +00:00
Marius Vollmer
24d1fde84c * tags.h (SCM_UNBOUND): Make it the 34th isym/iflag, the 33th slot is
taken by the new SCM_IM_CALL_WITH_VALUES.
* print.c (scm_isymnames): Update table accordingly.
2001-07-22 18:30:36 +00:00
Marius Vollmer
cda36c2356 * tags.h: Include inttypes.h when we have it.
* tags.h (SCM_UNBOUND): Make it the 34th isym/iflag, the 33th slot is
taken by the new SCM_IM_CALL_WITH_VALUES.
* print.c (scm_isymnames): Update table accordingly.
2001-07-22 18:30:08 +00:00
Marius Vollmer
f4d1173bb3 Check for "inttypes.h". 2001-07-22 18:28:21 +00:00
Gary Houston
6a1677a396 * regex-posix.c (s_scm_regexp_exec): use scm_long2num not
SCM_MAKINUM to convert regoff_t value to SCM.
2001-07-22 12:49:02 +00:00
Thien-Thi Nguyen
9977b4fb1f *** empty log message *** 2001-07-22 11:09:23 +00:00
Thien-Thi Nguyen
32bc3c4596 (autoload-info): Also handle `defmacro-public' forms. 2001-07-22 11:08:18 +00:00
Gary Houston
1bed8c28a2 * scmsigs.c: include sys/time.h for itimer stuff. 2001-07-21 21:11:16 +00:00
Thien-Thi Nguyen
bd8398e6ef Remove "how to contribute" header paragraph. 2001-07-21 06:42:46 +00:00
Martin Grabmüller
58ade1022c * alist.c, arbiters.c, async.h, backtrace.h, boolean.c, chars.c,
chars.h, continuations.h, debug-malloc.h, dynl.c, feature.c,
	feature.h, filesys.h, fluids.h, fports.h, gc_os_dep.c,
	gdb_interface.h, gh_eval.c, gh_funcs.c, gh_io.c, gh_list.c,
	gh_predicates.c, gsubr.c, gsubr.h, guardians.h,
	guile-func-name-check.in, guile-snarf-docs-texi.in,
	guile-snarf-docs.in, guile-snarf.awk.in, guile-snarf.in,
	hashtab.h, iselect.h, keywords.h, lang.c, list.h, load.h,
	objprop.c, objprop.h, options.c, options.h, random.h,
	regex-posix.h, root.c, root.h, script.c, snarf.h, stackchk.c,
	strerror.c, strop.h, strports.h, threads.h, values.c, values.h,
	version.c, version.h: Updated copyright notice.
2001-07-19 21:08:49 +00:00
Martin Grabmüller
c0b2936ee9 * INSTALL, Makefile.am, configure.in: Updated copyright notice. 2001-07-19 20:57:59 +00:00
Martin Grabmüller
96e30d2ab2 * tests/alist.test, tests/bit-operations.test,
tests/common-list.test, tests/environments.test, tests/eval.test,
	tests/gc.test, tests/hooks.test, tests/import.test,
	tests/interp.test, tests/list.test, tests/load.test,
	tests/numbers.test, tests/ports.test, tests/r4rs.test,
	tests/version.test, tests/weaks.test, lib.scm, guile-test: Updated
	copyright notice.
2001-07-19 20:30:37 +00:00
Martin Grabmüller
46a7b46f0c * srfi-11.scm, srfi-8.scm: Update copyright notice. 2001-07-19 20:28:33 +00:00
Martin Grabmüller
f3a5178732 * goops/util.scm: Updated copyright notice. 2001-07-19 20:27:40 +00:00
Martin Grabmüller
e39bbe80b6 * and-let-star.scm, debug.scm, debugger.scm, history.scm,
lineio.scm, null.scm, optargs.scm, r4rs.scm, r5rs.scm,
	receive.scm, safe-r5rs.scm, streams.scm: Updated copyright notice.
2001-07-19 20:24:49 +00:00