summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.75.0/tests/expected/c/02410-ifdef-indent.c
blob: e71d8cf38045c7e0c47cbfafd37900de4cc0e89b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifdef foo
 #include <foo1.h>
#else
 #include <foo2.h>
#endif

#ifdef foo
/* Commentary for func1() */
void func1();

/* Commentary for func2() */
void func2();
#endif

int
show_interrupts(struct seq_file *p, void *v)
{
    #ifndef CONFIG_SMP
    a++;
    #else
    for (b = 0; b < 9; b++)
	if (b & 1)
	    k++;
    #endif

    if (v)
    {
	bar(v);
	#if DEBUG == 1
	printf("yup\n");
	#endif
    }
}

void foo()
{
    int i=0;
    #if DEBUG == 1
    i--;
    #endif
    i++;
}