restricted c header imports

This commit is contained in:
2026-06-14 14:42:38 +02:00
parent 4e860b033e
commit 638ca57f5c
24 changed files with 1377 additions and 45 deletions
+33
View File
@@ -0,0 +1,33 @@
#include "include/native.h"
struct Imported_Handle {
int value;
};
static struct Imported_Handle handle = {7};
int child_value(int value) {
return value;
}
int imported_add(imported_int left, int right) {
return left + right;
}
unsigned long imported_scalar(unsigned char value, unsigned long extra) {
return value + extra;
}
Imported_Handle *imported_handle(void) {
return &handle;
}
int imported_read(const Imported_Handle *value) {
return value->value;
}
#ifdef BROLANG_FEATURE
int configured_value(int value) {
return value;
}
#endif