aboutsummaryrefslogtreecommitdiffstats
path: root/ops.h
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2018-03-29 13:36:29 -0400
committerClyne Sullivan <tullivan99@gmail.com>2018-03-29 13:36:29 -0400
commit3b33fa0aeb5262335cd708b167caad8f41b8a5dd (patch)
treecb34ba93ecca6f3bbc936acdf92e6d347219a9cc /ops.h
parent7faeef296d8b0041ae340c3febf7eb0a78e60b0f (diff)
documentation, error fixes, organization
Diffstat (limited to 'ops.h')
-rw-r--r--ops.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/ops.h b/ops.h
index 5941d02..4257f07 100644
--- a/ops.h
+++ b/ops.h
@@ -42,4 +42,12 @@ extern variable opvars[];
*/
extern const char *opnames[];
+/**
+ * Gets the variable for the given operator.
+ * @param name the operator (e.g. "+")
+ * @param retlen if not null, stores the operator string's length here
+ * @return variable for the operator, zero if not found
+ */
+variable *igetop(const char *name, int *retlen);
+
#endif // OPS_H_