Sha256: d6b31e71d5b6c6daa598c2ae3f1c37c53fa0f8b7b8c1233293217938fcd05138

Contents?: true

Size: 647 Bytes

Versions: 8

Compression:

Stored size: 647 Bytes

Contents

#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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
wasmtime-29.0.0 ./ext/cargo-vendor/zstd-sys-2.0.13+zstd.1.5.6/wasm-shim/stdlib.h
wasmtime-28.0.0 ./ext/cargo-vendor/zstd-sys-2.0.13+zstd.1.5.6/wasm-shim/stdlib.h
wasmtime-27.0.0 ./ext/cargo-vendor/zstd-sys-2.0.13+zstd.1.5.6/wasm-shim/stdlib.h
wasmtime-26.0.0 ./ext/cargo-vendor/zstd-sys-2.0.13+zstd.1.5.6/wasm-shim/stdlib.h
wasmtime-25.0.2 ./ext/cargo-vendor/zstd-sys-2.0.13+zstd.1.5.6/wasm-shim/stdlib.h
wasmtime-25.0.1 ./ext/cargo-vendor/zstd-sys-2.0.13+zstd.1.5.6/wasm-shim/stdlib.h
wasmtime-25.0.0 ./ext/cargo-vendor/zstd-sys-2.0.13+zstd.1.5.6/wasm-shim/stdlib.h
wasmtime-24.0.0 ./ext/cargo-vendor/zstd-sys-2.0.13+zstd.1.5.6/wasm-shim/stdlib.h