Skip to content

Commit 687e643

Browse files
committed
Case insensitive compare.
1 parent fc5ced2 commit 687e643

File tree

6 files changed

+1432
-840
lines changed

6 files changed

+1432
-840
lines changed

sqlite3/libc/build.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ SRCS="${1:-libc.c}"
1111

1212
trap 'rm -f libc.c libc.tmp' EXIT
1313
cat << EOF > libc.c
14-
#include <string.h>
1514
#include <stdlib.h>
15+
#include <string.h>
16+
#include <strings.h>
1617
EOF
1718

1819
"$WASI_SDK/clang" --target=wasm32-wasi -std=c23 -g0 -O2 \
@@ -40,11 +41,13 @@ EOF
4041
-Wl,--export=strchr \
4142
-Wl,--export=strchrnul \
4243
-Wl,--export=strcmp \
44+
-Wl,--export=strcasecmp \
4345
-Wl,--export=strcpy \
4446
-Wl,--export=strcspn \
4547
-Wl,--export=strlen \
4648
-Wl,--export=strncat \
4749
-Wl,--export=strncmp \
50+
-Wl,--export=strncasecmp \
4851
-Wl,--export=strncpy \
4952
-Wl,--export=strrchr \
5053
-Wl,--export=strspn \

sqlite3/libc/libc.wasm

854 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)