|
@@ -126,6 +126,10 @@ struct NCDStatement_s {
|
|
|
NCDBlock block;
|
|
NCDBlock block;
|
|
|
int is_grabbed;
|
|
int is_grabbed;
|
|
|
} foreach;
|
|
} foreach;
|
|
|
|
|
+ struct {
|
|
|
|
|
+ NCDBlock block;
|
|
|
|
|
+ int is_grabbed;
|
|
|
|
|
+ } block;
|
|
|
};
|
|
};
|
|
|
};
|
|
};
|
|
|
|
|
|
|
@@ -149,6 +153,7 @@ struct NCDIf_s {
|
|
|
#define NCDSTATEMENT_REG 1
|
|
#define NCDSTATEMENT_REG 1
|
|
|
#define NCDSTATEMENT_IF 2
|
|
#define NCDSTATEMENT_IF 2
|
|
|
#define NCDSTATEMENT_FOREACH 3
|
|
#define NCDSTATEMENT_FOREACH 3
|
|
|
|
|
+#define NCDSTATEMENT_BLOCK 4
|
|
|
|
|
|
|
|
void NCDValue_Free (NCDValue *o);
|
|
void NCDValue_Free (NCDValue *o);
|
|
|
int NCDValue_Type (NCDValue *o);
|
|
int NCDValue_Type (NCDValue *o);
|
|
@@ -213,6 +218,7 @@ size_t NCDBlock_NumStatements (NCDBlock *o);
|
|
|
int NCDStatement_InitReg (NCDStatement *o, const char *name, const char *objname, const char *cmdname, NCDValue args) WARN_UNUSED;
|
|
int NCDStatement_InitReg (NCDStatement *o, const char *name, const char *objname, const char *cmdname, NCDValue args) WARN_UNUSED;
|
|
|
int NCDStatement_InitIf (NCDStatement *o, const char *name, NCDIfBlock ifblock) WARN_UNUSED;
|
|
int NCDStatement_InitIf (NCDStatement *o, const char *name, NCDIfBlock ifblock) WARN_UNUSED;
|
|
|
int NCDStatement_InitForeach (NCDStatement *o, const char *name, NCDValue collection, const char *name1, const char *name2, NCDBlock block) WARN_UNUSED;
|
|
int NCDStatement_InitForeach (NCDStatement *o, const char *name, NCDValue collection, const char *name1, const char *name2, NCDBlock block) WARN_UNUSED;
|
|
|
|
|
+int NCDStatement_InitBlock (NCDStatement *o, const char *name, NCDBlock block) WARN_UNUSED;
|
|
|
void NCDStatement_Free (NCDStatement *o);
|
|
void NCDStatement_Free (NCDStatement *o);
|
|
|
int NCDStatement_Type (NCDStatement *o);
|
|
int NCDStatement_Type (NCDStatement *o);
|
|
|
const char * NCDStatement_Name (NCDStatement *o);
|
|
const char * NCDStatement_Name (NCDStatement *o);
|
|
@@ -228,6 +234,8 @@ const char * NCDStatement_ForeachName1 (NCDStatement *o);
|
|
|
const char * NCDStatement_ForeachName2 (NCDStatement *o);
|
|
const char * NCDStatement_ForeachName2 (NCDStatement *o);
|
|
|
NCDBlock * NCDStatement_ForeachBlock (NCDStatement *o);
|
|
NCDBlock * NCDStatement_ForeachBlock (NCDStatement *o);
|
|
|
void NCDStatement_ForeachGrab (NCDStatement *o, NCDValue *out_collection, NCDBlock *out_block);
|
|
void NCDStatement_ForeachGrab (NCDStatement *o, NCDValue *out_collection, NCDBlock *out_block);
|
|
|
|
|
+NCDBlock * NCDStatement_BlockBlock (NCDStatement *o);
|
|
|
|
|
+NCDBlock NCDStatement_BlockGrabBlock (NCDStatement *o);
|
|
|
|
|
|
|
|
void NCDIfBlock_Init (NCDIfBlock *o);
|
|
void NCDIfBlock_Init (NCDIfBlock *o);
|
|
|
void NCDIfBlock_Free (NCDIfBlock *o);
|
|
void NCDIfBlock_Free (NCDIfBlock *o);
|