aboutsummaryrefslogtreecommitdiffstats
path: root/ops.h
diff options
context:
space:
mode:
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_