File: nested.tc

package info (click to toggle)
tcng 10b-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 3,632 kB
  • ctags: 2,515
  • sloc: ansic: 19,038; pascal: 4,640; yacc: 2,619; sh: 1,908; perl: 1,546; lex: 772; makefile: 755
file content (14 lines) | stat: -rw-r--r-- 196 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*
 * Nested headers, for tcng-2u
 */


field h1_len = raw[0];
field h2 = raw[h1_len << 2];
field h2_len = h2[2];
field h3 = h2[h2_len << 3];
field h3_x = h3[3];

prio {
    class if h3_x == 5;
}