restricted c header imports
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
#ifndef BROLANG_CHILD_H
|
||||
#define BROLANG_CHILD_H
|
||||
|
||||
int child_value(int value);
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,40 @@
|
||||
#ifndef BROLANG_NATIVE_H
|
||||
#define BROLANG_NATIVE_H
|
||||
|
||||
#include <child.h>
|
||||
|
||||
typedef int imported_int;
|
||||
typedef imported_int imported_int_alias;
|
||||
typedef struct Imported_Handle Imported_Handle;
|
||||
typedef void (*Imported_Callback)(int value);
|
||||
typedef struct Imported_Value {
|
||||
int value;
|
||||
} Imported_Value;
|
||||
typedef union Imported_Union {
|
||||
int value;
|
||||
} Imported_Union;
|
||||
typedef enum Imported_Enum {
|
||||
IMPORTED_ENUM_VALUE,
|
||||
} Imported_Enum;
|
||||
|
||||
int imported_add(imported_int_alias left, int right);
|
||||
unsigned long imported_scalar(unsigned char value, unsigned long extra);
|
||||
Imported_Handle *imported_handle(void);
|
||||
int imported_read(const Imported_Handle *handle);
|
||||
Imported_Value imported_by_value(Imported_Value value);
|
||||
int imported_volatile(volatile int *value);
|
||||
_Bool imported_bool(_Bool value);
|
||||
extern int imported_global;
|
||||
|
||||
static inline int imported_inline(int value) {
|
||||
return value;
|
||||
}
|
||||
|
||||
#ifdef BROLANG_FEATURE
|
||||
int configured_value(int value);
|
||||
#endif
|
||||
|
||||
#define IMPORTED_MACRO 42
|
||||
int imported_variadic(const char *format, ...);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user