diff options
author | Andrew J. Schorr <aschorr@telemetry-investments.com> | 2017-03-05 17:05:36 -0500 |
---|---|---|
committer | Andrew J. Schorr <aschorr@telemetry-investments.com> | 2017-03-05 17:05:36 -0500 |
commit | 62fe07b69e522c909aad303b31443cc3c9bdf6c0 (patch) | |
tree | d4e720b2c250f3ddab01576e86c079b66c3a132b /awk.h | |
parent | 50a83f464b8c573bf8053dbb503041f4640b68d2 (diff) | |
download | egawk-62fe07b69e522c909aad303b31443cc3c9bdf6c0.tar.gz egawk-62fe07b69e522c909aad303b31443cc3c9bdf6c0.tar.bz2 egawk-62fe07b69e522c909aad303b31443cc3c9bdf6c0.zip |
Enable an API input parser to supply an array of field widths to override the default gawk field parsing mechanism.
Diffstat (limited to 'awk.h')
-rw-r--r-- | awk.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1510,7 +1510,7 @@ extern NODE *get_actual_argument(NODE *, int, bool); #endif /* field.c */ extern void init_fields(void); -extern void set_record(const char *buf, int cnt); +extern void set_record(const char *buf, int cnt, const int *); extern void reset_record(void); extern void rebuild_record(void); extern void set_NF(void); @@ -1527,9 +1527,11 @@ extern void update_PROCINFO_num(const char *subscript, AWKNUM val); typedef enum { Using_FS, Using_FIELDWIDTHS, - Using_FPAT + Using_FPAT, + Using_API } field_sep_type; extern field_sep_type current_field_sep(void); +extern const char *current_field_sep_str(void); /* gawkapi.c: */ extern gawk_api_t api_impl; |