From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,2adc22b0e703907e X-Google-Attributes: gid103376,public From: "Matthew Heaney" Subject: Re: Representation question (void *) Date: 1999/11/17 Message-ID: <3832e3e1_2@news1.prserv.net>#1/1 X-Deja-AN: 549773207 Content-transfer-encoding: 7bit References: <7E47A2C771ADD211AD3C00A0C960172D01269B57@ISCPORTSEX> Content-Type: text/plain; charset="US-ASCII" X-Complaints-To: abuse@prserv.net X-Trace: 17 Nov 1999 17:20:33 GMT, 32.101.8.12 Organization: Global Network Services - Remote Access Mail & News Services Mime-version: 1.0 Newsgroups: comp.lang.ada Date: 1999-11-17T00:00:00+00:00 List-Id: In article <7E47A2C771ADD211AD3C00A0C960172D01269B57@ISCPORTSEX> , "Lipscomb, Kevin" wrote: > How would one represent the following C declaration in Ada 95? > > void *data; > > Is this just a placeholder for a pointer that should never be referenced? Type void_ptr needs to be in Interfaces.C, but it isn't right now. In the meantime, just use type System.Address. Data : Address; If you know the type of the data you're pointing to, then you can declare an actual access type, and use a convention pragma: type whatever is ... type Whatever_Ptr is access all Whatever; pragma Convention (C, Whatever_Ptr); -- Evolution is "only" a theory? "Creationism is not *even* a theory, because its proponents have decided in advance that no amount of evidence will change their beliefs." Steve Walsh and Thomas Demere, "Facts, Faith, and Fairness"