Skip to content

Commit

Permalink
#416 Introduced corto_selectResult type
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderMertens committed Dec 1, 2015
1 parent a7c2dd2 commit 039302e
Show file tree
Hide file tree
Showing 4 changed files with 113 additions and 92 deletions.
5 changes: 3 additions & 2 deletions packages/corto/lang/include/corto__meta.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,10 @@ CORTO_META_OBJECT(class, invokeEvent);
CORTO_META_OBJECT(class, package);
CORTO_META_OBJECT(class, query);
CORTO_META_OBJECT(class, replicator);
CORTO_META_OBJECT(struct, parameter);
CORTO_META_OBJECT(struct, delegatedata);
CORTO_META_OBJECT(struct, interfaceVector);
CORTO_META_OBJECT(struct, delegatedata);
CORTO_META_OBJECT(struct, parameter);
CORTO_META_OBJECT(struct, selectResult);
CORTO_META_OBJECT(interface, dispatcher);

CORTO_META_OBJECT(binary, octet);
Expand Down
8 changes: 7 additions & 1 deletion packages/corto/lang/include/corto__type.h
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,13 @@ CORTO_CLASS_DEF(corto_member) {
corto_uint32 offset;
};

CORTO_STRUCT(corto_selectResult);
CORTO_STRUCT_DEF(corto_selectResult) {
corto_string name;
corto_string parent;
corto_string type;
};

/* ::corto::lang::alias */
CORTO_CLASS(corto_alias);

Expand Down Expand Up @@ -698,4 +705,3 @@ typedef void corto_void;
}
#endif
#endif

5 changes: 5 additions & 0 deletions packages/corto/lang/src/corto.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ static corto_string CORTO_BUILD = __DATE__ " " __TIME__;
SSO_OP_PRIM(op, interfaceVectorseq);\
SSO_OP_PRIM(op, interfaceVector);\
SSO_OP_PRIM(op, parameter);\
SSO_OP_PRIM(op, selectResult);\
SSO_OP_PRIM(op, delegatedata);\
SSO_OP_VOID(op, dispatcher);\
SSO_OP_PRIM(op, initAction);\
Expand Down Expand Up @@ -574,6 +575,10 @@ static corto_string CORTO_BUILD = __DATE__ " " __TIME__;
SSO_OP_OBJ(op, parameter_name);\
SSO_OP_OBJ(op, parameter_type);\
SSO_OP_OBJ(op, parameter_passByReference);\
/* selectResult */\
SSO_OP_OBJ(op, selectResult_name);\
SSO_OP_OBJ(op, selectResult_parent);\
SSO_OP_OBJ(op, selectResult_type);\
/* package */\
SSO_OP_OBJ(op, package_url);

Expand Down
Loading

0 comments on commit 039302e

Please sign in to comment.