Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.apple2.programmer > #5713
| From | awanderin <awanderin@gmail.com> |
|---|---|
| Newsgroups | comp.sys.apple2.programmer |
| Subject | Re: ORCA/C type compatibility errors |
| Date | 2020-10-31 02:33 -0600 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <yubk0v6iyl9.fsf@gmail.com> (permalink) |
| References | <c4aea8ad-bda9-49a9-8a61-ba82dc892ed5o@googlegroups.com> |
Paul MacMillan <paul.s.macmillan@gmail.com> writes:
> In ORCA/C I get a compiler error when I try the following (which appears in Apple's and other's books)
>
> int toolTable[] = {
> // <etc>
> };
> LoadTools(toolTable);
>
>
> But this works
>
> LoadTools((char*)toolTable);
>
> I didn't think an explicit cast would be needed -- it should make that cast for me right? It seems that the APW C compiler would allow that. At worst, a compiler warning instead of an error? (for example gcc flags it as a warning)
I tried this with Orca/C 2.0.1:
------------------------------
#include <toollib.h>
int toolTable[] = {
1,
4, 0x201
};
int main(int ac, char **av) {
LoadTools(toolTable);
return 0;
}
------------------------------
It compiles fine without errors. Even if I don't use the header
<toollib.h> it still compiles error-free.
What compiler error is it giving you?
--
--
Jerry awanderin at gmail dot com
Back to comp.sys.apple2.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
ORCA/C type compatibility errors Paul MacMillan <paul.s.macmillan@gmail.com> - 2020-10-30 11:49 -0700
Re: ORCA/C type compatibility errors awanderin <awanderin@gmail.com> - 2020-10-31 02:33 -0600
Re: ORCA/C type compatibility errors "thef...@gmail.com" <thefadden@gmail.com> - 2020-10-31 08:30 -0700
Re: ORCA/C type compatibility errors Paul MacMillan <paul.s.macmillan@gmail.com> - 2020-10-31 10:49 -0700
Re: ORCA/C type compatibility errors Paul MacMillan <paul.s.macmillan@gmail.com> - 2020-10-31 10:57 -0700
Re: ORCA/C type compatibility errors Paul MacMillan <paul.s.macmillan@gmail.com> - 2020-10-31 17:03 -0700
Re: ORCA/C type compatibility errors kelvin@pro-kegs.uucp (Kelvin Sherlock) - 2020-11-01 19:58 -0500
Re: ORCA/C type compatibility errors Paul MacMillan <paul.s.macmillan@gmail.com> - 2020-11-01 15:15 -0800
Re: ORCA/C type compatibility errors Chris Vavruska <vavruska@gmail.com> - 2020-11-06 12:00 -0800
csiph-web