aboutsummaryrefslogtreecommitdiffstats
path: root/awk.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-12-12 21:54:57 +0200
committerArnold D. Robbins <arnold@skeeve.com>2016-12-12 21:54:57 +0200
commit539de0a854fb94fd6ba47e91cee55f22fcd851a3 (patch)
tree2c7b590ae9a91127411cf2c6d0ee0dc2caf18b9b /awk.h
parent1bacda9f09bbb55c0ea3de42114c2dfe6cceec09 (diff)
downloadegawk-539de0a854fb94fd6ba47e91cee55f22fcd851a3.tar.gz
egawk-539de0a854fb94fd6ba47e91cee55f22fcd851a3.tar.bz2
egawk-539de0a854fb94fd6ba47e91cee55f22fcd851a3.zip
Improve handling of min and max args for extension functions.
Diffstat (limited to 'awk.h')
-rw-r--r--awk.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/awk.h b/awk.h
index 4f04fc83..4e365ba8 100644
--- a/awk.h
+++ b/awk.h
@@ -778,10 +778,7 @@ typedef struct exp_instruction {
void (*aptr)(void);
struct exp_instruction *xi;
struct break_point *bpt;
- struct {
- uint16_t mr; // minimum required
- uint16_t me; // maximum expected
- } fa; // function args
+ awk_ext_func_t *exf;
} x;
short source_line;
@@ -797,8 +794,7 @@ typedef struct exp_instruction {
#define expr_count x.xl
-#define min_required x.fa.mr
-#define max_expected x.fa.me
+#define c_func x.exf
#define target_continue d.di
#define target_jmp d.di