| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
(scm_mb_char_len): Renamed from scm_mb_len_char.
(scm_mb_char_len_func): Renamed from scm_mb_len_char_func.
(scm_mb_put, scm_mb_put_func): Swapped arguments, so destination
comes first.
(scm_mb_iconv_too_big): Renamed from scm_mb_iconv_more_room.
|
| |
|
|
|
|
| |
predicate is for scm_char_t values, not bytes.
|
|
|
|
|
|
|
| |
macro should be an scm_char_t, so the comparison is correct as it
stands.
* mbemacs.h (IS_ASCII_CHAR): Similar change --- cast to unsigned,
not unsigned char.
|
|
|
|
|
|
|
|
|
| |
a const scm_char_t *, to match the prototype.
* mbconv.c (scm_mb_iconv): Don't return scm_mb_iconv_more_room
unless we actually have text to convert. Remember that, even if
*inbytesleft is zero, there may be text remaining in the context's
buffer.
|
|
|
|
|
|
|
|
|
|
| |
chars, not plain chars. Don't use IS_ASCII_CHAR, even though it
works, because that's for Guile characters. Drop characters in
the C1 control range (0x80 .. 0x9f).
* mbbasic.c: Add support for the `US-ASCII' encoding.
(us_ascii_read, us_ascii_write): New functions.
(scm_init_mbbasic): Register it.
|
|
|
|
| |
* libguile.h: #include "mbconv.h".
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
a particular system or release.
* check_mb.c (test_rand): New function.
(test_rand_seed): New variable.
(make_permutation, test_string_encodings): Use them, instead of
srandom and random.
Add tests for the conversion functions.
* check_mb.c (all_encodings, texts): New variables.
(struct text): New type.
(one_conversion, test_conversions): New functions.
(main_prog): Run the new tests.
|
|
|
|
|
| |
missing prototypes.
* gh_test_repl.c (main_prog): Same.
|
|
|
|
|
|
| |
Cast character arguments to unsigned char, so we don't get weird
behavior if the user passes in a signed char.
* mbemacs.h (IS_ASCII_CHAR): Same.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
* mbconv.h (enum scm_mb_iconv_result): Renamed from enum
scm_mb_iconv, because the compiler complained. ???
* mbconv.c: Incomplete beginnings of converting input and output ports.
* mbconv.h: Declarations for same.
* mbconv.h (struct scm_mb_encoding): Add `const' to inbuf argument
to the `write' function.
|
|
|
|
| |
* mbconv.h: Declarations for same.
|
|
|
|
| |
style function declaration.
|
| |
|
| |
|
|
|
|
|
|
|
| |
* init.c: #include "mbbasic.h"
* Makefile.am (libguile_la_SOURCES, BUILT_SOURCES,
modinclude_HEADERS): Include the `mbbasic' files in the lists.
* Makefile.in: Regenerated.
|
|
|
|
|
|
| |
Emacs-Mule encoding.
* mb.c: Definitions removed from here, to mbemacs.h, and #include
mbemacs.h.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* init.c: #include "mbconv.h".
(scm_boot_guile_1): call scm_init_mbconv.
* mbconv.h: Add extern declaration for scm_init_mbconv.
* Makefile.am (libguile_la_SOURCES, BUILT_SOURCES,
modinclude_HEADERS): Include the `mbconv' files in the lists.
* Makefile.in: Regenerated.
* scmconfig.h.in: Regenerated (see configure.in changes).
|
|
|
|
|
|
| |
scm_text_not_guile_char): Make these globally visible, and rename
them with `scm_' at the beginning of their names.
* mb.h: Add extern declarations.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* init.c: #include "mbconv.h".
(scm_boot_guile_1): call scm_init_mbconv.
* mbconv.h: Add extern declaration for scm_init_mbconv.
* Makefile.am (libguile_la_SOURCES, BUILT_SOURCES,
modinclude_HEADERS): Include the `mbconv' files in the lists.
* Makefile.in: Regenerated.
* scmconfig.h.in: Regenerated (see configure.in changes).
* mbconv.h: Add extern declaration for scm_text_unknown_encoding
exception.
|
|
|
|
|
|
|
|
| |
scm_text_not_guile_char): Make these globally visible, and rename
them with `scm_' at the beginning of their names.
* mb.h: Add extern declarations.
* mb.c: Correct copyright notice.
|
|
|
|
| |
* configure: Regenerate.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
(check_mb_SOURCES, check_mb_LDADD): New variables.
(check-local): Run check_mb.
* check_mb.c: New file, testing multibyte processing functions.
* mb.c (scm_mb_get_func): Fix typo in variable name.
(scm_mb_walk): Fix another typo in variable name.
(scm_mb_multibyte_to_fixed): Use the right variable for the end
of the multibyte text.
(scm_mb_fixed_to_multibyte): Use the return value from scm_mb_put,
instead of making a separate call to scm_mb_len.
|
|
|
|
|
|
|
| |
* init.c: #include "mb.h".
(scm_boot_guile_1): call scm_init_mb.
* Makefile.am (libguile_la_SOURCES, BUILT_SOURCES,
modinclude_HEADERS): Include the `mb' files in the lists.
|
|
|
| |
'jimb_mb_branch_1'.
|
|
|
|
|
|
|
|
| |
destination areas correctly. At least on every system I could
find. But it is better to use AC_REPLACE_FUNCS than to introduce
new CPP conditionals.
* memmove.c: New file, implementing memmove in terms of bcopy.
* scmconfig.h.in: Regenerated.
|
| |
|
| |
|
|
|
|
|
|
| |
the system doesn't have memmove. Don't test for memmove and bcopy
with AC_CHECK_FUNCS.
* configure: Regenerated.
|
|
|
|
|
|
|
| |
* gc.c (scm_must_malloc, scm_must_realloc, scm_must_free): Change
argument and return types.
* gc.h: Corresponding changes to prototypes.
(Thanks to Forcer.)
|
| |
|
|
|
|
| |
feature, as expected by (ice-9 format). (Thanks to Ceri Storey.)
|
| |
|
|
|
|
|
|
| |
find (ice-9 boot-9) when Guile was compiled in a separate
directory from the source. (Thanks to Rodney Brown.)
* Makefile.in: Regenerated.
|
| |
|
|
|
|
|
| |
table lengths by the size of a single element when growing the
table.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
not a correct substitute for memmove, because it doesn't handle
overlapping source and destination areas on many platforms.
Overlaps are the primary reason to use memmove in the first place.
* ports.c (scm_ungetc): Same.
* strop.c (scm_substring_move_x): Same.
|
| |
|