home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
348.lha
/
chatterbox_v1.0
/
sources
/
menus.c
< prev
next >
Wrap
C/C++ Source or Header
|
1990-02-14
|
542b
|
31 lines
extern struct Menu XMenu1;
extern int KeepGoing;
ProcessMenu(menunumber)
int menunumber;
{
struct MenuItem *ItemAddress();
while (menunumber != MENUNULL && KeepGoing)
{
/* printf("menu number %d, item number %d, subitem %d\n",MENUNUM(menunumber),ITEMNUM(menunumber),SUBNUM(menunumber)); */
assert(MENUNUM(menunumber) == 0);
switch (ITEMNUM(menunumber))
{
case 2:
KeepGoing = NO;
break;
default:
blather(rando(N_GAB_TYPES));
break;
}
menunumber = ItemAddress(&XMenu1, menunumber)->NextSelect;
}
}