home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Elysian Archive
/
AmigaElysianArchive.iso
/
wp_dtp
/
xdme1820.lha
/
XDME
/
Macros
/
C
/
addinc.xdme
next >
Wrap
Text File
|
1992-11-18
|
619b
|
31 lines
#
# Add another include file.
#
# $VER: addinc V1.00 (18.11.1992)
#
# remember where we were
push pos
# goto top
top
# search Include-statement. This is now too reliable
find ` Includes'
# leave headline
down down
# look for the first line that doesn't have a #include in it
first while c="#" down
# insert a new line and text
insline `#include '
# ask for the name
# look at the first char
# if it's a '"', add a '"' at the end, too.
# else add <>
# goto last position and go down one line, because we have inserted one
escimm (`) wleft ifelse c=34 `last (")' `if c<>"<" `(<)' last (>)' pop auto down