/* * README: This file is appended to at file generation time. * Edits can be made throughout the file */ /* * Generated by the ICS Builder Xcessory (BX). * * Database Xcessory 1.1 BETA * Code Generator Xcessory 2.0 (09/09/96) * */ #include /* * Standard includes for builtins. */ #include #include #include #include #include "yesno.h" /* * Macros to make code look nicer between ANSI and K&R. */ #ifndef ARGLIST #if (NeedFunctionPrototypes == 0) #define PROTOTYPE(p) () #define ARGLIST(p) p #define ARG(a, b) a b; #define GRA(a, b) a b; #define UARG(a, b) a b; #define GRAU(a, b) a b; #else #define PROTOTYPE(p) p #define ARGLIST(p) ( #define ARG(a, b) a b, #define GRA(a, b) a b) #ifdef __cplusplus #define UARG(a, b) a, #define GRAU(a, b) a) #else #define UARG(a, b) a b, #define GRAU(a, b) a b) #endif #endif #endif Widget BxFindTopShell PROTOTYPE((Widget)); WidgetList BxWidgetIdsFromNames PROTOTYPE((Widget, char*, char*)); void testMe(w, client_data, call_data) Widget w; XtPointer client_data; XtPointer call_data; { XiDBQueryCallbackStruct *acs=(XiDBQueryCallbackStruct*)call_data; int i; acs -> ok = 0; i = YesNoBox("Do you want to erase everything?", "", "No, that would be wrong", NULL, w); printf("YesNoBox returns %d\n", i); if(i == YesNoYes) { i=YesNoBox("Are you really sure you want to erase everything?", "Yes, erase it all", "Don't erase", NULL, w); printf("YesNoBox returns %d\n", i); if (i == YesNoYes){ acs -> ok = 1; } } }