diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2016-12-14 21:25:20 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2016-12-14 21:25:20 +0200 |
commit | 0855ef4db6d8e0d1d57776eb273c9de321bfd6cf (patch) | |
tree | 360dc72f0eecdeed3cb15154c55f767fa0508caa /extension/ordchr.c | |
parent | 539de0a854fb94fd6ba47e91cee55f22fcd851a3 (diff) | |
download | egawk-0855ef4db6d8e0d1d57776eb273c9de321bfd6cf.tar.gz egawk-0855ef4db6d8e0d1d57776eb273c9de321bfd6cf.tar.bz2 egawk-0855ef4db6d8e0d1d57776eb273c9de321bfd6cf.zip |
Fix lint stuff, arg checking. Add a data pointer. Pass finfo to functions.
Diffstat (limited to 'extension/ordchr.c')
-rw-r--r-- | extension/ordchr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/extension/ordchr.c b/extension/ordchr.c index 3722ced8..c7451f6d 100644 --- a/extension/ordchr.c +++ b/extension/ordchr.c @@ -58,7 +58,7 @@ int plugin_is_GPL_compatible; /* do_ord --- return numeric value of first char of string */ static awk_value_t * -do_ord(int nargs, awk_value_t *result) +do_ord(int nargs, awk_value_t *result, struct awk_ext_func *unused) { awk_value_t str; double ret = -1; @@ -77,7 +77,7 @@ do_ord(int nargs, awk_value_t *result) /* do_chr --- turn numeric value into a string */ static awk_value_t * -do_chr(int nargs, awk_value_t *result) +do_chr(int nargs, awk_value_t *result, struct awk_ext_func *unused) { awk_value_t num; unsigned int ret = 0; @@ -102,8 +102,8 @@ do_chr(int nargs, awk_value_t *result) } static awk_ext_func_t func_table[] = { - { "ord", do_ord, 1, 1 }, - { "chr", do_chr, 1, 1 }, + { "ord", do_ord, 1, 1, awk_false, NULL }, + { "chr", do_chr, 1, 1, awk_false, NULL }, }; /* define the dl_load function using the boilerplate macro */ |