about summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorNakidai <nakidai@disroot.org>2025-03-23 20:56:47 +0300
committerNakidai <nakidai@disroot.org>2025-03-23 20:56:47 +0300
commit159666bae6cc185a5abac154b85c49406f32f30c (patch)
treea5f424eb11e83dd1831b824229e359583bcc9f5d /include
parentc74aea420c662039072f606b2d5ef1c73426e481 (diff)
download3cl-159666bae6cc185a5abac154b85c49406f32f30c.tar.gz
3cl-159666bae6cc185a5abac154b85c49406f32f30c.zip
Last time I was here 8 months ago, idk what is this
Diffstat (limited to 'include')
-rw-r--r--include/instructions.h2
-rw-r--r--include/variable.h9
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__ */