File: ports

package info (click to toggle)
tcng 10b-4
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 3,644 kB
  • sloc: ansic: 19,040; pascal: 4,640; yacc: 2,619; sh: 1,914; perl: 1,546; lex: 772; makefile: 751
file content (16 lines) | stat: -rw-r--r-- 389 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# test availability of some common port names ---------------------------------
tcc -c -Wnounused
#include "ports.tc"

$a = PORT_BOOTPS+0;
$b = PORT_FINGER+0;
$c = PORT_X11+0;
EOF
# verify that above test could fail -------------------------------------------
tcc -c -Wnounused 2>&1
#include "ports.tc"

$a = PORT_DOESNOTEXIST+0;
EOF
ERROR
<stdin>:3: syntax error near "PORT_DOESNOTEXIST"