C: File-scope visibility of identifiers
Posted: Fri Nov 21, 2003 11:39 am
Help out a C++ vet who's out of his fishing grounds...
Let's say I write a "C" header file, X.h. This header in turn includes another, Y.h.
I want to avoid the stuff from Y.h "leaking out" of X.h - if someone includes X.h, he should only see the identifiers from X.h, not those from Y.h.
I know the answer is probably trivial, but my brain stops dead after spitting out "anonymous namespace" - which, of course, is C++, not C...
Let's say I write a "C" header file, X.h. This header in turn includes another, Y.h.
I want to avoid the stuff from Y.h "leaking out" of X.h - if someone includes X.h, he should only see the identifiers from X.h, not those from Y.h.
I know the answer is probably trivial, but my brain stops dead after spitting out "anonymous namespace" - which, of course, is C++, not C...