New APIs to allow conversion of times in arbitrary zones

Garrett Wollman wollman at csail.mit.edu
Tue May 26 19:02:58 UTC 2009


<<On Tue, 26 May 2009 11:00:03 -0700, Guy Harris <guy at alum.mit.edu> said:

> zoneinfo_t is implemented, internally, as a pointer to a "struct  
> state", but it's opaque to the callers.

There is no such thing as an "opaque typedef".  Using typedefs like
this creates #include spaghetti, obscures dependencies, and ultimately
reduces type safety.  The only type-safe opaque types C has are
"struct <foo> *" and "union <foo> *".

-GAWollman




More information about the tz mailing list