Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ggsql-wasm/demo/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions tree-sitter-ggsql/bindings/rust/wasm-sysroot/src/stdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -275,25 +275,35 @@ int vsnprintf(char *restrict buffer, size_t buffsz, const char *restrict format,
}

int fclose(FILE *stream) {
(void)stream;
return 0;
}

FILE* fdopen(int fd, const char *mode) {
(void)fd;
(void)mode;
return 0;
}

int fputc(int c, FILE *stream) {
(void)stream;
return c;
}

int fputs(const char *restrict str, FILE *restrict stream) {
(void)str;
(void)stream;
return 0;
}

size_t fwrite(const void *restrict buffer, size_t size, size_t nmemb, FILE *restrict stream) {
(void)buffer;
(void)stream;
return size * nmemb;
}

int fprintf(FILE *restrict stream, const char *restrict format, ...) {
(void)stream;
(void)format;
return 0;
}
2 changes: 1 addition & 1 deletion tree-sitter-ggsql/bindings/rust/wasm-sysroot/src/stdlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ extern void tree_sitter_debug_message(const char *, size_t);
#define PAGESIZE 0x10000
#define MAX_HEAP_SIZE (1024 * 1024 * 1024)

typedef struct {
typedef struct Region {
size_t size;
struct Region *next;
char data[0];
Expand Down
Loading