1 /*    SCCS Id: @(#)wbprotos.h   3.1    93/01/08
2 /* Copyright (c) Kenneth Lorber, Bethesda, Maryland, 1992, 1993.  */
3 /* NetHack may be freely redistributed.  See license for details. */
4 
5 #ifdef __STDC__
6 # define P(s) s
7 #else
8 # define P(s) ()
9 #endif
10 
11 
12 /* wb.c */
13 int main P(( int argc , char **argv ));
14 void CopyRight P(( void ));
15 void InitWB P(( int argc , struct WBStartup *wbs ));
16 void ReadConfig P(( void ));
17 void CloseDownWB P(( void ));
18 void SetupWB P(( void ));
19 void MapGadgets P(( int reason , int update ));
20 void ClearWindow P(( struct Window *win ));
21 void CalcLocs P(( int update ));
22 void text_requester P(( struct NewWindow *newwin , struct IntuiText *tlist ));
23 void getline P(( FILE *fp , long *offarr , int which , char *buf , int size ));
24 void help_requester P(( char *file ));
25 void do_closewindow P(( void ));
26 void do_menu P(( struct Menu *mptr, int mcode ));
27 void menu_discard P(( void ));
28 void menu_copyopt P(( void ));
29 void menu_rename P(( void ));
30 void run_game P(( GPTR gptr ));
31 void CleanUpLists P(( void ));
32 void CloseLibraries P(( void ));
33 void cleanup P(( int code ));
34 void SafeCloseWindow P(( struct Window *window ));
35 GPTR AllocGITEM P(( void ));
36 void FreeGITEM P(( GPTR gptr ));
37 void RemoveGITEM P(( GPTR ));
38 struct DiskObject *AllocDObj P(( char *str ));
39 void FreeDObj P(( struct DiskObject *doptr ));
40 void LoadIcons P(( void ));
41 void menu_scores P(( void ));
42 void menu_recover P(( void ));
43 void menu_config P(( void ));
44 void menu_editdef P(( int newgame ));
45 void do_gadgetup P(( struct IntuiMessage *imsg ));
46 void do_buttons P(( struct IntuiMessage *imsg ));
47 void do_gadgetdown P(( struct IntuiMessage *imsg ));
48 int ask_request P(( char *str ));
49 void setopt P(( GPTR ));
50 void menu_info P(( void ));
51 int IsEditEntry P(( char *, GPTR ));
52 void menu_comment P(( void ));
53 void text_request P(( char *str , char *file ));
54 void errmsg P(( int flash , char *str, ... ));
55 void SetGadgetUP P(( struct Gadget *gad ));
56 void SetGadgetDOWN P(( struct Gadget *gad ));
57 void UpdatePropGad P(( struct Window *win , struct Gadget *gad , long vis ,
58     long total , long top ));
59 void *xmalloc P(( unsigned nbytes ));
60 int DeleteGame P(( GPTR gptr ));
61 GPTR FindGame P(( char *name ));
62 void setoneopt P(( int idx , char *str ));
63 char *dirname P(( char *str ));
64 int StrRequest P(( char *prompt , char *buff , char *val ));
65 int LoadDefaults P(( char *player ));
66 void SaveDefaults P(( char *player ));
67 void CopyDefs2Gad P(( void ));
68 void CopyGad2Defs P(( void ));
69 void UpdateTypes P(( struct Window *cwin ));
70 void CheckOnly P(( struct Menu *menuptr , int menu , int itemno ));
71 int Ask P(( char *quest ));
72 char *GameName P(( GPTR gptr , char *file ));
73 GPTR GetWBIcon P(( BPTR lock , char *dir , struct FileInfoBlock *finfo ));
74 void SetBorder P(( struct Gadget *gd, int val ));
75 GPTR NeedGame P(( void ));
76 void ChgGameItems P(( struct Menu *menup , int enable ));
77 void ChgNewGameItems P(( struct Menu *menup , int enable ));
78 void ZapOptions P(( void ));
79 int EditOptions P(( GPTR gptr ));
80 struct Gadget *FindGadget P(( struct Window *window ,
81     struct NewWindow *newwindow , int id ));
82 void CopyOptions P(( GPTR gptr ));
83 void ParseOptionStr P(( char *str ));
84 void SetOptions P(( GPTR gptr ));
85 void PutOptions P(( GPTR gptr ));
86 char *ToolsEntry P(( GPTR gptr , char *name ));
87 void ReallocTools P(( GPTR gptr, int ));
88 void FreeTools P(( GPTR gptr ));
89 void DelToolLines P(( GPTR gptr , char *name ));
90 void AddToolLine P(( GPTR gptr , char *name , char *value ));
91 void SetToolLine P(( GPTR gptr , char *name , char *value ));
92 void WriteDObj P(( GPTR gptr , long lock ));
93 void UpdateGameIcon P(( GPTR gptr ));
94 char *Strdup P(( char *str ));
95 void Game2Defs P(( GPTR gptr ));
96 int CheckAndCopy P(( char *, char * ));
97 void ClearDelGames P(( void ));
98 int FindChecked P(( register struct Menu *menuptr, register int menu ));
99 void RPText P(( struct RastPort *rp, register char *s ));
100 #ifdef  INTUI_NEW_LOOK
101 struct Window *MyOpenWindow P(( struct ExtNewWindow *nw ));
102 #else
103 struct Window *MyOpenWindow P(( struct NewWindow *nw ));
104 #endif
105 void SetUpMenus( register struct Menu *mp, register struct Screen *scrn );
106 void UpdateCnfFile( void );
107 char *basename( char * );
108 void flushIDCMP( struct MsgPort *);
109 filecopy( char *, char * );
110 /*void error(const char *);*/
111 
112 /* wbgads.c */
113 struct OPTGAD * LayoutCompOpts( int maxx, int maxy, struct RastPort *rp,
114 				int *cury, int *gadid );
115 struct OPTGAD *LayoutBoolOpts( int maxx, int maxy, struct RastPort *rp,
116 			    int *cury, int *gadid );
117 void FreeBoolOpts( struct OPTGAD *boolgads );
118 void FreeCompOpts( struct OPTGAD *compgads );
119 
120 #undef P
121