Add README
This commit is contained in:
parent
7f076e8069
commit
31b6f9d596
|
@ -0,0 +1,22 @@
|
||||||
|
# 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.
|
Loading…
Reference in New Issue