diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2012-07-26 22:27:54 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2012-07-26 22:27:54 +0300 |
commit | 652a11e5fbe9862a2b8e961b32b9748b3c2c418b (patch) | |
tree | 003fe14ab86a1f521522a8815f22b618ebffd842 /gawkapi.h | |
parent | c3d3c83b0a60454c7b1bc335c022051b58f393e3 (diff) | |
download | egawk-652a11e5fbe9862a2b8e961b32b9748b3c2c418b.tar.gz egawk-652a11e5fbe9862a2b8e961b32b9748b3c2c418b.tar.bz2 egawk-652a11e5fbe9862a2b8e961b32b9748b3c2c418b.zip |
Add set_RT to API and to readdir extension.
Diffstat (limited to 'gawkapi.h')
-rw-r--r-- | gawkapi.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -324,6 +324,9 @@ typedef struct gawk_api { /* Register an input parser; for opening files read-only */ void (*api_register_input_parser)(awk_ext_id_t id, awk_input_parser_t *input_parser); + /* Set RT - pass AWK_UNDEFINED to set to null string */ + void (*api_set_RT)(awk_ext_id_t id, awk_value_t *value); + /* Functions to update ERRNO */ void (*api_update_ERRNO_int)(awk_ext_id_t id, int errno_val); void (*api_update_ERRNO_string)(awk_ext_id_t id, const char *string); @@ -504,6 +507,7 @@ typedef struct gawk_api { #define lintwarn api->api_lintwarn #define register_input_parser(parser) (api->api_register_input_parser(ext_id, parser)) +#define set_RT(value) (api->api_set_RT(ext_id, value)) #define update_ERRNO_int(e) (api->api_update_ERRNO_int(ext_id, e)) #define update_ERRNO_string(str) \ |