home *** CD-ROM | disk | FTP | other *** search
Text File | 1988-03-04 | 2.0 KB | 85 lines | [TEXT/TPAS] |
- UNIT HyperXCmd(-256);
-
- {$U-} { don't let Turbo give us anything we don't want}
-
- { HyperXCmd.p Definition file for HyperCard XCMDs and XFNCs in Pascal.
- By Dan Winkler. DO NOT call the author! Contact Apple Developer
- Support on AppleLink "MacDst" or on MCI "MacTech".
-
- ⌐Apple Computer, Inc. 1987
- All Rights Reserved.
-
- Modified for Turbo Pascal by Stephen Kurtzman
- Install this unit into the Turbo Pascal compiler using
- UNITMOVER
- }
-
- INTERFACE
-
- USES MemTypes; { necessary for Turbo interface }
-
- CONST
-
- { result codes }
- xresSucc = 0;
- xresFail = 1;
- xresNotImp = 2;
-
- { request codes }
- xreqSendCardMessage = 1;
- xreqEvalExpr = 2;
- xreqStringLength = 3;
- xreqStringMatch = 4;
- xreqSendHCMessage = 5;
- xreqZeroBytes = 6;
- xreqPasToZero = 7;
- xreqZeroToPas = 8;
- xreqStrToLong = 9;
- xreqStrToNum = 10;
- xreqStrToBool = 11;
- xreqStrToExt = 12;
- xreqLongToStr = 13;
- xreqNumToStr = 14;
- xreqNumToHex = 15;
- xreqBoolToStr = 16;
- xreqExtToStr = 17;
- xreqGetGlobal = 18;
- xreqSetGlobal = 19;
- xreqGetFieldByName = 20;
- xreqGetFieldByNum = 21;
- xreqGetFieldByID = 22;
- xreqSetFieldByName = 23;
- xreqSetFieldByNum = 24;
- xreqSetFieldByID = 25;
- xreqStringEqual = 26;
- xreqReturnToPas = 27;
- xreqScanToReturn = 28;
- xreqScanToZero = 39; { was suppose to be 29. Oops! }
-
- TYPE
-
- XCmdPtr = ^XCmdBlock;
- XCmdBlock =
- RECORD
- paramCount: INTEGER;
- params: ARRAY[1..16] OF Handle;
- returnValue: Handle;
- passFlag: BOOLEAN;
-
- entryPoint: ProcPtr; { to call back to HyperCard }
- request: INTEGER;
- result: INTEGER;
- inArgs: ARRAY[1..8] OF LongInt;
- outArgs: ARRAY[1..4] OF LongInt;
- END;
-
- { include the types used by the interface routines in Xcmdglue.inc }
-
- Str255 = string[255];
- Str31 = string[31];
-
-
- IMPLEMENTATION { necessary for Turbo interface }
-
- END.
-