Debian Codegraph @

CONVENTIONS

raw
1 Two spaces to a tab.
2
3 I put braces on the same line as their 'if', but not on the same line as
4 function definitions or structs/enums.
5
6 Functions which are not for use outside of a module are named
7 starting with underscores. While it is safe to say that the definition
8
9 void _func()
10
11 should actually be
12
13 static void _func()
14
15 the reverse is not necessarily true - a function could be destined to
16 be called from outside this module via a dispatch table. For example,
17 the function
18
19 static int cyrussasl_get_username(lua_State *l)
20
21 is for direct consumption by Lua, but via a dispatch table. (It is not
22 for consumption by other C methods directly, which is why I have
23 attributed it static.)
24
25