hush_test: ignore generated files
[oweals/busybox.git] / docs / style-guide.txt
index 5bb3441cdf6c012ae79c02dbc9004271177ee693..7560d698623357a12b3ead68a05eb00ecfbab8bd 100644 (file)
@@ -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 <applet>_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()