Vendor dependencies

This commit is contained in:
2026-08-01 16:11:49 +03:00
parent 7f139a0241
commit 6b5e7f0f8b
29706 changed files with 9575646 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
#ifndef _ASSERT_H
#define _ASSERT_H
#define assert(expr)
#endif // _ASSERT_H
+10
View File
@@ -0,0 +1,10 @@
#include <stddef.h>
#ifndef _STDIO_H
#define _STDIO_H 1
#define fprintf(expr, ...)
#define fflush(expr)
#endif // _STDIO_H
+18
View File
@@ -0,0 +1,18 @@
#include <stddef.h>
#ifndef _STDLIB_H
#define _STDLIB_H 1
void* rust_zstd_wasm_shim_malloc(size_t size);
void* rust_zstd_wasm_shim_calloc(size_t nmemb, size_t size);
void rust_zstd_wasm_shim_free(void* ptr);
void rust_zstd_wasm_shim_qsort(void* base, size_t nitems, size_t size,
int (*compar)(const void*, const void*));
#define malloc(size) rust_zstd_wasm_shim_malloc(size)
#define calloc(nmemb, size) rust_zstd_wasm_shim_calloc(nmemb, size)
#define free(ptr) rust_zstd_wasm_shim_free(ptr)
#define qsort(base, nitems, size, compar) \
rust_zstd_wasm_shim_qsort(base, nitems, size, compar)
#endif // _STDLIB_H
+27
View File
@@ -0,0 +1,27 @@
#include <stdlib.h>
#ifndef _STRING_H
#define _STRING_H 1
int rust_zstd_wasm_shim_memcmp(const void *str1, const void *str2, size_t n);
void *rust_zstd_wasm_shim_memcpy(void *restrict dest, const void *restrict src, size_t n);
void *rust_zstd_wasm_shim_memmove(void *dest, const void *src, size_t n);
void *rust_zstd_wasm_shim_memset(void *dest, int c, size_t n);
inline int memcmp(const void *str1, const void *str2, size_t n) {
return rust_zstd_wasm_shim_memcmp(str1, str2, n);
}
inline void *memcpy(void *restrict dest, const void *restrict src, size_t n) {
return rust_zstd_wasm_shim_memcpy(dest, src, n);
}
inline void *memmove(void *dest, const void *src, size_t n) {
return rust_zstd_wasm_shim_memmove(dest, src, n);
}
inline void *memset(void *dest, int c, size_t n) {
return rust_zstd_wasm_shim_memset(dest, c, n);
}
#endif // _STRING_H
+13
View File
@@ -0,0 +1,13 @@
#ifndef _TIME_H
#define _TIME_H
#define CLOCKS_PER_SEC 1000
typedef unsigned long long clock_t;
// Clock is just use for progress reporting, which we disable anyway.
inline clock_t clock() {
return 0;
}
#endif // _TIME_H