File: create_constants_c.com

package info (click to toggle)
adasockets 1.8.6-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 2,336 kB
  • ctags: 93
  • sloc: sh: 8,947; ada: 1,676; ansic: 357; makefile: 222
file content (28 lines) | stat: -rw-r--r-- 648 bytes parent folder | download | duplicates (11)
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
$!
$! $Revision$
$!
$!
$! This script completes the constants.c_pre file with the
$! the list of defines needed to build the adasockets constant
$! package.
$!
$! This file is part of Adasockets for OpenVMS.
$!
$    OPEN/READ in CONSTANTS.LIST
$    COPY CONSTANTS.C_PRE CONSTANTS.C
$    OPEN/APPEND out CONSTANTS.C
$!
$    Loop:
$       READ/END_OF_FILE=End_Loop in line
$       WRITE out "#ifdef ''line'"
$       WRITE out "  output (""''line'"", ''line');"
$       WRITE out "#else"
$       WRITE out "  output (""''line'"", -1);"
$       WRITE out "#endif"
$    GOTO Loop
$!
$ End_Loop:
$    WRITE out "}"
$    CLOSE in
$    CLOSE out
$    EXIT