Assaf Gordon
ff2178bf30
maint: refactor common expand(1) and unexpand(1) code
...
* src/expand.c, src/unexpand.c: Move global variables from here...
* src/expand-common.h, src/expand-common.c: ... to here.
* src/expand.c, src/unexpand.c: (parse_tab_stops, validate_tab_stops,
next_file): Move identical functions to new module.
(add_tab_stop): Move to new module, including additional code from
'unexpand' (keeping max_column_width) which will have no effect in when
used in 'expand'. Refactor common next-column calculation code
into a new function 'get_next_tab_column'.
* src/local.mk: (src_expand_SOURCES, src_unexpand_SOURCES): Add
'expand-common.c'; (noinst_HEADERS): Add 'expand-common.h'.
* po/POTFILES.in: Add 'expand-common.c'.
* tests/misc/expand.pl: Add more tests.
* tests/misc/unexpand.pl: Likewise.
* TODO: Move conclusions to above test after investigation.
2016-08-09 11:31:00 +01:00
..
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-10 01:51:27 +01:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-13 10:59:56 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-04-21 19:34:18 +01:00
2016-01-13 10:59:56 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-03-17 10:36:33 -07:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-08-09 11:31:00 +01:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-18 18:29:47 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-13 10:59:55 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-13 10:59:18 +00:00
2016-01-15 14:14:06 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-05-14 12:41:43 +01:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-13 11:11:36 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-13 10:59:56 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-07-02 18:08:33 -04:00
2016-04-24 18:19:50 -04:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-04-14 12:39:28 +02:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-19 16:08:59 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-04-21 19:41:58 +01:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-05-31 21:29:52 -04:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-07-18 22:24:26 +01:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-13 10:59:18 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-10 01:51:27 +01:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-06 15:20:49 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-13 10:59:56 +00:00
2016-02-23 01:05:10 -08:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-03-17 10:36:33 -07:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-04-21 19:41:58 +01:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-08-09 11:31:00 +01:00
2016-01-01 14:10:41 +00:00
2016-01-13 10:59:18 +00:00
2016-01-01 14:10:41 +00:00
2016-01-13 11:11:36 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-06-24 01:09:28 +01:00