> > There shouldn't be any such code in LibGGI.
> I know one:
> ggi_visual_t is internally ggi_visual *, but for applications it's a
> pointer to a dummy struct. IIRC, ANSI doesn't guarantee that pointers
> for different types have the same size, only that void * can represent
> all pointer types.
Ouch. You are right ... Hmm - I really hope noone still has such a silly
machine nowadays - at least noone who has a system that has heard enough
of Posix to compile LibGGI anyway.
Yes - I was a bit astonished, as I thought it was a void * to apps, but
I looked it up and remembered why we did it. It's a tradeoff between getting
some typechecking (when it points to the dummy struct you will get warnings,
if you assign wrong types to it, if it's void * you won't) and being clean
with respect to the point you mention. We should at least document that.
O.K. - done - will commit.
> Also identifiers beginning with _ are reserved for the ANSI C
> compiler and library. Applications and other libraries shouldn't touch
> them at all.
Basically yes. However to my knowledge, we only use them with _ggi or in
static cases. Shouldn't do much harm.
CU, Andy
--
= Andreas Beck | Email : <[EMAIL PROTECTED]> =
y