1# $Id: host.awk,v 1.2 2002-01-09 19:49:17 phil Exp $
2
3# convert host.h to host.sno
4# not in snobol4 because we want to use host.sno
5# from timing.sno, which is part of the regression tests
6# (but timing could be split off)
7
8BEGIN {
9	print "** THIS FILE IS MACHINE GENERATED DO NOT EDIT!!"
10	print "** created from", FILENAME
11	print "** by $Id: host.awk,v 1.2 2002-01-09 19:49:17 phil Exp $"
12	print "**"
13	print "** perhaps values should be in a FROZEN() TABLE()?"
14	print ""
15}
16
17# note comment start
18/\/\*/ {
19	incomment = 1
20}
21# in comment; copy line, unless it has @@@ in it
22incomment != 0 {
23	if ($0 !~ /@@@/) print "*", $0
24}
25# note end of comment (after start and copy)
26/\*\// {
27	incomment = 0
28}
29# work!
30/^#define/ {
31	printf "\t%s = %s\n", $2, $3
32}
33# copy blank lines
34/^$/ {
35	print
36}
37