diff options
| author | Nakidai <nakidai@disroot.org> | 2025-03-23 20:56:47 +0300 |
|---|---|---|
| committer | Nakidai <nakidai@disroot.org> | 2025-03-23 20:56:47 +0300 |
| commit | 159666bae6cc185a5abac154b85c49406f32f30c (patch) | |
| tree | a5f424eb11e83dd1831b824229e359583bcc9f5d /include/variable.h | |
| parent | c74aea420c662039072f606b2d5ef1c73426e481 (diff) | |
| download | 3cl-159666bae6cc185a5abac154b85c49406f32f30c.tar.gz 3cl-159666bae6cc185a5abac154b85c49406f32f30c.zip | |
Last time I was here 8 months ago, idk what is this
Diffstat (limited to 'include/variable.h')
| -rw-r--r-- | include/variable.h | 9 |
1 files changed, 7 insertions, 2 deletions
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__ */ |