summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* * mb.c, mb.h, mbconv.c, mbconv.h, mbbasic.c, check_mb.c:jimb_mb_branch_1Jim Blandy1999-09-166-65/+69
| | | | | | | | (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.
* *** empty log message ***Jim Blandy1999-09-101-0/+49
|
* * mb.c (scm_mb_get_func): Don't use IS_ASCII_CHAR here --- thatJim Blandy1999-09-101-1/+1
| | | | predicate is for scm_char_t values, not bytes.
* * mb.h (scm_mb_put): Revert previous change; the argument to thisJim Blandy1999-09-102-3/+3
| | | | | | | 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.
* * mbconv.c (scm_mb_iconv): Make buffer pointer for output encodingJim Blandy1999-09-101-27/+29
| | | | | | | | | 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.
* * mbbasic.c (iso8859_read): Make the input pointers unsignedJim Blandy1999-09-101-4/+86
| | | | | | | | | | 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: Add 1999 to Copyright years.Jim Blandy1999-09-101-1/+2
| | | | * libguile.h: #include "mbconv.h".
* Use our own random number generator, so the tests don't depend onJim Blandy1999-09-101-5/+226
| | | | | | | | | | | | | | 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.
* * gh_test_c.c (main_prog): Make this static, to end warnings aboutJim Blandy1999-09-102-2/+2
| | | | | missing prototypes. * gh_test_repl.c (main_prog): Same.
* * mb.h (scm_mb_get, scm_mb_put, scm_mb_len, scm_mb_boundary_p):Jim Blandy1999-09-062-8/+8
| | | | | | 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.
* *** empty log message ***Jim Blandy1999-09-062-0/+26
|
* * mbconv.h (scm_mb_register_encoding): Add prototype for this.Jim Blandy1999-09-061-3/+14
| | | | | | | | | | | * 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.c: Incomplete beginnings of converting input and output ports.Jim Blandy1999-09-061-0/+27
| | | | * mbconv.h: Declarations for same.
* * mbbasic.h (scm_init_mbbasic): Make this a prototype, not a K&RJim Blandy1999-09-061-1/+1
| | | | style function declaration.
* * mbbasic.c: Fix up ISO 8859 character set definitions.Jim Blandy1999-09-061-46/+48
|
* *** empty log message ***Jim Blandy1999-09-061-0/+12
|
* * mbbasic.c, mbbasic.h: New files.Jim Blandy1999-09-065-44/+335
| | | | | | | * init.c: #include "mbbasic.h" * Makefile.am (libguile_la_SOURCES, BUILT_SOURCES, modinclude_HEADERS): Include the `mbbasic' files in the lists. * Makefile.in: Regenerated.
* * mbemacs.h: New file, containing macros for dealing with theJim Blandy1999-09-062-168/+269
| | | | | | Emacs-Mule encoding. * mb.c: Definitions removed from here, to mbemacs.h, and #include mbemacs.h.
* *** empty log message ***Jim Blandy1999-09-061-0/+21
|
* * mbconv.c: New file.Jim Blandy1999-09-065-34/+406
| | | | | | | | | | * 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).
* * mb.c (scm_text_not_char_boundary, scm_text_bad_encoding,Jim Blandy1999-09-061-0/+7
| | | | | | 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.
* * mbconv.c: New file.Jim Blandy1999-09-061-0/+7
| | | | | | | | | | | | | * 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.
* * mb.c (scm_text_not_char_boundary, scm_text_bad_encoding,Jim Blandy1999-09-061-7/+9
| | | | | | | | 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.in: Test for iconv.Jim Blandy1999-09-062-3/+65
| | | | * configure: Regenerate.
* *** empty log message ***Jim Blandy1999-09-021-0/+2
|
* New file.Jim Blandy1999-09-021-0/+169
|
* *** empty log message ***Jim Blandy1999-09-021-0/+23
|
* * libguile.h: #include "mb.h".Jim Blandy1999-09-021-0/+1
|
* * Makefile.am (check_PROGRAMS): add check_mb.Jim Blandy1999-09-025-29/+364
| | | | | | | | | | | | (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.
* * mb.c, mb.h: New files.Jim Blandy1999-09-024-18/+772
| | | | | | | * 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.
* This commit was manufactured by cvs2svn to create branchcvs2svn1999-09-0119-2761/+0
| | | 'jimb_mb_branch_1'.
* I take it all back --- bcopy does handle overlapping source andJim Blandy1999-09-012-3/+24
| | | | | | | | 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.
* *** empty log message ***Jim Blandy1999-09-014-19/+42
|
* Regenerated. Seems like conflicting versions of automake installed...Jim Blandy1999-09-011-39/+9
|
* * configure.in: Use AC_REPLACE_FUNCS to grab libguile/memmove.c ifJim Blandy1999-09-012-4/+4
| | | | | | the system doesn't have memmove. Don't test for memmove and bcopy with AC_CHECK_FUNCS. * configure: Regenerated.
* Allocators should use the `void *' type for generic pointers.Jim Blandy1999-09-012-14/+13
| | | | | | | * 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.)
* *** empty log message ***Jim Blandy1999-08-311-0/+9
|
* * numbers.c (scm_init_numbers): Claim to support the `complex'Jim Blandy1999-08-311-0/+1
| | | | feature, as expected by (ice-9 format). (Thanks to Ceri Storey.)
* *** empty log message ***Jim Blandy1999-08-311-1/+6
|
* * Makefile.am (check-local): Set GUILE_LOAD_PATH so the tests canJim Blandy1999-08-312-4/+4
| | | | | | find (ice-9 boot-9) when Guile was compiled in a separate directory from the source. (Thanks to Rodney Brown.) * Makefile.in: Regenerated.
* *** empty log message ***Jim Blandy1999-08-311-0/+6
|
* * procs.c (scm_make_subr_opt): Fix typo. Remember to multipleJim Blandy1999-08-311-6/+7
| | | | | table lengths by the size of a single element when growing the table.
* *** empty log message ***Jim Blandy1999-08-311-1/+1
|
* *** empty log message ***Mikael Djurfeldt1999-08-301-0/+6
|
* *** empty log message ***Jim Blandy1999-08-301-0/+4
|
* * tests/strings.test: New test file.Jim Blandy1999-08-301-0/+26
|
* first cutJim Blandy1999-08-305-0/+242
|
* *** empty log message ***Jim Blandy1999-08-302-21/+26
|
* * gh_data.c (gh_set_substr): Revert change of 1999-08-29; bcopy isJim Blandy1999-08-303-26/+0
| | | | | | | | 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.
* Fix up downloading addresses and filenames.Jim Blandy1999-08-301-3/+3
|