-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve code structure #3
Comments
What do you think of this structure? + | - README.md | - Makefile | - configure | + src | | + header - a separate folder for the headers. | | | - fuptcha.h | | | - util.h | | | - cli.h | | - main.c - the main function resides here. | | - fuptcha.c - the fuptcha functions implementation. | | - util.c - utilitary things like die, help_msg, sorting ... | | - cli.c - comand line interface parser implementation. For the coding style, we can use the Mozilla style clang format as the default. |
We already decide to use Mozilla style for this project. |
Pass "EXIT_STATUS_CODE" as arg can make die macro more flexible. Line 31 in 79efa6c
|
Coding standardsFor functions and vars, will we use the camel case or snake case? A prefix to simulate a "namespace", such as glib. Example: int
fup_img_init(struct WORD* w)
{ ... } int
fupImgInit(struct WORD* w)
{ ... } In structs, the first character always being uppercase? |
snake case |
Python Extension Some piece of the code will change in python extension development process. We set this branch as main developer priority. Bugs, good practices, vulnerabilities will be commit in the master branch. |
No description provided.
The text was updated successfully, but these errors were encountered: