4 #include "minimal/stdlib.h"
41 struct Element *elements;
45 #define JOC_TYPE_INOUT (1 << 0)
46 #define JOC_TYPE_IN (1 << 1)
47 #define JOC_TYPE_BYCOPY (1 << 2)
48 #define JOC_TYPE_OUT (1 << 3)
49 #define JOC_TYPE_BYREF (1 << 4)
50 #define JOC_TYPE_CONST (1 << 5)
51 #define JOC_TYPE_ONEWAY (1 << 6)
54 enum Primitive primitive;
64 struct Signature signature;
68 struct Type *joc_parse_type(char **name, char eos, bool variable, bool signature);
69 void joc_parse_signature(struct Signature *signature, char **name, char eos, bool variable);
71 _finline bool IsAggregate(Primitive primitive) {
72 return primitive == struct_P || primitive == union_P;