summaryrefslogtreecommitdiff
path: root/gawkapi.h
diff options
context:
space:
mode:
Diffstat (limited to 'gawkapi.h')
-rw-r--r--gawkapi.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/gawkapi.h b/gawkapi.h
index 337fef8a..aae3ac0a 100644
--- a/gawkapi.h
+++ b/gawkapi.h
@@ -428,7 +428,12 @@ typedef struct gawk_api {
/* Next, registration functions: */
- /* Add a function to the interpreter, returns true upon success */
+ /*
+ * Add a function to the interpreter, returns true upon success.
+ * Gawk does not modify what func points to, but the extension
+ * function itself receives this pointer and can modify what it
+ * points to, thus it's not const.
+ */
awk_bool_t (*api_add_ext_func)(awk_ext_id_t id, const char *namespace,
awk_ext_func_t *func);