-
Notifications
You must be signed in to change notification settings - Fork 207
Module
rustyrussell edited this page Sep 28, 2011
·
2 revisions
Each CCAN module is a subdirectory of ccan/, eg. ccan/foo.
Moving your code there and running "ccanlint" will give you feedback, in particular:
- An _info file contains metadata about the module.
- There should be a header of same name as the module, eg. ccan/foo/foo.h.
- Unit Tests go into test/.
- The module is built by compiling all the .c files.
- LICENSE should be a symlink or contain the license text, except for Public domain code.
Other files and subdirectories are ignored, but it's generally better to place other files into subdirectories, so the code stands out. See Golden Rule.