1 BEGIN { intr=
0; wantcall=
0; calls=
""; }
3 $
1 ==
"/*" && $
2 ==
"INTR" && $
3 ==
"*/" { intr=
1; }
5 NF ==
1 && $
1 ==
"routine" { wantcall=
1; next; }
7 intr
!= 0 && wantcall ==
0 && NF >=
2 && $
1 ==
"routine" \
9 if (substr($
2, length($
2)-2, 1) ==
"(")
10 calls = calls
" " substr($
2, 0, length($
2)-1);
11 else calls = calls
" " $
2;
15 wantcall
!= 0 && NF >=
1 \
17 if (substr($
1, length($
1)-2, 1) ==
"(")
18 calls = calls
" " substr($
1, 0, length($
1)-1);
19 else calls = calls
" " $
1;
25 END { print varname
" :=" calls
; }