X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=docs%2Fstyle-guide.txt;h=7560d698623357a12b3ead68a05eb00ecfbab8bd;hb=33f85eeac5a7babc996cacce4485326d46b6e54d;hp=5bb3441cdf6c012ae79c02dbc9004271177ee693;hpb=91de7c0328d1ab3f32c8b9eb4bc6c3cd9cdf0b23;p=oweals%2Fbusybox.git diff --git a/docs/style-guide.txt b/docs/style-guide.txt index 5bb3441cd..7560d6986 100644 --- a/docs/style-guide.txt +++ b/docs/style-guide.txt @@ -377,13 +377,13 @@ used in the code. (in .h header file) - #ifdef CONFIG_FEATURE_FUNKY - static inline void maybe_do_funky_stuff (int bar, int baz) + #if ENABLE_FEATURE_FUNKY + static inline void maybe_do_funky_stuff(int bar, int baz) { /* lotsa code in here */ } #else - static inline void maybe_do_funky_stuff (int bar, int baz) {} + static inline void maybe_do_funky_stuff(int bar, int baz) {} #endif (in the .c source file) @@ -682,7 +682,7 @@ Then have long options defined: static const struct option _long_options[] = { { "list", 0, NULL, 't' }, { "extract", 0, NULL, 'x' }, - { NULL } + { NULL, 0, NULL, 0 } }; And a code block similar to the following near the top of your applet_main()