enums
This commit is contained in:
@@ -80,8 +80,18 @@ typedef struct Imported_Anonymous {
|
||||
};
|
||||
} Imported_Anonymous;
|
||||
typedef enum Imported_Enum {
|
||||
IMPORTED_ENUM_VALUE,
|
||||
IMPORTED_ENUM_NEGATIVE = -2,
|
||||
IMPORTED_ENUM_SAME = -2,
|
||||
IMPORTED_ENUM_VALUE = 7,
|
||||
IMPORTED_ENUM_BACK = 3,
|
||||
} Imported_Enum;
|
||||
enum {
|
||||
IMPORTED_ANON_ENUM = 9,
|
||||
};
|
||||
typedef struct Imported_Enum_Record {
|
||||
Imported_Enum value;
|
||||
} Imported_Enum_Record;
|
||||
typedef Imported_Enum (*Imported_Enum_Callback)(Imported_Enum value);
|
||||
|
||||
int imported_add(imported_int_alias left, int right);
|
||||
unsigned long imported_scalar(unsigned char value, unsigned long extra);
|
||||
@@ -89,6 +99,10 @@ Imported_Handle *imported_handle(void);
|
||||
int imported_read(const Imported_Handle *handle);
|
||||
int imported_string(const char *value);
|
||||
int imported_apply(Imported_Mapper mapper, int value);
|
||||
int imported_enum_check(Imported_Enum first, Imported_Enum second);
|
||||
int imported_enum_variadic(int expected, ...);
|
||||
Imported_Enum_Record imported_enum_record(Imported_Enum_Record value);
|
||||
Imported_Enum imported_enum_apply(Imported_Enum_Callback callback, Imported_Enum value);
|
||||
Imported_Value imported_by_value(Imported_Value value);
|
||||
int imported_check_state(
|
||||
Imported_Color color,
|
||||
@@ -126,6 +140,7 @@ extern int imported_redeclared_array[4];
|
||||
extern Imported_Value imported_record_global;
|
||||
extern const Imported_Array_Record imported_const_array_record;
|
||||
extern Imported_Array_Record imported_mutable_array_record;
|
||||
extern Imported_Enum imported_enum_global;
|
||||
extern _Thread_local int imported_tls_global;
|
||||
extern int IMPORTED_SHADOW_OBJECT;
|
||||
int IMPORTED_SHADOW_FUNCTION(void);
|
||||
|
||||
Reference in New Issue
Block a user