Linked by Quentin Hartman on Mon 14th Jul 2008 08:46 UTC, submitted by makkus
Permalink for comment 322973
To read all comments associated with this story, please click here.
To read all comments associated with this story, please click here.





Member since:
2006-02-01
> Then again, the C language doesn't help
> them at all with making these private...
I think they mean:
now
gtk_foo.h
---------
struct gtk_foo {
int something;
};
struct gtk_foo *gtk_foo_create();
int gtk_foo_get_something(struct gtk_foo *);
then
gtk_foo.h
---------
struct gtk_foo;
struct gtk_foo *gtk_foo_create();
int gtk_foo_get_something(struct gtk_foo *);
gtk_foo.c
---------
struct gtk_foo {
int something;
};
so in pratice this is a way to make field structures private to other files...
Edited 2008-07-15 12:23 UTC