Source:SLASH'EM 0.0.7E7F2/func tab.h

From NetHackWiki
Revision as of 17:50, 7 March 2008 by Kernigh bot (talk | contribs) (SLASH'EM 0.0.7E7F2/func tab.h moved to Source:SLASH'EM 0.0.7E7F2/func tab.h: Robot: moved page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Below is the full text to func_tab.h from the source code of SLASH'EM 0.0.7E7F2. To link to a particular line, write [[SLASH'EM 0.0.7E7F2/func_tab.h#line123]], for example.

The latest source code for vanilla NetHack is at Source code.


The NetHack General Public License applies to screenshots, source code and other content from NetHack.

This content was modified from the original NetHack source code distribution (by splitting up NetHack content between wiki pages, and possibly further editing). See the page history for a list of who changed it, and on what dates.

1.    /*	SCCS Id: @(#)func_tab.h 3.4	1992/04/03	*/
2.    /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
3.    /* NetHack may be freely redistributed.  See license for details. */
4.    
5.    #ifndef FUNC_TAB_H
6.    #define FUNC_TAB_H
7.    
8.    struct func_tab {
9.    	char f_char;
10.   	boolean	can_if_buried;
11.   	int NDECL((*f_funct));
12.   	const char *f_text;
13.   };
14.   
15.   struct ext_func_tab {
16.   	const char *ef_txt, *ef_desc;
17.   	int NDECL((*ef_funct));
18.   	boolean	can_if_buried;
19.   };
20.   
21.   extern struct ext_func_tab extcmdlist[];
22.   
23.   /*WAC for the menus */
24.   struct menu_tab {
25.           char m_char;
26.   	boolean	can_if_buried;
27.           int NDECL((*m_funct));
28.           const char *m_item;
29.           const char *m_text;
30.   };
31.   
32.   struct menu_list {
33.           const char *m_header;
34.           const char *m_parent;
35.           const struct menu_tab *m_menu;
36.   };
37.   
38.   #endif /* FUNC_TAB_H */