diff options
author | Alex Auvolat <alex@adnab.me> | 2016-07-15 22:39:04 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2016-07-15 22:39:04 +0200 |
commit | 7a1ea510a9fc43ccbc257601b149a90920332e13 (patch) | |
tree | 75ac252bb8ce029c62d6834e4ca927f59eaf5769 /src/common/libc | |
parent | d415aca695956c79110c88fa58c12bf55c0e2163 (diff) | |
download | kogata-7a1ea510a9fc43ccbc257601b149a90920332e13.tar.gz kogata-7a1ea510a9fc43ccbc257601b149a90920332e13.zip |
Add Lua source, not compiled yet as libc/libm functions remain unimplemented
Diffstat (limited to 'src/common/libc')
-rw-r--r-- | src/common/libc/bam.lua | 3 | ||||
-rw-r--r-- | src/common/libc/ctype.c | 3 | ||||
-rw-r--r-- | src/common/libc/string.c | 5 |
3 files changed, 8 insertions, 3 deletions
diff --git a/src/common/libc/bam.lua b/src/common/libc/bam.lua deleted file mode 100644 index cee2ec4..0000000 --- a/src/common/libc/bam.lua +++ /dev/null @@ -1,3 +0,0 @@ -local source = Collect('src/common/libc/*.c') - -common_libc = Compile(common_settings, source) diff --git a/src/common/libc/ctype.c b/src/common/libc/ctype.c new file mode 100644 index 0000000..56daa6b --- /dev/null +++ b/src/common/libc/ctype.c @@ -0,0 +1,3 @@ +#include <ctype.h> + +// TODO diff --git a/src/common/libc/string.c b/src/common/libc/string.c index d2a5f2f..90cea34 100644 --- a/src/common/libc/string.c +++ b/src/common/libc/string.c @@ -144,4 +144,9 @@ char *strndup(const char* str, size_t count) { return ret; } +int strcoll(const char *s1, const char *s2) { + // TODO locale handling + return strcmp(s1, s2); +} + /* vim: set ts=4 sw=4 tw=0 noet :*/ |