Source:SLASH'EM 0.0.7E7F2/beconf.h

From NetHackWiki
Revision as of 17:35, 7 March 2008 by Kernigh bot (talk | contribs) (SLASH'EM 0.0.7E7F2/beconf.h moved to Source:SLASH'EM 0.0.7E7F2/beconf.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 beconf.h from the source code of SLASH'EM 0.0.7E7F2. To link to a particular line, write [[SLASH'EM 0.0.7E7F2/beconf.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: @(#)beconf.h	3.4	1998/07/08	*/
2.    /* Copyright (c) Dean Luick 1996.	*/
3.    /* NetHack may be freely redistributed.  See license for details. */
4.    
5.    /* Configuration for Be Inc.'s BeOS */
6.    
7.    #ifndef BECONF_H
8.    #define BECONF_H
9.    
10.   /*
11.    * We must use UNWIDENED_PROTOTYPES because we mix C++ and C.
12.    */
13.   
14.   #define index strchr
15.   #define rindex strrchr
16.   #define Rand rand	/* Be should have a better rand function! */
17.   #define tgetch getchar
18.   #define FCMASK 0666
19.   #define PORT_ID "BeOS"
20.   #define TEXTCOLOR
21.   #define POSIX_TYPES
22.   #define SIG_RET_TYPE __signal_func_ptr
23.   
24.   #include <time.h>	/* for time_t */
25.   #include <unistd.h>	/* for lseek() */
26.   
27.   /* could go in extern.h, under bemain.c (or something..) */
28.   void regularize(char *);
29.   
30.   
31.   /* instead of including system.h... */
32.   #include <string.h>
33.   #include <stdlib.h>
34.   #include <termcap.h>
35.   
36.   #endif /* BECONF_H */