diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/instructions.h | 2 | ||||
| -rw-r--r-- | include/variable.h | 9 |
2 files changed, 9 insertions, 2 deletions
diff --git a/include/instructions.h b/include/instructions.h index adada87..04509e9 100644 --- a/include/instructions.h +++ b/include/instructions.h @@ -14,6 +14,8 @@ INST(decrement); INST(add); INST(subtract); INST(reverse); +INST(assign); +INST(invalid); #undef INST #define INST(NAME) ccl_instruction_##NAME diff --git a/include/variable.h b/include/variable.h index 4480855..f392a33 100644 --- a/include/variable.h +++ b/include/variable.h @@ -5,7 +5,7 @@ /** - * Tries to find variable in list, NULL if not found. + * Try to find variable in list, NULL if not found. * @see ccl_variable_getany * @param vars Variable list * @param name Variable name @@ -13,7 +13,7 @@ struct CCLVariable *ccl_variable_get(struct CCLVariable *vars, char name); /** - * Tries to find variable in current frame, then in root, NULL if not found. + * Try to find variable in current frame, then in root, NULL if not found. * @see ccl_variable_get * @param ccl CCL instance * @param frame Current frame @@ -21,4 +21,9 @@ struct CCLVariable *ccl_variable_get(struct CCLVariable *vars, char name); */ struct CCLVariable *ccl_variable_getany(struct CCL *ccl, struct CCLFrame *frame, char name); +/** + * Create new variable in list + */ +struct CCLVariable *ccl_variable_set(struct CCLVariable *vars, char name, CCLNum value); + #endif /* __CCL_VARIABLE_H__ */ |