mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-13 15:50:59 +00:00
add enum rules
This commit is contained in:
parent
b3bcc76db1
commit
ff57e94889
@ -45,8 +45,22 @@ Only use // style-comments on tempory comments that will probably be removed eve
|
||||
Add the emacs/vi comment to the bottom of every file.
|
||||
Use Doxygen for function args.
|
||||
Tabs not spaces.
|
||||
Use flags as bitwise when possible, use arrays if going beyond 32
|
||||
Typedef all enums using UPPER_CASE notation for the values
|
||||
*/
|
||||
|
||||
typedef enum {
|
||||
SOME_FLAG_X = (1 << 0),
|
||||
SOME_FLAG_Y = (1 << 1)
|
||||
} some_flag_type_t;
|
||||
|
||||
typedef enum {
|
||||
SOME_TYPE_X = 1,
|
||||
SOME_TYPE_Y,
|
||||
SOME_TYPE_Z
|
||||
} some_type_t;
|
||||
|
||||
|
||||
KS_DECLARE(ks_status_t) function_example(somedata_t **data, ks_pool_t *pool)
|
||||
{
|
||||
int var = 3, x = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user