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

1467 commits

Author SHA1 Message Date
Jim Blandy
cceae55da9 *** empty log message *** 1999-04-17 16:53:21 +00:00
Jim Blandy
f6e164d420 Remove readline support, to avoid copyright confusion.
* Makefile.am: Remove readline files from lists.
* init.c: Don't initialize readline.
* scmconfig.h.in: Regenerated.
1999-04-17 16:52:51 +00:00
Jim Blandy
331de0309e * Makefile.in: Regenerated. 1999-04-17 16:51:31 +00:00
Jim Blandy
ef0615e4d8 *** empty log message *** 1999-04-17 16:03:58 +00:00
Jim Blandy
e4755e5c7b * numbers.c (s_bignum): Renamed to s_bignum, and made static.
Libguile should not be exporting random little strings.
* numbers.h (s_bignum): Extern declaration removed.
More const changes from Ken Raeburn.
* numbers.c (scm_s_bignum, fx): Now const.
(scm_logtab, scm_ilentab, s_adjbig): Now static and const.
* numbers.h (scm_s_bignum): Update declaration.
* eval.c (bodycheck): Argument WHAT now points to const.
* snarf.h (SCM_SYNTAX): Name is const.
* eval.c (scm_i_let): Make this globally visible, to avoid dynamic
linking crashes on NetBSD.  (Thanks to Ken Raeburn.)
1999-04-17 16:03:32 +00:00
Jim Blandy
cf1b6cc8ca Remove readline support, to avoid copyright confusion.
* Makefile.in: Remove readline files from lists.
* init.c: Don't initialize readline.
* scmconfig.h.in: Regenerated.
1999-04-17 16:02:50 +00:00
Jim Blandy
4640803949 Formatting tweak. 1999-04-17 15:55:54 +00:00
Mikael Djurfeldt
f812cd8e6d * libguile.h: Added #include evalext.h, fluids.h, guardians.h,
macros.h, modules.h, random.h, sort.h.
1999-03-27 17:25:16 +00:00
Mikael Djurfeldt
488325ae43 *** empty log message *** 1999-03-26 14:06:13 +00:00
Mikael Djurfeldt
e6f3ef586c * numbers.c (isfinite): Define this macro if not defined: Return a
non-zero value if X is finite.  (From ISO C 9x standard.)
(scm_inexact_to_exact): Bugfix: Don't pass NaNs to scm_dbl2big.
(Thanks to Jon Trowbridge and Greg Harvey.)
1999-03-26 13:45:05 +00:00
Mikael Djurfeldt
ce967ab1e2 * kw.h: New file. 1999-03-22 12:06:52 +00:00
Mikael Djurfeldt
e7367a17f6 *** empty log message *** 1999-03-22 12:05:28 +00:00
Mikael Djurfeldt
876cabcae7 Regenerated 1999-03-22 12:05:00 +00:00
Mikael Djurfeldt
74da5385a8 * Makefile.am (modinclude_HEADERS): Added kw.h; 1999-03-22 12:02:02 +00:00
Mikael Djurfeldt
b27aca0a9e * keywords.c (scm_tc16_kw): Added for backward compatibility.
Will be removed in next release.
1999-03-22 11:58:59 +00:00
Mikael Djurfeldt
f2327aef58 * libguile.h: #include "libguile/kw.h" 1999-03-22 11:55:38 +00:00
Mikael Djurfeldt
46d830254d *** empty log message *** 1999-03-22 01:22:46 +00:00
Mikael Djurfeldt
9b8721aa7c * pairs.c (scm_set_car_x, scm_set_cdr_x): Return SCM_UNSPECIFIED. 1999-03-22 01:22:04 +00:00
Mikael Djurfeldt
437bc84d51 *** empty log message *** 1999-03-21 10:09:18 +00:00
Mikael Djurfeldt
4df91bd689 * print.c (scm_isymnames): Added #@dispatch and #@hash-dispatch. 1999-03-21 10:08:59 +00:00
Mikael Djurfeldt
e059c0b79b *** empty log message *** 1999-03-21 05:04:45 +00:00
Mikael Djurfeldt
8cd5191b27 * hashtab.c, hashtab.h (scm_hash_fold, scm_internal_hash_fold):
Place the table argument last.
1999-03-21 05:02:42 +00:00
Mikael Djurfeldt
4177648ed1 *** empty log message *** 1999-03-19 07:13:56 +00:00
Mikael Djurfeldt
bcf12299de * debug.c, eval.c, evalext.c, gdbint.c stacks.c:
#include "modules.h".
1999-03-19 07:13:39 +00:00
Mikael Djurfeldt
7e68f4482b *** empty log message *** 1999-03-19 02:30:53 +00:00
Mikael Djurfeldt
650de6d73d * debug.c, eval.c, evalext.c, stacks.c: #include "modules.h". 1999-03-19 02:28:41 +00:00
Mikael Djurfeldt
4cbdf5ccfc * debug.c, eval.c, evalext.c, stacks.c: #include "modules.h".
* modules.c, modules.h, eval.c, eval.h (scm_env_top_level,
scm_top_level_env, scm_system_module_env_p): Moved to modules.c.
1999-03-19 02:28:23 +00:00
Mikael Djurfeldt
d164a5af5c * modules.c: #include "procprop.h"
(scm_system_module_env_p): Assume root environment is no lookup
closure is found.
* modules.c, modules.h, eval.c, eval.h (scm_env_top_level,
scm_top_level_env, scm_system_module_env_p): Moved to modules.c.
1999-03-19 02:28:09 +00:00
Mikael Djurfeldt
bedec8037a * modules.c, modules.h, eval.c, eval.h (scm_env_top_level,
scm_top_level_env, scm_system_module_env_p): Moved to modules.c.
* eval.c, eval.h (scm_top_level_lookup_closure): Removed.
1999-03-19 02:27:41 +00:00
Mikael Djurfeldt
185905af69 * debug.c, eval.c, evalext.c, stacks.c: #include "modules.h".
* modules.c, modules.h, eval.c, eval.h (scm_env_top_level,
scm_top_level_env, scm_system_module_env_p): Moved to modules.c.
* eval.c, eval.h (scm_top_level_lookup_closure): Removed.
1999-03-19 02:27:12 +00:00
Mikael Djurfeldt
cd713a0622 *** empty log message *** 1999-03-18 12:49:49 +00:00
Mikael Djurfeldt
26a4f923bc * error.c (scm_wta): Pass SCM_LIST1 (arg) instead of SCM_EOL to
scm_misc_error when pos is a string.  This allows for dispatching
arbitrary error messages with one argument via SCM_ASSERT:
SCM_ASSERT (<cond>, obj, "Undigestable object: %S", <subr>);
1999-03-18 12:48:55 +00:00
Mikael Djurfeldt
64af44a3f3 *** empty log message *** 1999-03-16 16:38:48 +00:00
Mikael Djurfeldt
3946f0ded4 * list.c (scm_reverse): Report an error if given a circular list
instead of filling memory.
* list.c (scm_reverse_x): Check args.
1999-03-16 16:37:51 +00:00
Mikael Djurfeldt
547e65b5df #include "keywords.h" 1999-03-14 18:51:45 +00:00
Mikael Djurfeldt
dbc4ad3dbe * keywords.c, keywords.h: Files renamed from kw.c, kw.h. 1999-03-14 16:58:24 +00:00
Mikael Djurfeldt
6ee350ad3f *** empty log message *** 1999-03-14 16:55:01 +00:00
Mikael Djurfeldt
f7da61905e Regenerated 1999-03-14 16:53:39 +00:00
Mikael Djurfeldt
6decd505c5 * struct.h (SCM_STRUCT_TABLE_NAME, SCM_SET_STRUCT_TABLE_NAME,
SCM_STRUCT_TABLE_CLASS, SCM_SET_STRUCT_TABLE_CLASS): New macros.
Used for access of struct table entries.
1999-03-14 16:52:56 +00:00
Mikael Djurfeldt
98d5f6018a * struct.c: #include "alist.h", "weaks.h", "hashtab.h";
(scm_struct_table): Weak key table with auxilliary information for
struct types.  Currently used for names and wrapper classes.
(scm_struct_ihashq): Hash function for structs.
(scm_struct_create_handle): Get/create entry in scm_struct_table.
(scm_struct_vtable_name, scm_set_struct_vtable_name_x): Procedures
for accessing names of vtables.  The record implementation in
boot-9.scm currently uses the setter to record the name of record
types.  When the object system is initialized, it can use this
information to create wrapper classes with suitable names.
(scm_init_struct): Allocate scm_struct_table.
(scm_alloc_struct): Don't initialize scm_struct_i_tag here.
(struct tags are a finite resource and we might want to restrict
the use of tags to vtables only.  E.g., Goops only uses tags for
classes.)
(scm_make_struct): Use scm_struct_entity_n_extra_words instead of
magic number 5.
(scm_struct_vtable_tag): Use scm_struct_i_tag instead of magic
number -1.
1999-03-14 16:52:32 +00:00
Mikael Djurfeldt
da61c37a08 * objects.c: #include "smob.h";
(scm_class_keyword): Removed.  (Class is automatically created by
make_smob_classes.)
(scm_smob_class): Array of smob classes indexed by smobnum.
(scm_make_extended_class): "Plugin" function pointer for creation
of wrapper classes for smob and struct types.
(scm_class_of): Handle compiled closures.  (Currently regarded as
<procedure>.);
Use scm_smob_class to handle smob types;
Handle scm_tc16_bigpos, scm_tc16_bigneg, and, scm_tc16_keyword
through scm_smob_class;
Handle structs.
* smob.h (SCM_TC2SMOBNUM): New macro for conversion between tc16
type code and smobnum.
1999-03-14 16:52:15 +00:00
Mikael Djurfeldt
d7ec6b9f78 * smob.c (scm_newsmob): Also create a wrapper class if
scm_smob_class has been initialized.
1999-03-14 16:51:55 +00:00
Mikael Djurfeldt
0e76bf6680 * Makefile.am, init.c, libguile.h, objects.c, root.h: Replaced
"kw" --> "keywords" everywhere.
(I doubt that this will cause big compatibility problems since the
application interface is unaffected.)
1999-03-14 16:51:37 +00:00
Mikael Djurfeldt
ed6e0c83f5 * objects.c: #include "smob.h";
(scm_class_keyword): Removed.  (Class is automatically created by
make_smob_classes.)
(scm_smob_class): Array of smob classes indexed by smobnum.
(scm_make_extended_class): "Plugin" function pointer for creation
of wrapper classes for smob and struct types.
(scm_class_of): Handle compiled closures.  (Currently regarded as
<procedure>.);
Use scm_smob_class to handle smob types;
Handle scm_tc16_bigpos, scm_tc16_bigneg, and, scm_tc16_keyword
through scm_smob_class;
Handle structs.
* Makefile.am, init.c, libguile.h, objects.c, root.h: Replaced
"kw" --> "keywords" everywhere.
(I doubt that this will cause big compatibility problems since the
application interface is unaffected.)
1999-03-14 16:50:47 +00:00
Mikael Djurfeldt
fca7570884 * keywords.c, keywords.h: Files renamed from kw.c, kw.h. 1999-03-14 16:50:01 +00:00
Mikael Djurfeldt
c7df61cd7f * hashtab.c, hashtab.h (scm_internal_hash_fold): New function.
(scm_hash_fold): New procedure.  Used to process all entries in a
hash table (in no particular order).
1999-03-14 16:48:50 +00:00
Mikael Djurfeldt
efdfceeabe *** empty log message *** 1999-03-12 10:26:46 +00:00
Mikael Djurfeldt
a9dbb9fd43 * srcprop.c (scm_set_source_property_x): Bugfix: Convert line and
column inums to native form.
1999-03-12 10:26:26 +00:00
Mikael Djurfeldt
71c7d7d68a *** empty log message *** 1999-03-12 08:51:30 +00:00
Mikael Djurfeldt
c3a6c6f928 * stacks.c: #include "eval.h"; #include "procprop.h";
(narrow_stack): Handle new narrowing specifier #t.
1999-03-12 08:51:08 +00:00