| 1 |
$! |
| 2 |
$! $Revision$ |
| 3 |
$! |
| 4 |
$! |
| 5 |
$! This script completes the constants.c_pre file with the |
| 6 |
$! the list of defines needed to build the adasockets constant |
| 7 |
$! package. |
| 8 |
$! |
| 9 |
$! This file is part of Adasockets for OpenVMS. |
| 10 |
$! |
| 11 |
$ OPEN/READ in CONSTANTS.LIST |
| 12 |
$ COPY CONSTANTS.C_PRE CONSTANTS.C |
| 13 |
$ OPEN/APPEND out CONSTANTS.C |
| 14 |
$! |
| 15 |
$ Loop: |
| 16 |
$ READ/END_OF_FILE=End_Loop in line |
| 17 |
$ WRITE out "#ifdef ''line'" |
| 18 |
$ WRITE out " output (""''line'"", ''line');" |
| 19 |
$ WRITE out "#else" |
| 20 |
$ WRITE out " output (""''line'"", -1);" |
| 21 |
$ WRITE out "#endif" |
| 22 |
$ GOTO Loop |
| 23 |
$! |
| 24 |
$ End_Loop: |
| 25 |
$ WRITE out "}" |
| 26 |
$ CLOSE in |
| 27 |
$ CLOSE out |
| 28 |
$ EXIT |