[kaffe] Please help me understanding this source....

Clemens Eisserer linuxhippy at web.de
Tue Aug 26 02:12:01 PDT 2003


Hi there!

I´m currently porting the native X-Layer of kaffe to CNI, but currently 
I´m having strange problems.
I dont understand the following source.
X is a very frequently used variable, but if I use it in my sourcecode 
(of course with toolkit.h included), gcc only says that its not defined.
This  part is out of kaffe/libraries/awt/X/toolkit.h.
What is Toolkit? Is at some XFree related stuff or is it related to the 
Toolkit-class?
Why is it #ifdef?

Please help, my C is (as my Java) terrible ;-)

lg Clemens

#ifdef MAIN

Toolkit   XTk;
Toolkit   *X = &XTk;

.......
.......

#else

extern Toolkit* X;

........
........

#endif /* MAIN */





More information about the kaffe mailing list