projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
hush_test: ignore generated files
[oweals/busybox.git]
/
docs
/
style-guide.txt
diff --git
a/docs/style-guide.txt
b/docs/style-guide.txt
index 5bb3441cdf6c012ae79c02dbc9004271177ee693..7560d698623357a12b3ead68a05eb00ecfbab8bd 100644
(file)
--- a/
docs/style-guide.txt
+++ b/
docs/style-guide.txt
@@
-377,13
+377,13
@@
used in the code.
(in .h header file)
(in .h header file)
- #if
def 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
{
/* 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)
#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' },
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()
};
And a code block similar to the following near the top of your applet_main()