forked from AreaScout/vice
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindent-test.c
More file actions
22 lines (16 loc) · 843 Bytes
/
indent-test.c
File metadata and controls
22 lines (16 loc) · 843 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
indent options for VICE style:
-gnu start with GNU defaults
-i4 indent 4 spaces
-nut Use spaces instead of tabs.
-cli4 indent case label 4 spaces
-bli0 no extra indent for braces
-br braces in same line as if
-ce cuddling else
-npsl function name on same line as function type
-npcs Do not put space after the function in function calls.
-bad blank line after a block of declarations and after each function body
*/
int funcA(int a){if(a==0){b=1;}else{b=0;}return b;}int funcB(int a){switch(a){case 0:b=0;break;case 1:b=1;break;}return b;}
void funcC(int a){int b;while(a<b){b++;}do{b++;}while(a<=b);}void funcD(int a){int b;for(a=0;a<10;a++){b++;}}
int func(int a,int b,int c){funcD(funcA(a+b));funcB(b);}