Ignore:
Timestamp:
Jan 1, 2014, 12:47:38 AM (5 years ago)
Author:
bruno
Message:
  • Update mindi-busybox to 1.21.1
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi-busybox/docs/style-guide.txt

    r2725 r3232  
    680680Then have long options defined:
    681681
    682     static const struct option <applet>_long_options[] = {
    683         { "list",    0, NULL, 't' },
    684         { "extract", 0, NULL, 'x' },
    685         { NULL, 0, NULL, 0 }
    686     };
     682    static const char <applet>_longopts[] ALIGN1 =
     683        "list\0"    No_argument "t"
     684        "extract\0" No_argument "x"
     685    ;
    687686
    688687And a code block similar to the following near the top of your applet_main()
     
    692691
    693692    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 */
    695694    opt = getopt32(argc, argv, "ab:c", &str_b);
    696695    if (opt & 1) {
Note: See TracChangeset for help on using the changeset viewer.