Go to file
Lassi Kortela 31b6f9d596 Add README 2024-05-12 00:11:25 +03:00
.gitignore Initial commit 2024-05-12 00:02:51 +03:00
README.md Add README 2024-05-12 00:11:25 +03:00
build-chibi.sh Initial commit 2024-05-12 00:02:51 +03:00
build-gambit.sh Initial commit 2024-05-12 00:02:51 +03:00
codesets.chibi.stub Initial commit 2024-05-12 00:02:51 +03:00
codesets.gambit.scm Initial commit 2024-05-12 00:02:51 +03:00
codesets.sld Initial commit 2024-05-12 00:02:51 +03:00
errnolist.h Initial commit 2024-05-12 00:02:51 +03:00
errnolist.txt Initial commit 2024-05-12 00:02:51 +03:00
generate.scm Initial commit 2024-05-12 00:02:51 +03:00
glue.c Initial commit 2024-05-12 00:02:51 +03:00
glue.h Initial commit 2024-05-12 00:02:51 +03:00
signallist.h Initial commit 2024-05-12 00:02:51 +03:00
signallist.txt Initial commit 2024-05-12 00:02:51 +03:00

README.md

SRFI 238 - portable string-based implementation

This is an implementation SRFI 238 based around the following C interface.

char *codeset_list(void);
char *codeset_numbers(const char *codeset);
char *codeset_symbols(const char *codeset);
char *codeset_messages(const char *codeset);

Each function returns a newline-delimited C string.

The idea is to make the interface so simple that it can be wrapped easily using the FFI of any Scheme implementation that has one. (Non-Scheme languages like Common Lisp or ML could make use of the same C code.)

The downside is that memory usage is not optimal. All strings are retrieved from C at once, and half of the string handling is done in Scheme.