Source:NetHack 1.4f/version.c
Jump to navigation
Jump to search
Below is the full text to version.c from the source code of NetHack 1.4f. To link to a particular line, write [[NetHack 1.4f/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.4 87/08/08 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. #ifdef DGKMOD 31. 32. #define pg_line(x) if(page_line(x)) goto quit; 33. 34. doMSCversion() 35. { 36. char buf[BUFSZ]; 37. 38. set_pager(0); 39. sprintf(buf, "Behold mortal, the origins of %s Net%s...", 40. #ifdef UNIX 41. "Unix" 42. #endif 43. #ifdef MSDOS 44. "PC" 45. #endif 46. #ifdef QUEST 47. , "Quest"); 48. #else 49. , "Hack"); 50. #endif 51. pg_line(""); 52. pg_line(buf); pg_line(""); pg_line(""); 53. 54. pg_line("The original HACK was written by Jay Fenlason with help from"); 55. pg_line("Kenny Woodland, Mike Thome and Jon Payne."); 56. 57. pg_line(""); 58. pg_line("Andries Brouwer did a major re-write and published (at least)"); 59. pg_line("two versions (1.0.2 and 1.0.3) to the Usenet."); 60. 61. pg_line(""); 62. pg_line("PC HACK 3.51K was an MSDOS(tm) version of HACK 1.03."); 63. pg_line("The PC implementation was done in Microsoft(tm) C by Don Kneller"); 64. pg_line("and modified by Ken Arromdee."); 65. 66. pg_line(""); 67. pg_line("PC and UNIX HACK were merged by Mike Stephenson and Ken Arromdee"); 68. pg_line("incorporating many modifications and features made by the above,"); 69. pg_line("as well as the following honoured hackers:"); 70. 71. pg_line(""); 72. pg_line(" Scott R. Turner Tom Almy John S. Bien"); 73. pg_line(" Gil Neiger Ralf Brown Eric S. Raymond"); 74. pg_line(" Eric Backus Roland McGrath Greg Laskin"); 75. set_pager(1); 76. return(0); 77. quit: 78. set_pager(2); 79. return(0); 80. } 81. 82. #endif