improved type handling and cast generation
[ia32rtools.git] / run_mkimpinc.sh
CommitLineData
368deb23 1#!/bin/sh
2set -e
3
4echo -n > $3
5
6cat $1 | \
7while read a; do
8 a_no_at=`echo $a | awk -F@ '{printf $1}'`
232aca37 9 #echo "$a_no_at equ _$a" >> $3
10 #echo "EXTRN _$a:PROC" >> $3
11 echo "EXTRN $a:PROC" >> $3
368deb23 12done
13
14echo "; '_' funcs" >> $3
15
16cat $2 | \
17while read a; do
0c5547d1 18 case $a in
19 \#*)
20 continue
21 ;;
22 \;*)
23 continue
24 ;;
25 "")
26 continue
27 ;;
28 *)
29 ;;
30 esac
31
368deb23 32 echo "EXTRN $a:PROC" >> $3
33done