Source:NetHack 1.3d/msdos.h

From NetHackWiki
Revision as of 00:07, 4 March 2008 by Kernigh bot (talk | contribs) (NetHack 1.3d/msdos.h moved to Source:NetHack 1.3d/msdos.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 msdos.h from the source code of NetHack 1.3d. To link to a particular line, write [[NetHack 1.3d/msdos.h#line123]], for example.

Warning! This is the source code from an old release. For the latest release, see Source code

Screenshots and source code from Hack are used under the CWI license.

1.    /*	SCCS Id: @(#)msdos.h	1.3	87/07/14
2.    /* msdos.h - function declarations for msdos.c */
3.    
4.    extern char *alllevels, *allbones;
5.    extern char levels[], bones[], permbones[], SAVEF[], hackdir[];
6.    extern int ramdisk, count_only;
7.    
8.    #define CTRL(ch) (ch & 0x37)
9.    #define ABORT CTRL('A')
10.   #define COUNT 0x1
11.   #define WRITE 0x2
12.   
13.   #ifdef LINT_ARGS		/* arg. checking enabled */
14.   
15.   void	append_slash(char *);
16.   void	chdrive(char *);
17.   int	check_then_creat(char *, int);
18.   void	copybones(int);
19.   int	dosh();
20.   int	dotogglepickup();
21.   long	filesize(char *);
22.   void	flushout();
23.   long	freediskspace(char *);
24.   void	gameDiskPrompt();
25.   char *	getlogin();
26.   void	getreturn(char *);
27.   char *	getenv();
28.   int	getuid();
29.   char *	let_to_name(char);
30.   void	msexit(int);
31.   void	msmsg(char *, );
32.   void	name_file(char *, int);
33.   void	pushch(char);
34.   void	read_config_file();
35.   #ifdef DGK
36.   int	savelev(int, xchar, int);
37.   #endif
38.   int	saveDiskPrompt(int);
39.   void	set_lock_and_bones();
40.   int	tgetch();
41.   
42.   #else
43.   
44.   extern long	filesize(), freediskspace();
45.   extern char	*getlogin(), *let_to_name();
46.   extern void	append_slash(), chdrive(), copybones();
47.   extern void	gameDiskPrompt(), getreturn(), msexit(), msmsg(), name_file();
48.   extern void	pushch(), read_config_file(), set_lock_and_bones();
49.   
50.   #endif