home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
alib
/
d5xx
/
d524
/
snap.lha
/
Snap
/
fix_main
< prev
next >
Wrap
Text File
|
1991-08-05
|
967b
|
29 lines
This patch fixes the problem with
run >nil: snap
endcli
as described in the Changes file.
Please note that this file only describes the procedure for Aztec.
1. In _main.c at line 84, replace
if (_devtab[1].fd = Output())
_devtab[2].fd = Open("*", (long)MODE_OLDFILE);
with
if (_devtab[1].fd = (struct FileHandle *)Output()) {
struct CommandLineInterface *cli;
struct FileHandle *cos;
cli = (struct CommandLineInterface *)((long)pp->pr_CLI << 2);
cos = (struct FileHandle *)((long)pp->pr_COS << 2);
if (cli && cos && cli->cli_Background &&
pp->pr_ConsoleTask != (APTR)cos->fh_Type)
_devtab[2].fd = (struct FileHandle *)Open("NIL:", (long)MODE_OLDFILE);
else
_devtab[2].fd = (struct FileHandle *)Open("*", (long)MODE_OLDFILE);
}
2. Compile _main.c. You may have to add some casting in a couple of places.
3. Replace _main in c.lib. 'lb c.lib -r _main _main'