summaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorDenys Vlasenko2017-09-18 16:28:43 +0200
committerDenys Vlasenko2017-09-18 16:28:43 +0200
commit0c4dbd481aedb5d22c1048e7f7eb547a3b5e50a5 (patch)
treecfe1328d742da3f0572ac8b2f06aa95259862ac5 /editors
parentb63afead4411c5832d427ed149683c85cc81a4c9 (diff)
downloadbusybox-0c4dbd481aedb5d22c1048e7f7eb547a3b5e50a5.zip
busybox-0c4dbd481aedb5d22c1048e7f7eb547a3b5e50a5.tar.gz
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.c1
-rw-r--r--editors/cmp.c11
-rw-r--r--editors/diff.c6
-rw-r--r--editors/patch.c1
-rw-r--r--editors/sed.c7
-rw-r--r--editors/vi.c2
6 files changed, 9 insertions, 19 deletions
diff --git a/editors/awk.c b/editors/awk.c
index 2005329..d40c781 100644
--- a/editors/awk.c
+++ b/editors/awk.c
@@ -6,7 +6,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
//config:config AWK
//config: bool "awk (22 kb)"
//config: default y
diff --git a/editors/cmp.c b/editors/cmp.c
index ec86c0c..2a410fd 100644
--- a/editors/cmp.c
+++ b/editors/cmp.c
@@ -6,10 +6,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
-/* BB_AUDIT SUSv3 (virtually) compliant -- uses nicer GNU format for -l. */
-/* http://www.opengroup.org/onlinepubs/007904975/utilities/cmp.html */
-
//config:config CMP
//config: bool "cmp (5.4 kb)"
//config: default y
@@ -17,10 +13,10 @@
//config: cmp is used to compare two files and returns the result
//config: to standard output.
-//kbuild:lib-$(CONFIG_CMP) += cmp.o
-
//applet:IF_CMP(APPLET(cmp, BB_DIR_USR_BIN, BB_SUID_DROP))
+//kbuild:lib-$(CONFIG_CMP) += cmp.o
+
//usage:#define cmp_trivial_usage
//usage: "[-l] [-s] FILE1 [FILE2" IF_DESKTOP(" [SKIP1 [SKIP2]]") "]"
//usage:#define cmp_full_usage "\n\n"
@@ -29,6 +25,9 @@
//usage: "\n for all differing bytes"
//usage: "\n -s Quiet"
+/* BB_AUDIT SUSv3 (virtually) compliant -- uses nicer GNU format for -l. */
+/* http://www.opengroup.org/onlinepubs/007904975/utilities/cmp.html */
+
#include "libbb.h"
static const char fmt_eof[] ALIGN1 = "cmp: EOF on %s\n";
diff --git a/editors/diff.c b/editors/diff.c
index 2f25457..1462a9b 100644
--- a/editors/diff.c
+++ b/editors/diff.c
@@ -12,7 +12,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
/*
* The following code uses an algorithm due to Harold Stone,
* which finds a pair of longest identical subsequences in
@@ -75,7 +74,6 @@
* 3*(number of k-candidates installed), typically about
* 6n words for files of length n.
*/
-
//config:config DIFF
//config: bool "diff (13 kb)"
//config: default y
@@ -97,10 +95,10 @@
//config: This option enables support for directory and subdirectory
//config: comparison.
-//kbuild:lib-$(CONFIG_DIFF) += diff.o
-
//applet:IF_DIFF(APPLET(diff, BB_DIR_USR_BIN, BB_SUID_DROP))
+//kbuild:lib-$(CONFIG_DIFF) += diff.o
+
//usage:#define diff_trivial_usage
//usage: "[-abBdiNqrTstw] [-L LABEL] [-S FILE] [-U LINES] FILE1 FILE2"
//usage:#define diff_full_usage "\n\n"
diff --git a/editors/patch.c b/editors/patch.c
index 81316fa..a51b7a5 100644
--- a/editors/patch.c
+++ b/editors/patch.c
@@ -21,7 +21,6 @@
* -F fuzz (number, default 2)
* [file] which file to patch
*/
-
//config:config PATCH
//config: bool "patch (9.1 kb)"
//config: default y
diff --git a/editors/sed.c b/editors/sed.c
index 7ed9937..9d800c2 100644
--- a/editors/sed.c
+++ b/editors/sed.c
@@ -12,7 +12,6 @@
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
-
/* Code overview.
*
* Files are laid out to avoid unnecessary function declarations. So for
@@ -29,7 +28,6 @@
*
* sed_main() is where external code calls into this, with a command line.
*/
-
/* Supported features and commands in this version of sed:
*
* - comments ('#')
@@ -55,7 +53,6 @@
* http://pubs.opengroup.org/onlinepubs/9699919799/utilities/sed.html
* http://sed.sourceforge.net/sedfaq3.html
*/
-
//config:config SED
//config: bool "sed (12 kb)"
//config: default y
@@ -63,10 +60,10 @@
//config: sed is used to perform text transformations on a file
//config: or input from a pipeline.
-//kbuild:lib-$(CONFIG_SED) += sed.o
-
//applet:IF_SED(APPLET(sed, BB_DIR_BIN, BB_SUID_DROP))
+//kbuild:lib-$(CONFIG_SED) += sed.o
+
//usage:#define sed_trivial_usage
//usage: "[-i[SFX]] [-nrE] [-f FILE]... [-e CMD]... [FILE]...\n"
//usage: "or: sed [-i[SFX]] [-nrE] CMD [FILE]..."
diff --git a/editors/vi.c b/editors/vi.c
index c010f79..60c73c0 100644
--- a/editors/vi.c
+++ b/editors/vi.c
@@ -5,7 +5,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
/*
* Things To Do:
* EXINIT
@@ -19,7 +18,6 @@
* ":r !cmd" and "!cmd" to filter text through an external command
* An "ex" line oriented mode- maybe using "cmdedit"
*/
-
//config:config VI
//config: bool "vi (22 kb)"
//config: default y