diff options
author | Mark Whitley <markw@lineo.com> | 2000-12-19 17:54:38 +0000 |
---|---|---|
committer | Mark Whitley <markw@lineo.com> | 2000-12-19 17:54:38 +0000 |
commit | 8a6b619c96e1aa5cc2994614547951d8248d276f (patch) | |
tree | f5ae492f9bc850429a93dc6f0ea28263f329de83 /docs/new-applet-HOWTO.txt | |
parent | eac2636513fbe876480e38519c09481612131393 (diff) | |
download | busybox-w32-8a6b619c96e1aa5cc2994614547951d8248d276f.tar.gz busybox-w32-8a6b619c96e1aa5cc2994614547951d8248d276f.tar.bz2 busybox-w32-8a6b619c96e1aa5cc2994614547951d8248d276f.zip |
Added a paragraph from Larry Dolittle, made some more section headers.
Diffstat (limited to 'docs/new-applet-HOWTO.txt')
-rw-r--r-- | docs/new-applet-HOWTO.txt | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/docs/new-applet-HOWTO.txt b/docs/new-applet-HOWTO.txt index c27aef828..638526a0c 100644 --- a/docs/new-applet-HOWTO.txt +++ b/docs/new-applet-HOWTO.txt | |||
@@ -61,15 +61,30 @@ int mu_main(int argc, char **argv) | |||
61 | 61 | ||
62 | ----end example code------ | 62 | ----end example code------ |
63 | 63 | ||
64 | |||
65 | Coding Style | ||
66 | ------------ | ||
67 | |||
68 | Before you submit your applet for inclusion in BusyBox, (or better yet, before | ||
69 | you _write_ your applet) please read through the style guide in the docs | ||
70 | directory and make your program compliant. | ||
71 | |||
72 | |||
73 | Some Words on utility.c | ||
74 | ----------------------- | ||
75 | |||
64 | As you are writing your applet, please be aware of the body of pre-existing | 76 | As you are writing your applet, please be aware of the body of pre-existing |
65 | useful functions in utility.c. Use these instead of reinventing the wheel. | 77 | useful functions in utility.c. Use these instead of reinventing the wheel. |
78 | |||
79 | If you use functions from utility.c, you may need to add to the preprocessor | ||
80 | conditionals in that file, to make sure the routines you need are included. | ||
81 | So, since your mu implementation used safe_read(), append "|| define BB_MU" to | ||
82 | the #if instruction that precedes the safe_read() function in utility.c . | ||
83 | |||
66 | Additionally, if you have any useful, general-purpose functions in your | 84 | Additionally, if you have any useful, general-purpose functions in your |
67 | program that could be useful in another program, consider putting them in | 85 | program that could be useful in another program, consider putting them in |
68 | utility.c. | 86 | utility.c. |
69 | 87 | ||
70 | Furthermore, please read through the style guide in the docs directory and | ||
71 | make your program compliant. | ||
72 | |||
73 | 88 | ||
74 | Usage String(s) | 89 | Usage String(s) |
75 | --------------- | 90 | --------------- |