aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2012-03-22 15:21:20 +0000
committerRon Yorston <rmy@pobox.com>2012-03-22 15:21:20 +0000
commit0d8b2c4a929ea9d3ac37499319fe0d8e7941a0c2 (patch)
tree6709ddd6071a9c238ba69233540bbcfe560c6a44 /docs
parent67758035a4fe040c6ac69b39d61bcd6bddd7b827 (diff)
parent56a3b82e9692a25ef9c9269e88feac0d579ce8e8 (diff)
downloadbusybox-w32-0d8b2c4a929ea9d3ac37499319fe0d8e7941a0c2.tar.gz
busybox-w32-0d8b2c4a929ea9d3ac37499319fe0d8e7941a0c2.tar.bz2
busybox-w32-0d8b2c4a929ea9d3ac37499319fe0d8e7941a0c2.zip
Merge commit '56a3b82e9692a25ef9c9269e88feac0d579ce8e8' into merge
Conflicts: coreutils/ls.c include/platform.h libbb/bb_basename.c
Diffstat (limited to 'docs')
-rw-r--r--docs/style-guide.txt11
1 files changed, 5 insertions, 6 deletions
diff --git a/docs/style-guide.txt b/docs/style-guide.txt
index fdf6cfe4d..10ed893dc 100644
--- a/docs/style-guide.txt
+++ b/docs/style-guide.txt
@@ -679,11 +679,10 @@ line in the midst of your #includes, if you need to parse long options:
679 679
680Then have long options defined: 680Then have long options defined:
681 681
682 static const struct option <applet>_long_options[] = { 682 static const char <applet>_longopts[] ALIGN1 =
683 { "list", 0, NULL, 't' }, 683 "list\0" No_argument "t"
684 { "extract", 0, NULL, 'x' }, 684 "extract\0" No_argument "x"
685 { NULL, 0, NULL, 0 } 685 ;
686 };
687 686
688And a code block similar to the following near the top of your applet_main() 687And a code block similar to the following near the top of your applet_main()
689routine: 688routine:
@@ -691,7 +690,7 @@ routine:
691 char *str_b; 690 char *str_b;
692 691
693 opt_complementary = "cryptic_string"; 692 opt_complementary = "cryptic_string";
694 applet_long_options = <applet>_long_options; /* if you have them */ 693 applet_long_options = <applet>_longopts; /* if you have them */
695 opt = getopt32(argc, argv, "ab:c", &str_b); 694 opt = getopt32(argc, argv, "ab:c", &str_b);
696 if (opt & 1) { 695 if (opt & 1) {
697 handle_option_a(); 696 handle_option_a();