Denys Vlasenko
8286513838
hush: rework input char buffering to allow more than one-deep peek
This fixes backslash+newline continuation in
$VAR\
NAME
construct. (ash has a bug there as well).
function old new delta
file_peek2 - 74 +74
parse_dollar 746 773 +27
expand_vars_to_list 1143 1167 +24
setup_string_in_str 32 46 +14
setup_file_in_str 33 47 +14
file_get 264 278 +14
static_peek2 - 7 +7
file_peek 91 72 -19
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 5/1 up/down: 174/-19) Total: 155 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2016-09-29 16:59:06 +02:00
..
2010-09-16 11:50:46 +02:00
2015-09-04 03:33:02 +02:00
2016-04-15 22:16:46 +02:00
2016-09-29 01:44:17 +02:00
2016-09-25 20:54:25 +02:00
2012-06-09 02:06:57 +02:00
2016-07-16 18:33:55 +02:00
2016-09-29 16:59:06 +02:00
2016-03-22 18:15:24 -04:00
2016-03-22 18:15:14 -04:00
2010-10-29 11:46:52 +02:00
2015-10-29 20:34:20 +01:00
2010-10-29 11:46:52 +02:00