On Friday, October 30, 2020 at 11:49:32 AM UTC-7,
[email protected] wrote:
In ORCA/C I get a compiler error when I try the following (which appears in Apple's and other's books)
[...]
But this works
LoadTools((char*)toolTable);
What is the error message? What version of Orca/C are you using?
Note that the function _is_ declared to be a char*, so the cast is necessary to avoid a warning. (It's a warning in C, but would be an error in C++.) Looking at the headers on the Opus ][ CD in ByteWorks:ORCA:Libraries:ORCACDefs:
types.h:
typedef char *ptr, *Ptr, *pointer, *Pointer;
locator.h:
extern pascal void LoadTools(Pointer) inline(0x0E01,dispatcher);
"Pointer" should really be (void*), but it's possible Orca/C was written before that became part of the ANSI C standard.
@awanderin: ToolLib is something else, you want the Tool Locator declarations.
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)