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

4776 commits

Author SHA1 Message Date
Marius Vollmer
c598539a67 Replaced SCM_KEYWORDP with scm_is_keyword. 2004-10-04 17:02:53 +00:00
Marius Vollmer
265a7997fb * keywords.h, keywords.c, deprecated.h, deprecated.c
(SCM_KEYWORDP, SCM_KEYWORDSYM): Deprecated and implemented in
terms of scm_is_keyword and scm_keyword_dash_symbol.

* keywords.h, keywords.c, discouraged.h, discouraged.c
(scm_make_keyword_from_dash_symbol, scm_keyword_dash_symbol,
scm_c_make_keyword): Discouraged.

* keywords.h, keywords.c (scm_symbol_to_keyword,
scm_keyword_to_symbol): Implemented in C.
(scm_is_keyword, scm_from_locale_keyword,
scm_from_locale_keywordn): New.
2004-10-04 17:02:01 +00:00
Marius Vollmer
43c2562635 *** empty log message *** 2004-09-29 18:07:38 +00:00
Marius Vollmer
8631637894 (scm_lreadr): Revert change from 2004-09-22: string literals are now
read-write again (until SCM_STRING_CHARS is removed).
2004-09-29 18:01:36 +00:00
Marius Vollmer
556d75dbb8 (SCM_STRING_CHARS): Explicitely reject read-only strings with an error
message that blames SCM_STRING_CHARS.
2004-09-29 17:58:39 +00:00
Marius Vollmer
81ae25da8c (SCM_PRINT_HIGHLIGHT_PREFIX,
SCM_PRINT_HIGHLIGHT_SUFFIX): New printer options.
(scm_iprin1): Use them instead of the previoulsy hardcoded
strings.
(scm_init_print): Initialize them.
2004-09-29 17:53:40 +00:00
Marius Vollmer
a2902ecb90 (change_option_setting): Use scm_car instead of explicit type check
plus SCM_CAR.
2004-09-29 17:52:10 +00:00
Marius Vollmer
22e47f69ae (display_frame_expr): Do not remove control characters from the final
string.  Print it directly using scm_display.
2004-09-29 17:40:11 +00:00
Marius Vollmer
818deb1158 *** empty log message *** 2004-09-29 15:50:24 +00:00
Marius Vollmer
4f943a29c2 (scm_array_equal_p): Include scm_tc7_svect in switch. Thanks to
Roland Orre!
2004-09-29 15:48:21 +00:00
Kevin Ryde
d748089e17 *** empty log message *** 2004-09-28 23:55:54 +00:00
Kevin Ryde
21682b207e (scm_regexp_exec): Correction to last change, should
be whole original string in match struct, not offsetted substring.
2004-09-28 23:50:21 +00:00
Marius Vollmer
05d7cf8991 Fixed some typos. 2004-09-28 19:35:09 +00:00
Han-Wen Nienhuys
0ff7e3ff22 (scm_gc_unprotect_object): abort if called during GC. 2004-09-24 09:23:44 +00:00
Marius Vollmer
2edf319f0a *** empty log message *** 2004-09-24 02:12:50 +00:00
Marius Vollmer
b6e738d177 * Makefile.am (EXTRA_DIST): Added gettext.h. 2004-09-24 02:12:09 +00:00
Marius Vollmer
d180337bc3 *** empty log message *** 2004-09-24 01:46:59 +00:00
Marius Vollmer
197b057336 (scm_assert_smob_type): New. 2004-09-24 01:46:09 +00:00
Marius Vollmer
ad7de4b857 *** empty log message *** 2004-09-24 01:30:38 +00:00
Marius Vollmer
5bbc535901 (guile_CFLAGS, guile_LDFLAGS, libguile_la_CFLAGS, ):
Include GUILE_CFLAGS.
(libguile_la_LIBADD): Removed THREAD_LIBS_LOCAL, which is unused
now.
(libpath.h): Put GUILE_CFLAGS in the build-info.
2004-09-24 01:27:48 +00:00
Marius Vollmer
c648c68150 Docstring fixes. 2004-09-23 18:42:59 +00:00
Marius Vollmer
c9fedf8ada *** empty log message *** 2004-09-23 17:58:07 +00:00
Marius Vollmer
aa79839aac (handler_message): The rest argument is the fourth
argument, not everything after the third.  Call
scm_display_backtrace_with_highlights, passing the rest argument
when appropriate.
2004-09-23 17:53:54 +00:00
Marius Vollmer
2b55be7547 (scm_display_backtrace_with_highlights,
scm_backtrace_with_highlights): New.  Set highlight_objects of
printstate.
2004-09-23 17:51:53 +00:00
Marius Vollmer
cdd8c09128 (scm_error_scm): Document new meaning of data/rest
argument for out-of-range and wrong-type-arg errors.
(scm_out_of_range, scm_out_of_range_pos, scm_wrong_type_arg,
scm_wrong_type_arg_msg): Pass bad_value in rest argument of
exception so that it gets highlighted in the backtrace.
Don't talk about "argument" when not giving a position.
2004-09-23 17:48:25 +00:00
Marius Vollmer
d232520a23 * print.h (scm_print_state): Added highlight_objects.
* print.c (make_print_state, scm_free_print_state): Initialize it
to SCM_EOL.
(scm_iprin1): Wrap output in '{...}' when object is contained in
highlight_objects.
2004-09-23 17:44:40 +00:00
Marius Vollmer
d5ac9b2a8c *** empty log message *** 2004-09-22 21:57:30 +00:00
Marius Vollmer
9361f7621b * i18n.c: Handle --disable-nls (thanks Bruno).
* posix.c (scm_init_posix): Add LC_PAPER, LC_NAME, LC_ADDRESS,
LC_TELEPHONE, LC_MEASUREMENT, LC_IDENTIFICATION.

* i18n.c (scm_i_to_lc_category): New name and export.  Support all
LC categories.

* posix.c (s_scm_setlocale): Use it.

* i18n.h, i18n.c (scm_textdomain, scm_bindtextdomain,
scm_bind_textdomain_codeset): Make wrappers similar to C function
they wrap.

* i18n.h: New file.
* i18n.c: New file.
* gettext.h: New file, taken from GNU gettext.
* init.c: Include libguile/i18n.h.
(scm_init_guile_1): Add call to scm_init_i18n().
* Makefile.am (libguile_la_SOURCES): Add i18n.c.
(DOT_X_FILES): Add i18n.x.
(DOT_DOC_FILES): Add i18n.doc.
(libguile_la_LDFLAGS): Add @LTLIBINTL@.
(modinclude_HEADERS): Add i18n.h.
2004-09-22 21:54:50 +00:00
Marius Vollmer
8868655524 * i18n.h: New file.
* i18n.c: New file.
* gettext.h: New file, taken from GNU gettext.
* init.c: Include libguile/i18n.h.
(scm_init_guile_1): Add call to scm_init_i18n().
* Makefile.am (libguile_la_SOURCES): Add i18n.c.
(DOT_X_FILES): Add i18n.x.
(DOT_DOC_FILES): Add i18n.doc.
(libguile_la_LDFLAGS): Add @LTLIBINTL@.
(modinclude_HEADERS): Add i18n.h.
2004-09-22 21:54:30 +00:00
Marius Vollmer
2cdfe01695 *** empty log message *** 2004-09-22 17:49:30 +00:00
Marius Vollmer
5e9e56edda Replaced SCM_CAR, etc with scm_car, etc. 2004-09-22 17:48:13 +00:00
Marius Vollmer
d2e53ed6f8 *** empty log message *** 2004-09-22 17:41:37 +00:00
Marius Vollmer
a61f4e0c61 (scm_eval, scm_apply, call_cxr_1): Use scm_i_chase_pairs
instead of explicit code.
2004-09-22 17:38:44 +00:00
Marius Vollmer
6fcc7d48e4 * discouraged.h, tags.h (SCM_CONSP, SCM_NCONSP): Moved to
discouraged.h.  Replaced all uses with scm_is_pair.
(SCM_I_CONSP): New name for SCM_CONSP.

