Marius Vollmer
818d24b552
Bugfix in example code, use SCM_NEWSMOB
...
correctly. Use scm_assert_smob_type instead of SCM_ASSERT
baroqueness.
2004-09-24 02:07:41 +00:00
Marius Vollmer
52191b37dd
Added scm_assert_smob_type docs.
2004-09-24 02:06:01 +00:00
Marius Vollmer
f7e6665450
Include <gmp.h> outside of extern "C" block. (Note that numbers.h
...
still includes gmp.h to make it self-contained.)
2004-09-24 02:05:18 +00:00
Marius Vollmer
a8d7ba1165
(GUILE_LIBS): fixed typo.
2004-09-24 01:50:55 +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
ae90bbb5b9
(test_cflags, LDFLAGS): Include
...
GUILE_CFLAGS.
2004-09-24 01:30:23 +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
84adbbc890
*** empty log message ***
2004-09-24 01:24:33 +00:00
Marius Vollmer
d8b1bb9387
Do not include PTHREAD_CFLAGS in CFLAGS, CFLAGS is
...
for the user and is often overwritten temporarily.
(GUILE_CFLAGS): New, include PTHREAD_CFLAGS here.
(GUILE_LIBS): Remove THREAD_LIBS_INSTALLED, which is unused now.
2004-09-24 01:24:00 +00:00
Marius Vollmer
c5c5a1acca
*** empty log message ***
2004-09-24 01:19:16 +00:00
Marius Vollmer
89acd190b8
(build-link, build-compile): Include CFLAGS in output. This is needed
...
to get "-pthread" into the builds, for example.
2004-09-24 01:19:05 +00:00
Marius Vollmer
d9ffc9f7b1
(EXTRA_DIST): Removed qthreads.m4.
2004-09-24 01:17:06 +00:00
Marius Vollmer
4f2f31a390
Synched docstrings from libguile/
2004-09-23 23:09:03 +00:00
Marius Vollmer
8dbafacdfd
Mention gettext.
2004-09-23 18:51:10 +00:00
Marius Vollmer
78cfee70d7
*** empty log message ***
2004-09-23 18:47:04 +00:00
Marius Vollmer
7cd44c6dce
Updated docstrings from libguile/
2004-09-23 18:46:49 +00:00
Marius Vollmer
089a0a349e
* api-i18n.texi: New file.
...
* Makefile.am (guile_TEXINFOS): Added it.
* guile.texi: Include it.
2004-09-23 18:45:54 +00:00
Marius Vollmer
fd936c9173
* api-i18n.texi: New file.
...
* Makefile.am (guile_TEXINFOS): Added it.
2004-09-23 18:45:35 +00:00
Marius Vollmer
e5e5007d34
Synched from libguile/
2004-09-23 18:43:37 +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
a47d845fd4
(exception:out-of-range, exception:wrong-type-arg):
...
Accept new wording.
2004-09-23 17:57:55 +00:00
Marius Vollmer
5d8d08494b
(handle-system-error): Pass rest argument to
...
display-backtrace for wrong-type-arg and out-of-range errors so
that the bad value gets highlighted.
2004-09-23 17:56:10 +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
6e4ea094be
Refer to scm_string_copy_x as a subst for gh_set_substring.
2004-09-22 21:53:46 +00:00
Marius Vollmer
83cd507cc7
Add AM_GNU_GETTEXT invocation. From Bruno Haible.
2004-09-22 21:53:07 +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
a7633ed60e
Mention scm_car, etc as the replacement for gh_car, etc.
2004-09-22 17:46:55 +00:00
Marius Vollmer
7f4c83e3b4
Document scm_car, scm_cdr, scm_caar, scm_cadr, etc.
2004-09-22 17:46:37 +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
ce7c0293cb
*** empty log message ***
2004-09-22 14:59:23 +00:00
Marius Vollmer
052567604f
Docs for substring/read-only.
2004-09-22 14:46:18 +00:00
Marius Vollmer
5dfdf243d2
*** empty log message ***
2004-09-22 14:43:50 +00:00
Marius Vollmer
77d0383ae3
*** empty log message ***
2004-09-22 14:33:00 +00:00
Marius Vollmer
d7e4c2da23
* tests/ports.test ("string ports"): Copy string literal so that
...
it can be modified.
* tests/srfi-13.test ("string-copy!"): Likewise.
* tests/strings.test ("substring/shared"): Likewise.
2004-09-22 14:32:47 +00:00