diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2017-08-05 18:20:34 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2017-08-05 18:20:34 +0200 |
commit | 50db1f29bf96c2ae4dbb96763793a9592d99cf02 (patch) | |
tree | 9f99e1eab5aa1fb22d8656ab42a2d048bc7fcc2c /include | |
parent | 20077c1429915b2c223e4d179a033f2b1806872c (diff) | |
download | busybox-w32-50db1f29bf96c2ae4dbb96763793a9592d99cf02.tar.gz busybox-w32-50db1f29bf96c2ae4dbb96763793a9592d99cf02.tar.bz2 busybox-w32-50db1f29bf96c2ae4dbb96763793a9592d99cf02.zip |
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 6077f64c9..51e8f27a5 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -1403,6 +1403,11 @@ enum { | |||
1403 | // keep a copy of current line | 1403 | // keep a copy of current line |
1404 | PARSE_KEEP_COPY = 0x00200000 * ENABLE_FEATURE_CROND_D, | 1404 | PARSE_KEEP_COPY = 0x00200000 * ENABLE_FEATURE_CROND_D, |
1405 | PARSE_EOL_COMMENTS = 0x00400000, // comments are recognized even if they aren't the first char | 1405 | PARSE_EOL_COMMENTS = 0x00400000, // comments are recognized even if they aren't the first char |
1406 | PARSE_ALT_COMMENTS = 0x00800000, // delim[0] and delim[1] are two different allowed comment chars | ||
1407 | // (so far, delim[0] will only work as comment char for full-line comment) | ||
1408 | // (IOW: it works as if PARSE_EOL_COMMENTS is not set. sysctl applet is okay with this) | ||
1409 | PARSE_WS_COMMENTS = 0x01000000, // comments are recognized even if there is whitespace before | ||
1410 | // ("line start><space><tab><space>#comment" is also comment, not only "line start>#comment") | ||
1406 | // NORMAL is: | 1411 | // NORMAL is: |
1407 | // * remove leading and trailing delimiters and collapse | 1412 | // * remove leading and trailing delimiters and collapse |
1408 | // multiple delimiters into one | 1413 | // multiple delimiters into one |