Commit 13dafaf9 authored by rswindell's avatar rswindell
Browse files

Added support for including in C++ project (don't name-mangle).

Added uifcYesNoOpts definition for use with uifc_api.list() and simply Yes/No
options.
parent 385aaa8d
......@@ -406,6 +406,18 @@ typedef struct {
} uifcapi_t;
#ifdef __cplusplus
extern "C" {
#endif
/* Return value from uifc_api.list() when uifcYesNoOpts is used */
enum {
uifcYes=0,
uifcNo=1
};
extern char* uifcYesNoOpts[];
/****************************************************************************/
/* Initialization routines for each UIFC implementation. */
/* Returns 0 on success, non-zero on failure. */
......@@ -415,4 +427,8 @@ int uifcinix(uifcapi_t*); /* Standard I/O implementation */
int uifcini32(uifcapi_t*); /* conio/curses implementation */
/****************************************************************************/
#ifdef __cplusplus
}
#endif
#endif /* Don't add anything after this line! */
......@@ -94,6 +94,8 @@ static int save_menu_cur=-1;
static int save_menu_bar=-1;
static int save_menu_opts=-1;
char* uifcYesNoOpts[]={"Yes","No",NULL};
static void reset_dynamic(void) {
last_menu_cur=NULL;
last_menu_bar=NULL;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment