2003-08-19 15:19:38 -04:00
|
|
|
#include "xt.h"
|
|
|
|
|
|
|
|
static Object P_Xt_Release_4_Or_Laterp () {
|
|
|
|
return True;
|
|
|
|
}
|
|
|
|
|
|
|
|
static Object P_Xt_Release_5_Or_Laterp () {
|
|
|
|
#ifdef XT_RELEASE_5_OR_LATER
|
|
|
|
return True;
|
|
|
|
#else
|
|
|
|
return False;
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
static Object P_Xt_Release_6_Or_Laterp () {
|
|
|
|
#ifdef XT_RELEASE_6_OR_LATER
|
|
|
|
return True;
|
|
|
|
#else
|
|
|
|
return False;
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
extern WidgetClass vendorShellWidgetClass;
|
|
|
|
|
|
|
|
/* The reference to vendorShellWidgetClass is required to make sure
|
|
|
|
* that the linker pulls the vendor shell definition from libXaw,
|
|
|
|
* not from libXt. It's passed to a dummy function to make sure that
|
|
|
|
* it isn't removed by the optimizer.
|
|
|
|
*/
|
|
|
|
|
|
|
|
static dummy (w) WidgetClass w; {
|
|
|
|
}
|
|
|
|
|
|
|
|
elk_init_xt_init () {
|
|
|
|
extern WidgetClass vendorShellWidgetClass;
|
|
|
|
|
|
|
|
dummy(vendorShellWidgetClass);
|
|
|
|
|
|
|
|
Define_Primitive (P_Xt_Release_4_Or_Laterp, "xt-release-4-or-later?",
|
2003-09-02 04:12:11 -04:00
|
|
|
0, 0, EVAL);
|
2003-08-19 15:19:38 -04:00
|
|
|
Define_Primitive (P_Xt_Release_5_Or_Laterp, "xt-release-5-or-later?",
|
2003-09-02 04:12:11 -04:00
|
|
|
0, 0, EVAL);
|
2003-08-19 15:19:38 -04:00
|
|
|
Define_Primitive (P_Xt_Release_6_Or_Laterp, "xt-release-6-or-later?",
|
2003-09-02 04:12:11 -04:00
|
|
|
0, 0, EVAL);
|
2003-08-19 15:19:38 -04:00
|
|
|
XtToolkitInitialize ();
|
2003-08-19 15:25:03 -04:00
|
|
|
P_Provide (Intern ("xt.so"));
|
2003-08-19 15:19:38 -04:00
|
|
|
P_Provide (Intern ("xt.o"));
|
|
|
|
}
|