Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cmcl2!rutgers!psuvax1!vu-vlsi!cbmvax!grr From: grr@cbmvax.UUCP (George Robbins) Newsgroups: comp.lang.c,comp.sys.atari.st,comp.sys.amiga Subject: Re: 32bit = 16bit x 16bit Message-ID: <2565@cbmvax.UUCP> Date: Wed, 21-Oct-87 14:27:44 EDT Article-I.D.: cbmvax.2565 Posted: Wed Oct 21 14:27:44 1987 Date-Received: Sat, 24-Oct-87 09:27:48 EDT References: <1912@gryphon.CTS.COM> <3294@sol.ARPA> <2545@cbmvax.UUCP> <4261@well.UUCP> Reply-To: grr@cbmvax.UUCP (George Robbins) Organization: Commodore Technology, West Chester, PA Lines: 33 Xref: mnetor comp.lang.c:5067 comp.sys.atari.st:5836 comp.sys.amiga:9738 In article <4261@well.UUCP> ewhac@well.UUCP (Leo 'Bols Ewhac' Schwab) writes: > In article <2545@cbmvax.UUCP> andy@cbmvax.UUCP (Andy Finkel) writes: > >We at the Banzai Institute always use typedefs :-) > >To maintain readability, however, the names were a bit a bit boring, ie > >LONG, ULONG, WORD, UWORD, BYTE, UBYTE, and VOID. > > ^^^^ > I think your VOID definition is broken. In the file > exec/interrupts.h is the structure: > > Then, later on, when I try and do this: ... > foo () > { > extern long bar(); > interrupt.is_Code = (VOID) bar; > } > > ...my compiler throws up. Something about an invalid use of the > 'void' declaration. I have Manx 3.4b. Wait a minute - there are two void concepts: 1) routines that don't return anything, 2) pointers to things of indeterminate nature. In you expample, it looks like you are dealing with a long, rather than a pointer - try (yeech) = (VOID *) bar; or why not simply declare bar() as VOID *bar(); if this is the only way you are using it? Me, I'm just a hardware guy this incarnation... -- George Robbins - now working for, uucp: {ihnp4|rutgers|allegra}!cbmvax!grr but no way officially representing arpa: out to lunch... Commodore, Engineering Department fone: 215-431-9255 (only by moonlite)