diff options
author | Assaf Gordon <assafgordon@gmail.com> | 2015-07-17 23:30:30 -0400 |
---|---|---|
committer | Assaf Gordon <assafgordon@gmail.com> | 2015-09-12 02:27:32 +0000 |
commit | bd1bc2b3fe1c87744cc251334cc1c804075b027c (patch) | |
tree | 5baeb6bacf915762980ff3e87cd4f203814ffc28 /bootstrap | |
parent | 5bbdcd2a02d9686edb788c46fc953192acdc6796 (diff) | |
download | coreutils-bd1bc2b3fe1c87744cc251334cc1c804075b027c.tar.xz |
cut: refactor into set-fields module
Extract the functionality of parsing --field=LIST into a separate
module, to be used by other programs.
* src/cut.c: move field parsing code from here ...
* src/set-fields.{c,h}: ... to here.
(set_fields): generalize by supporting multiple parsing/reporting
options.
(struct range_pair): rename to field_range_pair.
* src/local.mk: link cut with set-field.
* po/POTFILES.in: add set-field.c
* tests/misc/cut.pl: update wording of error messages
Diffstat (limited to 'bootstrap')
0 files changed, 0 insertions, 0 deletions