diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2016-05-30 17:08:08 -0400 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2016-05-30 17:08:08 -0400 |
commit | c8dc9ceead1f322acc3d1041cab02a61536d9f3d (patch) | |
tree | 596df38955605520b0d5ad1f5c89f2e3f36e436a /gawkapi.h | |
parent | 0b69420a3cb1c318028ef8c10f475f73296fab02 (diff) | |
parent | d851540e8611be939ac01a4f6c87ade351d6ad0b (diff) | |
download | egawk-c8dc9ceead1f322acc3d1041cab02a61536d9f3d.tar.gz egawk-c8dc9ceead1f322acc3d1041cab02a61536d9f3d.tar.bz2 egawk-c8dc9ceead1f322acc3d1041cab02a61536d9f3d.zip |
Merge branch 'master' into feature/cmake
Diffstat (limited to 'gawkapi.h')
-rw-r--r-- | gawkapi.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -374,11 +374,15 @@ typedef struct awk_flat_array { * Each extension function may decide what to do if the number of * arguments isn't what it expected. Following awk functions, it * is likely OK to ignore extra arguments. + + * Note that the 'max_expected_args' value should be used by the + * extension function itself only to trigger a lint warning if more + * arguments are passed to the function. */ typedef struct awk_ext_func { const char *name; awk_value_t *(*function)(int num_actual_args, awk_value_t *result); - size_t num_expected_args; + size_t max_expected_args; } awk_ext_func_t; typedef void *awk_ext_id_t; /* opaque type for extension id */ |