blob: 2d2ba64c9fb6ad473e4acb71e8e2874e2ba60d0c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
#ifndef SHED_H
#define SHED_H
#include <stdint.h>
#ifdef __WASM__
typedef uint32_t ShedObject;
typedef uint32_t ShedStringLength;
#else
typedef uint64_t ShedObject;
typedef uint64_t ShedStringLength;
#endif
extern ShedObject const shed_unit;
struct ShedString {
ShedStringLength length;
uint8_t data[];
};
typedef struct ShedString* ShedString;
struct ShedClosure {
void* function;
ShedObject freeVariables[];
};
typedef struct ShedClosure ShedClosureStruct;
typedef struct ShedClosure* ShedClosurePointer;
typedef ShedObject* ShedEnv;
ShedObject shed__runtime__print(ShedClosurePointer closurePointer, ShedString value);
ShedClosureStruct shed__runtime__print_closure = {
.function = shed__runtime__print,
.freeVariables = {},
};
#endif
|