diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2012-07-29 17:13:13 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2012-07-29 17:13:13 +0300 |
commit | 0eaab9127d090da073a53695583837fcbd2be9d3 (patch) | |
tree | d2c34b0df5b4608830fb58f87002f512d3df8e98 /gawkapi.c | |
parent | 7e649df8a9e0375363a724ce89f78021a4395bf0 (diff) | |
download | egawk-0eaab9127d090da073a53695583837fcbd2be9d3.tar.gz egawk-0eaab9127d090da073a53695583837fcbd2be9d3.tar.bz2 egawk-0eaab9127d090da073a53695583837fcbd2be9d3.zip |
Update input_parser interface for RT.
Diffstat (limited to 'gawkapi.c')
-rw-r--r-- | gawkapi.c | 29 |
1 files changed, 0 insertions, 29 deletions
@@ -228,34 +228,6 @@ api_register_input_parser(awk_ext_id_t id, awk_input_parser_t *input_parser) register_input_parser(input_parser); } -/* api_set_RT --- set RT's value */ - -static void -api_set_RT(awk_ext_id_t id, awk_value_t *value) -{ - NODE *n; - - (void) id; - - if (value == NULL) - return; - - switch (value->val_type) { - case AWK_UNDEFINED: - set_RT_to_null(); - break; - case AWK_ARRAY: - case AWK_VALUE_COOKIE: - break; - case AWK_STRING: - case AWK_NUMBER: - case AWK_SCALAR: - n = awk_value_to_node(value); - force_string(n); - set_RT(n); /* set_RT takes ownership of n */ - } -} - /* Functions to update ERRNO */ /* api_update_ERRNO_int --- update ERRNO with an integer value */ @@ -988,7 +960,6 @@ gawk_api_t api_impl = { api_lintwarn, api_register_input_parser, - api_set_RT, api_update_ERRNO_int, api_update_ERRNO_string, |