home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga ISO Collection
/
AmigaUtilCD2.iso
/
Programming
/
GCC
/
GERLIB_DEV08B.LHA
/
gerlib
/
amiga_lib
/
support
/
genglue.p
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
Text File
|
1993-12-12
|
374 b
|
22 lines
$state = 0;
next_line: while (<STDIN>) {
if (/.even/) {
close (OUTY) if $state == 2;
$state = 1;
}
elsif (/.globl _(\w+)/) {
$state = 2;
if (! open (OUTY, ">$1.s")) {
print STDERR "Can't open $1.s, $!\n";
$state = 0;
next next_line;
}
print OUTY ".text; .even; $_\n";
}
elsif ($state == 2) {
print OUTY "$_";
}
}