* HACKING, TODO: small updates
This commit is contained in:
13
HACKING
13
HACKING
@ -16,7 +16,7 @@
|
|||||||
on the same line as the statement, except for functions. Tabs/spaces
|
on the same line as the statement, except for functions. Tabs/spaces
|
||||||
have width 8.
|
have width 8.
|
||||||
|
|
||||||
2. lines must not exceed 80 characters
|
2. lines must not exceed 80 characters (C) or 100 characters (C++)
|
||||||
|
|
||||||
3. functions must not exceed 50 lines (there may be rare exceptions), and
|
3. functions must not exceed 50 lines (there may be rare exceptions), and
|
||||||
30 lines is already pretty long.
|
30 lines is already pretty long.
|
||||||
@ -34,10 +34,17 @@
|
|||||||
declares a function of 'mu_foo_bar (int a);', mu-foo.c implements this.
|
declares a function of 'mu_foo_bar (int a);', mu-foo.c implements this.
|
||||||
|
|
||||||
8. non-global functions *don't* have the module prefix, and are declared
|
8. non-global functions *don't* have the module prefix, and are declared
|
||||||
static. Their names may start with '_'
|
static.'
|
||||||
|
|
||||||
9. functions have their return type on a separate line before the function
|
9. functions have their return type on a separate line before the function
|
||||||
name
|
name, so:
|
||||||
|
|
||||||
|
int
|
||||||
|
foo (const char* bar)
|
||||||
|
{
|
||||||
|
....
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
10. in C code, variable-declarations are at the beginning of a block; in
|
10. in C code, variable-declarations are at the beginning of a block; in
|
||||||
principle, C++ follows that same guideline, unless for heavy yet
|
principle, C++ follows that same guideline, unless for heavy yet
|
||||||
|
|||||||
3
TODO
3
TODO
@ -32,11 +32,12 @@
|
|||||||
- [ ] detect mail threads
|
- [ ] detect mail threads
|
||||||
- [ ] --mode for mkdir
|
- [ ] --mode for mkdir
|
||||||
- [ ] signal handler
|
- [ ] signal handler
|
||||||
|
- [ ] clean up mu-msg-field
|
||||||
- [ ] mu help <cmd>
|
- [ ] mu help <cmd>
|
||||||
- [ ] add move-mail support
|
- [ ] add move-mail support
|
||||||
- [ ] add symlink-following option for index
|
- [ ] add symlink-following option for index
|
||||||
- [ ] test suite
|
- [ ] test suite
|
||||||
- [ ] moving msg field formatting to MuMsgField
|
- [ ] moving msg field formatting to MuMsgField (?)
|
||||||
- [ ] bookmarks
|
- [ ] bookmarks
|
||||||
- [ ] mu-setup (?)
|
- [ ] mu-setup (?)
|
||||||
- [ ] config system (config file) (?)
|
- [ ] config system (config file) (?)
|
||||||
|
|||||||
Reference in New Issue
Block a user