diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2017-09-18 16:28:43 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2017-09-18 16:28:43 +0200 |
commit | 0c4dbd481aedb5d22c1048e7f7eb547a3b5e50a5 (patch) | |
tree | cfe1328d742da3f0572ac8b2f06aa95259862ac5 /editors | |
parent | b63afead4411c5832d427ed149683c85cc81a4c9 (diff) | |
download | busybox-w32-0c4dbd481aedb5d22c1048e7f7eb547a3b5e50a5.tar.gz busybox-w32-0c4dbd481aedb5d22c1048e7f7eb547a3b5e50a5.tar.bz2 busybox-w32-0c4dbd481aedb5d22c1048e7f7eb547a3b5e50a5.zip |
regularize format of source file headers, no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'editors')
-rw-r--r-- | editors/awk.c | 1 | ||||
-rw-r--r-- | editors/cmp.c | 11 | ||||
-rw-r--r-- | editors/diff.c | 6 | ||||
-rw-r--r-- | editors/patch.c | 1 | ||||
-rw-r--r-- | editors/sed.c | 7 | ||||
-rw-r--r-- | editors/vi.c | 2 |
6 files changed, 9 insertions, 19 deletions
diff --git a/editors/awk.c b/editors/awk.c index 2005329ad..d40c7816a 100644 --- a/editors/awk.c +++ b/editors/awk.c | |||
@@ -6,7 +6,6 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | //config:config AWK | 9 | //config:config AWK |
11 | //config: bool "awk (22 kb)" | 10 | //config: bool "awk (22 kb)" |
12 | //config: default y | 11 | //config: default y |
diff --git a/editors/cmp.c b/editors/cmp.c index ec86c0ce2..2a410fdec 100644 --- a/editors/cmp.c +++ b/editors/cmp.c | |||
@@ -6,10 +6,6 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | /* BB_AUDIT SUSv3 (virtually) compliant -- uses nicer GNU format for -l. */ | ||
11 | /* http://www.opengroup.org/onlinepubs/007904975/utilities/cmp.html */ | ||
12 | |||
13 | //config:config CMP | 9 | //config:config CMP |
14 | //config: bool "cmp (5.4 kb)" | 10 | //config: bool "cmp (5.4 kb)" |
15 | //config: default y | 11 | //config: default y |
@@ -17,10 +13,10 @@ | |||
17 | //config: cmp is used to compare two files and returns the result | 13 | //config: cmp is used to compare two files and returns the result |
18 | //config: to standard output. | 14 | //config: to standard output. |
19 | 15 | ||
20 | //kbuild:lib-$(CONFIG_CMP) += cmp.o | ||
21 | |||
22 | //applet:IF_CMP(APPLET(cmp, BB_DIR_USR_BIN, BB_SUID_DROP)) | 16 | //applet:IF_CMP(APPLET(cmp, BB_DIR_USR_BIN, BB_SUID_DROP)) |
23 | 17 | ||
18 | //kbuild:lib-$(CONFIG_CMP) += cmp.o | ||
19 | |||
24 | //usage:#define cmp_trivial_usage | 20 | //usage:#define cmp_trivial_usage |
25 | //usage: "[-l] [-s] FILE1 [FILE2" IF_DESKTOP(" [SKIP1 [SKIP2]]") "]" | 21 | //usage: "[-l] [-s] FILE1 [FILE2" IF_DESKTOP(" [SKIP1 [SKIP2]]") "]" |
26 | //usage:#define cmp_full_usage "\n\n" | 22 | //usage:#define cmp_full_usage "\n\n" |
@@ -29,6 +25,9 @@ | |||
29 | //usage: "\n for all differing bytes" | 25 | //usage: "\n for all differing bytes" |
30 | //usage: "\n -s Quiet" | 26 | //usage: "\n -s Quiet" |
31 | 27 | ||
28 | /* BB_AUDIT SUSv3 (virtually) compliant -- uses nicer GNU format for -l. */ | ||
29 | /* http://www.opengroup.org/onlinepubs/007904975/utilities/cmp.html */ | ||
30 | |||
32 | #include "libbb.h" | 31 | #include "libbb.h" |
33 | 32 | ||
34 | static const char fmt_eof[] ALIGN1 = "cmp: EOF on %s\n"; | 33 | static const char fmt_eof[] ALIGN1 = "cmp: EOF on %s\n"; |
diff --git a/editors/diff.c b/editors/diff.c index 2f254575c..1462a9b18 100644 --- a/editors/diff.c +++ b/editors/diff.c | |||
@@ -12,7 +12,6 @@ | |||
12 | * | 12 | * |
13 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 13 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
14 | */ | 14 | */ |
15 | |||
16 | /* | 15 | /* |
17 | * The following code uses an algorithm due to Harold Stone, | 16 | * The following code uses an algorithm due to Harold Stone, |
18 | * which finds a pair of longest identical subsequences in | 17 | * which finds a pair of longest identical subsequences in |
@@ -75,7 +74,6 @@ | |||
75 | * 3*(number of k-candidates installed), typically about | 74 | * 3*(number of k-candidates installed), typically about |
76 | * 6n words for files of length n. | 75 | * 6n words for files of length n. |
77 | */ | 76 | */ |
78 | |||
79 | //config:config DIFF | 77 | //config:config DIFF |
80 | //config: bool "diff (13 kb)" | 78 | //config: bool "diff (13 kb)" |
81 | //config: default y | 79 | //config: default y |
@@ -97,10 +95,10 @@ | |||
97 | //config: This option enables support for directory and subdirectory | 95 | //config: This option enables support for directory and subdirectory |
98 | //config: comparison. | 96 | //config: comparison. |
99 | 97 | ||
100 | //kbuild:lib-$(CONFIG_DIFF) += diff.o | ||
101 | |||
102 | //applet:IF_DIFF(APPLET(diff, BB_DIR_USR_BIN, BB_SUID_DROP)) | 98 | //applet:IF_DIFF(APPLET(diff, BB_DIR_USR_BIN, BB_SUID_DROP)) |
103 | 99 | ||
100 | //kbuild:lib-$(CONFIG_DIFF) += diff.o | ||
101 | |||
104 | //usage:#define diff_trivial_usage | 102 | //usage:#define diff_trivial_usage |
105 | //usage: "[-abBdiNqrTstw] [-L LABEL] [-S FILE] [-U LINES] FILE1 FILE2" | 103 | //usage: "[-abBdiNqrTstw] [-L LABEL] [-S FILE] [-U LINES] FILE1 FILE2" |
106 | //usage:#define diff_full_usage "\n\n" | 104 | //usage:#define diff_full_usage "\n\n" |
diff --git a/editors/patch.c b/editors/patch.c index 81316fae3..a51b7a502 100644 --- a/editors/patch.c +++ b/editors/patch.c | |||
@@ -21,7 +21,6 @@ | |||
21 | * -F fuzz (number, default 2) | 21 | * -F fuzz (number, default 2) |
22 | * [file] which file to patch | 22 | * [file] which file to patch |
23 | */ | 23 | */ |
24 | |||
25 | //config:config PATCH | 24 | //config:config PATCH |
26 | //config: bool "patch (9.1 kb)" | 25 | //config: bool "patch (9.1 kb)" |
27 | //config: default y | 26 | //config: default y |
diff --git a/editors/sed.c b/editors/sed.c index 7ed9937d2..9d800c2c3 100644 --- a/editors/sed.c +++ b/editors/sed.c | |||
@@ -12,7 +12,6 @@ | |||
12 | * | 12 | * |
13 | * Licensed under GPLv2, see file LICENSE in this source tree. | 13 | * Licensed under GPLv2, see file LICENSE in this source tree. |
14 | */ | 14 | */ |
15 | |||
16 | /* Code overview. | 15 | /* Code overview. |
17 | * | 16 | * |
18 | * Files are laid out to avoid unnecessary function declarations. So for | 17 | * Files are laid out to avoid unnecessary function declarations. So for |
@@ -29,7 +28,6 @@ | |||
29 | * | 28 | * |
30 | * sed_main() is where external code calls into this, with a command line. | 29 | * sed_main() is where external code calls into this, with a command line. |
31 | */ | 30 | */ |
32 | |||
33 | /* Supported features and commands in this version of sed: | 31 | /* Supported features and commands in this version of sed: |
34 | * | 32 | * |
35 | * - comments ('#') | 33 | * - comments ('#') |
@@ -55,7 +53,6 @@ | |||
55 | * http://pubs.opengroup.org/onlinepubs/9699919799/utilities/sed.html | 53 | * http://pubs.opengroup.org/onlinepubs/9699919799/utilities/sed.html |
56 | * http://sed.sourceforge.net/sedfaq3.html | 54 | * http://sed.sourceforge.net/sedfaq3.html |
57 | */ | 55 | */ |
58 | |||
59 | //config:config SED | 56 | //config:config SED |
60 | //config: bool "sed (12 kb)" | 57 | //config: bool "sed (12 kb)" |
61 | //config: default y | 58 | //config: default y |
@@ -63,10 +60,10 @@ | |||
63 | //config: sed is used to perform text transformations on a file | 60 | //config: sed is used to perform text transformations on a file |
64 | //config: or input from a pipeline. | 61 | //config: or input from a pipeline. |
65 | 62 | ||
66 | //kbuild:lib-$(CONFIG_SED) += sed.o | ||
67 | |||
68 | //applet:IF_SED(APPLET(sed, BB_DIR_BIN, BB_SUID_DROP)) | 63 | //applet:IF_SED(APPLET(sed, BB_DIR_BIN, BB_SUID_DROP)) |
69 | 64 | ||
65 | //kbuild:lib-$(CONFIG_SED) += sed.o | ||
66 | |||
70 | //usage:#define sed_trivial_usage | 67 | //usage:#define sed_trivial_usage |
71 | //usage: "[-i[SFX]] [-nrE] [-f FILE]... [-e CMD]... [FILE]...\n" | 68 | //usage: "[-i[SFX]] [-nrE] [-f FILE]... [-e CMD]... [FILE]...\n" |
72 | //usage: "or: sed [-i[SFX]] [-nrE] CMD [FILE]..." | 69 | //usage: "or: sed [-i[SFX]] [-nrE] CMD [FILE]..." |
diff --git a/editors/vi.c b/editors/vi.c index c010f7999..60c73c0eb 100644 --- a/editors/vi.c +++ b/editors/vi.c | |||
@@ -5,7 +5,6 @@ | |||
5 | * | 5 | * |
6 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 6 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
7 | */ | 7 | */ |
8 | |||
9 | /* | 8 | /* |
10 | * Things To Do: | 9 | * Things To Do: |
11 | * EXINIT | 10 | * EXINIT |
@@ -19,7 +18,6 @@ | |||
19 | * ":r !cmd" and "!cmd" to filter text through an external command | 18 | * ":r !cmd" and "!cmd" to filter text through an external command |
20 | * An "ex" line oriented mode- maybe using "cmdedit" | 19 | * An "ex" line oriented mode- maybe using "cmdedit" |
21 | */ | 20 | */ |
22 | |||
23 | //config:config VI | 21 | //config:config VI |
24 | //config: bool "vi (22 kb)" | 22 | //config: bool "vi (22 kb)" |
25 | //config: default y | 23 | //config: default y |