aboutsummaryrefslogtreecommitdiffstats
path: root/awk.h
diff options
context:
space:
mode:
authorAndrew J. Schorr <aschorr@telemetry-investments.com>2017-03-05 17:05:36 -0500
committerAndrew J. Schorr <aschorr@telemetry-investments.com>2017-03-05 17:05:36 -0500
commit62fe07b69e522c909aad303b31443cc3c9bdf6c0 (patch)
treed4e720b2c250f3ddab01576e86c079b66c3a132b /awk.h
parent50a83f464b8c573bf8053dbb503041f4640b68d2 (diff)
downloadegawk-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.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/awk.h b/awk.h
index aae5e7ec..be6a6479 100644
--- a/awk.h
+++ b/awk.h
@@ -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;