summaryrefslogtreecommitdiff
path: root/gawkapi.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-12-17 20:43:40 +0200
committerArnold D. Robbins <arnold@skeeve.com>2016-12-17 20:43:40 +0200
commitb76409d4d7fe75c018a80c685668cb65769a613c (patch)
treefdea7f02dd5bc7a7a4de8fb8d544b5be9eaed291 /gawkapi.h
parent570758ee453fb42451f52a451e75d0a51c732cde (diff)
downloadgawk-b76409d4d7fe75c018a80c685668cb65769a613c.tar.gz
Further api doc updates. Simplify lint checking for max args.
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);