5 # Copyright (C) 1997 Kamil Iskra <iskra@student.uci.agh.edu.pl>
6 # Distributed under terms of GNU General Public License.
8 # This file is part of fd2inline package.
10 # It is used to produce <pInline/macros.h> file.
13 print "/* Automatically generated header! Do not edit! */"
15 print "#ifndef __INC_POS_PINLINE_MACROS_H"
16 print "#define __INC_POS_PINLINE_MACROS_H"
20 print "#define __INLINE_REG_A" i
" \"a" i
"\""
22 print "#define __INLINE_REG_D" i
" \"d" i
"\""
27 printf "#define __INLINE_FUN_%d(__base, __lib, __offs, __type, __name", i
29 printf ", __type%d, __name%d, __reg%d", j
, j
, j
32 printf "((__type (*)(void*"
34 printf ", __type%d", j
37 printf "*(ULONG*)(((char*)__lib)-__offs))"
41 printf ", __name%d", j
45 print "#endif /* !__INC_POS_PINLINE_MACROS_H */"