-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhost.awk
More file actions
36 lines (33 loc) · 689 Bytes
/
Copy pathhost.awk
File metadata and controls
36 lines (33 loc) · 689 Bytes
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
29
30
31
32
33
34
35
36
# $Id$
# convert host.h to host.sno
# not in snobol4 because we want to use host.sno
# from timing.sno, which is part of the regression tests
# (but timing could be split off)
BEGIN {
print "** THIS FILE IS MACHINE GENERATED DO NOT EDIT!!"
print "** created from", FILENAME
print "** by $Id$"
print "**"
print "** perhaps values should be in a FROZEN() TABLE()?"
print ""
}
# note comment start
/\/\*/ {
incomment = 1
}
# in comment; copy line, unless it has @@@ in it
incomment != 0 {
if ($0 !~ /@@@/) print "*", $0
}
# note end of comment (after start and copy)
/\*\// {
incomment = 0
}
# work!
/^#define/ {
printf "\t%s = %s\n", $2, $3
}
# copy blank lines
/^$/ {
print
}