Source:NetHack 1.3d/version.c

From NetHackWiki
Jump to: navigation, search

Below is the full text to version.c from the source code of NetHack 1.3d. To link to a particular line, write [[NetHack 1.3d/version.c#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: @(#)version.c	1.3	87/07/14
2.    /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
3.    /* version.c - Usenet version 1.0 */
4.    
5.    #include	"hack.h"
6.    #include	"date.h"
7.    
8.    doversion(){
9.    
10.   #ifdef BETA
11.   	pline("%s Net%s Beta Version %s - last edit %s.",
12.   #else
13.   	pline("%s Net%s Version %s - last edit %s.",
14.   #endif
15.   #ifdef UNIX
16.   		"Unix"
17.   #endif
18.   #ifdef MSDOS
19.   		"PC"
20.   #endif
21.   #ifdef QUEST
22.   		, "Quest"
23.   #else
24.   		, "Hack"
25.   #endif
26.   		, VERSION, datestring);
27.   	return(0);
28.   }
29.   
30.   #define pg_line(x)	if(page_line(x)) goto quit;
31.   
32.   doMSCversion()
33.   {
34.   	char	buf[BUFSZ];
35.   
36.   	set_pager(0);
37.   	sprintf(buf, "Behold mortal, the origins of %s Net%s...",
38.   #ifdef UNIX
39.   		"Unix"
40.   #endif
41.   #ifdef MSDOS
42.   		"PC"
43.   #endif
44.   #ifdef QUEST
45.   		, "Quest");
46.   #else
47.   		, "Hack");
48.   #endif
49.   	pg_line("");
50.   	pg_line(buf); pg_line(""); pg_line("");
51.   
52.   	pg_line("The original HACK was written by Jay Fenlason with help from");
53.   	pg_line("Kenny Woodland, Mike Thome and Jon Payne.");
54.   
55.   	pg_line("");
56.   	pg_line("Andries Brouwer did a major re-write and published (at least)");
57.   	pg_line("two versions (1.0.2 and 1.0.3) to the Usenet.");
58.   
59.   	pg_line("");
60.   	pg_line("PC HACK 3.51K was an MSDOS(tm) version of HACK 1.03.");
61.   	pg_line("The PC implementation was done in Microsoft(tm) C by Don Kneller");
62.   	pg_line("and modified by Ken Arromdee.");
63.   
64.   	pg_line("");
65.   	pg_line("PC and UNIX HACK were merged by Mike Stephenson and Ken Arromdee");
66.   	pg_line("incorporating many modifications and features made by the above,");
67.   	pg_line("as well as the following honoured hackers:");
68.   
69.   	pg_line("");
70.   	pg_line("        Scott R. Turner");
71.   	pg_line("        Gil Neiger");
72.   	pg_line("        Eric Backus");
73.   	set_pager(1);
74.   	return(0);
75.   quit:
76.   	set_pager(2);
77.   	return(0);
78.   }