diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2017-03-09 22:09:09 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2017-03-09 22:09:09 +0200 |
commit | feb12baf11e39f60e57b988d29aa96bda4dddcff (patch) | |
tree | e48139f4fae2b978343e0a2d8db2ab2fb4782e51 /field.c | |
parent | de08cb2b36073987fe86dfcc8c66c2f0e8711ef8 (diff) | |
download | egawk-feb12baf11e39f60e57b988d29aa96bda4dddcff.tar.gz egawk-feb12baf11e39f60e57b988d29aa96bda4dddcff.tar.bz2 egawk-feb12baf11e39f60e57b988d29aa96bda4dddcff.zip |
Minor style edits in field.c.
Diffstat (limited to 'field.c')
-rw-r--r-- | field.c | 14 |
1 files changed, 6 insertions, 8 deletions
@@ -322,12 +322,9 @@ set_record(const char *buf, int cnt, const int *fw) parse_field = api_parse_field; update_PROCINFO_str("FS", "API"); } - } - else { - if (parse_field != normal_parse_field) { - parse_field = normal_parse_field; - update_PROCINFO_str("FS", current_field_sep_str()); - } + } else if (parse_field != normal_parse_field) { + parse_field = normal_parse_field; + update_PROCINFO_str("FS", current_field_sep_str()); } } @@ -789,6 +786,7 @@ fw_parse_field(long up_to, /* parse only up to this field number */ * * This is called from get_field() via (*parse_field)(). */ + static long api_parse_field(long up_to, /* parse only up to this field number */ char **buf, /* on input: string to parse; on output: point to start next */ @@ -1350,7 +1348,7 @@ choose_fs_function: FS_regexp = FS_re_yes_case; } -/* current_field_sep --- return what field separator is */ +/* current_field_sep --- return the field separator type */ field_sep_type current_field_sep() @@ -1365,7 +1363,7 @@ current_field_sep() return Using_FS; } -/* current_field_sep --- return what field separator is */ +/* current_field_sep_str --- return the field separator type as a string */ const char * current_field_sep_str() |