diff options
author | Denys Vlasenko | 2017-08-05 18:20:34 +0200 |
---|---|---|
committer | Denys Vlasenko | 2017-08-05 18:20:34 +0200 |
commit | 50db1f29bf96c2ae4dbb96763793a9592d99cf02 (patch) | |
tree | 9f99e1eab5aa1fb22d8656ab42a2d048bc7fcc2c /include | |
parent | 20077c1429915b2c223e4d179a033f2b1806872c (diff) | |
download | busybox-50db1f29bf96c2ae4dbb96763793a9592d99cf02.zip busybox-50db1f29bf96c2ae4dbb96763793a9592d99cf02.tar.gz |
sysctl: recognize ";comment" and "<whitespace>#comment" lines
function old new delta
config_read 639 699 +60
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h index 6077f64..51e8f27 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -1403,6 +1403,11 @@ enum { // keep a copy of current line PARSE_KEEP_COPY = 0x00200000 * ENABLE_FEATURE_CROND_D, PARSE_EOL_COMMENTS = 0x00400000, // comments are recognized even if they aren't the first char + PARSE_ALT_COMMENTS = 0x00800000, // delim[0] and delim[1] are two different allowed comment chars + // (so far, delim[0] will only work as comment char for full-line comment) + // (IOW: it works as if PARSE_EOL_COMMENTS is not set. sysctl applet is okay with this) + PARSE_WS_COMMENTS = 0x01000000, // comments are recognized even if there is whitespace before + // ("line start><space><tab><space>#comment" is also comment, not only "line start>#comment") // NORMAL is: // * remove leading and trailing delimiters and collapse // multiple delimiters into one |