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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4deb6c62a5e19f2 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-07-29 18:05:57 PST Path: archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!isdnet!news.internetia.pl!news.tpi.pl!not-for-mail From: taw@pb220.legnica.sdi.tpnet.pl (Tomasz Wegrzanowski) Newsgroups: comp.lang.ada Subject: Re: type Foo_ptr in new void*; Date: 30 Jul 2001 01:05:55 GMT Organization: tp.internet - http://www.tpi.pl Message-ID: <9k2btj$5hj$1@news.tpi.pl> References: <9k03jc$2me$2@news.tpi.pl> <9k0j60$n4t$1@news.tpi.pl> <3B63F48A.2E2642C6@earthlink.net> Reply-To: taw@users.sourceforge.net NNTP-Posting-Host: pb220.legnica.sdi.tpnet.pl X-Trace: news.tpi.pl 996455155 5683 213.25.230.220 (30 Jul 2001 01:05:55 GMT) X-Complaints-To: usenet@tpi.pl NNTP-Posting-Date: 30 Jul 2001 01:05:55 GMT User-Agent: slrn/0.9.7.1 (Linux) Xref: archiver1.google.com comp.lang.ada:10700 Date: 2001-07-30T01:05:55+00:00 List-Id: In article <3B63F48A.2E2642C6@earthlink.net>, Marc A. Criley wrote: >> I can't do this. >> Foo is supposed to be used only as a pointer. >> I don't know if newer version of library will use the same Foo. > > In tmoran's post, wherever you saw "in out Foo", change it to "in > Foo_Pointer". > > In order to declare a pointer to a type, you have to have that type's > definition. Even C requires that for "foo*" there be some declaration > of "foo". Not true. You can use `struct Foo *' without declaring `struct Foo'. You can `typedef struct Foo Foo_t;' or `typedef struct Foo *Foo_p;' and use Foo_t and Foo_p w/o declaring `struct Foo'.