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

1477 commits

Author SHA1 Message Date
Mikael Djurfeldt
a4f711defb * Makefile.am: Removed markers.c, markers.x, markers.h. 1999-05-23 09:53:29 +00:00
Jim Blandy
e7d37b0a69 *** empty log message *** 1999-05-09 09:13:20 +00:00
Jim Blandy
b1349e463e * strop.c (scm_string_capitalize_x): Use the SCM object `s' in
error messages, not the uninitialized string `str'.  Love that
typechecking.
* strop.c (scm_substring_move_x): New function, which can handle
arbitrary overlapping substrings.
(substring-move-left!, substring-move-right!): These are
now just synonyms for substring-move!.
* strop.h (scm_substring_move_x): New prototype.
(scm_substring_move_left_x, scm_substring_move_right_x):
#define these as synonyms for scm_substring_move_x.
1999-05-09 09:12:35 +00:00
Jim Blandy
7c1ce4ee3a *** empty log message *** 1999-05-09 08:22:42 +00:00
Jim Blandy
99a9952d78 * strop.c (scm_string_capitalize_x, scm_string_capitalize): new
functions; capitalize the first letter of each word in the
	argument string, and downcase the rest.
	(scm_string_ci_to_symbol): string->symbol, such that the same
	symbol is returned for any argument where the only difference
	between strings is in capitalization.
	(scm_string_upcase, scm_string_downcase): non-destructive
	versions.
	* strop.c (scm_substring_move_left_x, scm_substring_move_right_x):
	changed to use memmove.
	* strop.c (scm_i_index): removed the pos arguments (it's only
	called twice, and each time it's SCM_ARG1, SCM_ARG2, SCM_ARG3,
	SCM_ARG4).
	* strop.h: fixed prototypes.
*	* strop.c (scm_substring_move_left_x, scm_substring_move_right_x):
	changed to have 5 required args, rather than 2 required, and 3 required
	rest args. Also modified to allow str1 & str2 to overlap.
	(scm_substring_fill_x): changed to 4 args, rather than 2 args and
	2 required rest args.
1999-05-09 08:22:11 +00:00
Jim Blandy
b7e13f6541 *** empty log message *** 1999-05-02 17:28:43 +00:00
Jim Blandy
69c60b07f7 * scmconfig.h.in: Regenerated; see today's change to
../configure.in.
1999-05-02 17:22:57 +00:00
Jim Blandy
03f2707493 * procs.h: Doc fix. 1999-05-02 17:22:47 +00:00
Jim Blandy
7e5d120953 * numbers.c: If we're supporting floating-point, provide the
feature "inexact".
1999-05-02 17:22:39 +00:00
Jim Blandy
3056083816 * Makefile.am (modinclude_HEADERS): Add kw.h, so the new version
gets installed.
* Makefile.in: Regenerated.
1999-05-02 17:22:27 +00:00
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