gawk: Changes from API V1
1
1 16.4.15 Changes From Version 1 of the API
1 -----------------------------------------
1
1 The current API is _not_ binary compatible with version 1 of the API.
1 You will have to recompile your extensions in order to use them with the
1 current version of 'gawk'.
1
1 Fortunately, at the possible expense of some compile-time warnings,
1 the API remains source-code-compatible with the previous API. The major
1 differences are the additional members in the 'awk_ext_func_t'
1 structure, and the addition of the third argument to the C
1 implementation function (⇒Extension Functions).
1
1 Here is a list of individual features that changed from version 1 to
1 version 2 of the API:
1
11 * Numeric values can now have MPFR/MPZ variants (⇒General Data
Types).
1
11 * There are new string types: 'AWK_REGEX' and 'AWK_STRNUM' (⇒
General Data Types).
1
1 * The 'ezalloc()' macro is new (⇒Memory Allocation Functions).
1
1 * The 'awk_ext_func_t' structure changed. Instead of
1 'num_expected_args', it now has 'max_expected' and 'min_required'
1 (⇒Extension Functions).
1
1 * For 'get_record()', an input parser can now specify field widths
1 (⇒Input Parsers).
1
11 * Extensions can now produce nonfatal error messages (⇒Printing
Messages).
1
1 * When flattening an array, you can now specify the index and value
1 types (⇒Array Functions).
1
1 * The 'get_file()' API is new (⇒Redirection API).
1