peirce@outpost.UUCP (Michael Peirce) (01/27/91)
In article <0B010004.2d5jqc@outpost.UUCP>, peirce@outpost.UUCP (Michael Peirce) writes: > > > In article <1051@lclark.UUCP>, dan@lclark.UUCP (Dan Revel) writes: > > You can put something like the following where it can be called once > every time through your event loop. > > // check for GetRequest completion > > if (getRequestATPPB.ioResult == 1) > { > HandleTheRequest; > }; Sorry, got that wardsback, it should be if (getRequestATPPB.ioResult != 1) { HandleTheRequest; }; -- michael -- Michael Peirce -- outpost!peirce@claris.com -- Peirce Software -- Suite 301, 719 Hibiscus Place -- Macintosh Programming -- San Jose, California 95117 -- & Consulting -- (408) 244-6554, AppleLink: PEIRCE
urlichs@smurf.sub.org (Matthias Urlichs) (01/28/91)
In comp.sys.mac.programmer, article <1051@lclark.UUCP>,
dan@lclark.UUCP (Dan Revel) writes:
<
+ pascal long GetParmBlockPtr(void)
+ = 0x2E88; /* MOVE.L A0,(A7) */
+
- pascal void DoTalkCompletion(pb)
- MyATPParamBlock *pb;
- {
+ pascal void DoTalkCompletion(void)
+ {
+ MyATPParamBlock *pb = (MyATPParamBlock *) GetParmBlockPtr();
< long oldA5;
<
< oldA5 = SetA5((*pb).myA5);
< SetCompletionFlag();
< SetA5(oldA5);
< }
That should do it...
(Delete the lines marked with "-" and insert the lines marked with "+".)
--
Matthias Urlichs -- urlichs@smurf.sub.org -- urlichs@smurf.ira.uka.de /(o\
Humboldtstrasse 7 - 7500 Karlsruhe 1 - FRG -- +49+721+621127(0700-2330) \o)/