File: context.c

package info (click to toggle)
libconvert-binary-c-perl 0.74-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 9,100 kB
  • ctags: 21,416
  • sloc: ansic: 63,666; perl: 18,582; yacc: 2,143; makefile: 44
file content (38 lines) | stat: -rw-r--r-- 481 bytes parent folder | download | duplicates (7)
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
enum bar
{
  bar = 1
};

typedef int foo;

struct foo
{
  int foo : bar;
  int bar;
  int def;
};

// TODO: make parser accept commented lines

static int xyz(int foo)
{
  int bar = 0;
  // foo = bar + 1;
  // return foo + bar;
}

static foo abc(foo foo)
{
  // return foo + bar;
}

typedef foo def;

int main(void)
{
  foo foo = abc(42);
  int abc = bar;
  // struct foo bar = { bar: 0, foo: foo, def: abc };
  // foo += bar.def + bar.foo;
  // return foo + bar.bar + xyz(foo);
}