File: definc

package info (click to toggle)
tcng 10b-2
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 3,636 kB
  • ctags: 2,515
  • sloc: ansic: 19,040; pascal: 4,640; yacc: 2,619; sh: 1,914; perl: 1,546; lex: 772; makefile: 756
file content (22 lines) | stat: -rw-r--r-- 556 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# no #include needed to get fields --------------------------------------------
tcc -c -Wnounused
$foo = ip_hdr;
EOF
# tcc -n disables default.tc inclusion ----------------------------------------
tcc -c -n 2>&1
$foo = ip_hdr;
EOF
ERROR
<stdin>:1: syntax error near "ip_hdr"
# of course, we can #include fields.tc explicitly (-n) ------------------------
tcc -c -n -Wnounused
#include "fields.tc"

$foo = ip_hdr;
EOF
# of course, we can #include fields.tc explicitly (no -n) ---------------------
tcc -c -Wnounused
#include "fields.tc"

$foo = ip_hdr;
EOF