From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,700ffaaadd36430b X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,700ffaaadd36430b X-Google-Attributes: gid1164f8,public X-Google-Thread: 1014db,700ffaaadd36430b X-Google-Attributes: gid1014db,public From: vandenheuvel@eps.enet.dec.com (Hein RMS van den Heuvel) Subject: Re: Problem with RMS structures in DEC C? Date: 1995/07/05 Message-ID: <3telfi$kv3@nntpd.lkg.dec.com>#1/1 X-Deja-AN: 105617139 references: organization: Digital Equipment Corporation newsgroups: comp.os.vms,comp.sys.dec,comp.lang.c In article , bsspak@bath.ac.uk (P A Keller) writes... > >Many thanks to everyone who responded to my origial query. It seems that >the problem stems from the fact that the header files have a long history, >and haven't been updated properly. I wonder if anyone at DEC has actually >tried compiling the example in the DEC C documentation under DEC C? Haven't tried the examples from the DEC C but did make sure to try the Freeware source I submitted. One of those was an example from the RMS doc (show_roots) and there I used (void *). Unfortunatly the RMS doc was already printed by then and they never got fixed. IMHO RAB$L_RBF, UBF, and KBF should have all been declared void * as they are just that... pointers to something undefined, not char. For FAB$L_XAB and RAB$L_XAB and XAB$L_NXT I kinda like Jerry's idea of an empty XAB type to point to. That's rather readable. Personally, I go with Pat Rankin though and cast to (void *). Some day I'll check with buddy KC whether we can get this fixed properly in the C text Libraries (without breaking existing code). Hope this helps, +--------------------------------------+ Hein van den Heuvel, Digital. | All opinions expressed are mine, and | "Makers of VMS and other | may not reflect those of my employer | fine Operating Systems." +--------------------------------------+