Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!newstop!sunaus.oz!sunchat!markd From: markd@Aus.Sun.COM Newsgroups: comp.lang.c Subject: Re: A dilemma with handles solved thanks Message-ID: Date: 5 Oct 90 10:17:46 GMT References: <4@tdatirv.UUCP> Sender: news@sunaus.oz Distribution: comp Organization: Sun Microsystems - Australia Lines: 29 sarima@tdatirv.UUCP (Stanley Friesen) (and others) writes: >In article markd@iti.org (Mark Delany) writes: >> >>... >>In other words, because the real definitions of "handle" is full of >>system dependencies, I want to define a *dummy* "handle" for the >>purposes of the user's view of the library - especially considering >>prototypes. >>... >In the public header file: > typedef struct str_tag_name handle_t; > handle_t *xxopen(); > .. >The advantage is that no type punning is involved - everything is declared >properly according to its real type, but the implementation is still hidden. Thank-you Stanley and others - persactly what I was after. -- ------------ ----------------- --------------------- Mark Delany markd@Aus.Sun.COM ...!sun!sunchat!markd ------------ ----------------- ---------------------