diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2016-12-12 21:54:57 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2016-12-12 21:54:57 +0200 |
commit | 539de0a854fb94fd6ba47e91cee55f22fcd851a3 (patch) | |
tree | 2c7b590ae9a91127411cf2c6d0ee0dc2caf18b9b /awk.h | |
parent | 1bacda9f09bbb55c0ea3de42114c2dfe6cceec09 (diff) | |
download | egawk-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.h | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -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 |