* pairs.h, pairs.c (scm_is_pair, scm_is_null, scm_car, scm_cdr,
scm_i_chase_pairs, SCM_I_A_PAT, SCM_I_D_PAT, etc, scm_caar,
scm_cadr, etc): New.
(SCM_NULLP, SCM_NNULLP): Moved to discouraged.h.  Replaced all
uses with scm_is_null.
2004-09-22 17:37:01 +00:00
Marius Vollmer
5dd82006b0 *** empty log message *** 2004-09-22 15:23:20 +00:00
Marius Vollmer
ddda5e8fa7 (scm_car, scm_cdr, scm_i_chase_pairs, SCM_I_A_PAT, SCM_I_D_PAT, etc,
scm_caar, scm_cadr, etc): New.
2004-09-22 15:21:00 +00:00
Marius Vollmer
b50c53e55f *** empty log message *** 2004-09-22 15:06:47 +00:00
Marius Vollmer
4a310f1c92 (scm_string_contains, scm_string_contains_ci): Reworded logic a bit so
that #f is returned immediately when s1 is too short to contain s2.
2004-09-22 15:03:17 +00:00
Marius Vollmer
5dfdf243d2 *** empty log message *** 2004-09-22 14:43:50 +00:00
Marius Vollmer
1eff9c2f70 (scm_regexp_exec): Convert string to zero-temrinated locale string
before matching against it.
2004-09-22 14:21:52 +00:00
Marius Vollmer
ec82b7c251 (scm_lreadr): use scm_c_substring_read_only for string
literals, thus making them read-only as specified by R5RS.
2004-09-22 13:55:15 +00:00
Marius Vollmer
ed35de727a (scm_substring_read_only,
scm_c_substring_read_only, scm_i_substring_read_only): New.
(RO_STRING_TAG, IS_RO_STRING): New.
(scm_i_string_writable_chars): Bail on read-only strings.
2004-09-22 13:54:15 +00:00
Marius Vollmer
22ab5ba3d2 *** empty log message *** 2004-09-21 22:05:51 +00:00
Marius Vollmer
789d2fc8dd (scm_equal_p): Allow smobs with different flags to be equal by testing
for smobs before insisting on equal SCM_CELL_TYPES.
2004-09-21 22:05:11 +00:00
Marius Vollmer
0d83cb901c *** empty log message *** 2004-09-21 00:44:29 +00:00
Marius Vollmer
cd0362604b Include <gmp.h> in numbers.h, not in
numbers.c.
(scm_to_mpz, scm_from_mpz): New.
Thanks to Andreas Vögele!
2004-09-21 00:42:30 +00:00
Marius Vollmer
2663421ccf *** empty log message *** 2004-09-20 23:56:37 +00:00
Marius Vollmer
ef80ed5ebc (skip_scsh_block_comment): Recognize "!#" everywhere, not just on a
line of its own.
2004-09-20 23:55:38 +00:00
Marius Vollmer
1a82a4606c (scm_string_any, scm_string_every,
scm_string_tabulate, string_upcase_x, string_down_case_x,
string_titlecase_x, string_reverse_x, scm_string_tokenize): Use
size_t instead of int for indices into strings.  Make sure that no
over- or underflow occurs.  Thanks to Andreas Vögele!
(scm_xsubstring, scm_string_xcopy_x): Use ints for 'extended'
indices, which can also be negative.
2004-09-20 22:50:31 +00:00
Marius Vollmer
b00b73f98f *** empty log message *** 2004-09-20 21:48:18 +00:00