Kiwi Script
KiwiScript Interpreter
 All Data Structures Files Functions Variables Typedefs Enumerations Macros
KSCompoundStatement.h
Go to the documentation of this file.
1 
8 #ifndef KSCOMPOUNDSTATEMENT_H
9 #define KSCOMPOUNDSTATEMENT_H
10 
11 #include <KiwiEngine/KiwiEngine.h>
12 #include "KSStatement.h"
13 #include "KSForwarders.h"
14 
22  struct CNObjectList statementList ;
23 } ;
24 
33 struct KSCompoundStatement *
34 KSAllocateCompoundStatement(struct KELineInfo * linfo, struct CNResource * resource) ;
35 
40 static inline void
41 KSRetainCompoundStatement(struct KSCompoundStatement * dst)
42 {
43  KSReleaseStatement(&(dst->superClass)) ;
44 }
45 
50 static inline void
51 KSReleaseCompoundStatement(struct KSCompoundStatement * dst)
52 {
53  KSReleaseStatement(&(dst->superClass)) ;
54 }
55 
61 static inline void
62 KSAddStatementsToCompoundStatement(struct KSCompoundStatement * dst, struct CNObjectList * src)
63 {
64  CNAppendObjectsToList(&(dst->statementList), src) ;
65 }
66 
72 static inline void
73 KSAddStatementToCompoundStatement(struct KSCompoundStatement * dst, struct KSStatement * src)
74 {
75  CNAppendObjectToList(&(dst->statementList), &(src->superClass)) ;
76 }
77 
78 #endif /* KSCOMPOUNDSTATEMENT_H */
79 
IR for KSStatement class.
Definition: KSStatement.h:15
struct KSStatement superClass
Definition: KSCompoundStatement.h:20
struct CNObjectList statementList
Definition: KSCompoundStatement.h:22
struct CNObject superClass
Definition: KSStatement.h:17
struct KSCompoundStatement * KSAllocateCompoundStatement(struct KELineInfo *linfo, struct CNResource *resource)
Allocate compound statement.
Definition: KSCompoundStatement.h:18
Forward declarations for the KiwiScript.