/* use this for commands that take no arguments */
{
/* currently a stub */
+ printf("Button %s pressed\n", XtName(w));
}
static struct cmd_t commands[] = {
#define MAXWIDTH 640
#define TEXTHEIGHT 200
-int main(int argc, char **argv)
+static void instantiate_main(int argc, char **argv)
{
struct cmd_t *cp;
XtAppMainLoop(app_context);
/* loop may be interrupted */
XtDestroyApplicationContext(app_context);
+}
+
+int main(int argc, char **argv)
+{
+ instantiate_main(argc, argv);
exit(0);
}