Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

NetHack 3.1 compress

0 views
Skip to first unread message

Jun Hamano

unread,
Jan 31, 1993, 12:05:05 AM1/31/93
to
The following patch allows one to configure nethack so that it
uses FSF's gzip instead of patented compress.

-junio

*** include/config.h 1993/01/30 23:52:43 3.1
--- include/config.h 1993/01/30 23:55:27
***************
*** 241,246 ****
--- 241,249 ----

#ifdef UNIX
# define COMPRESS "/usr/ucb/compress" /* path name for 'compress' */
+ # define COMPRESS_SUFFIX ".Z" /* suffix of compressed files */
+ /* # define COMPRESS "/local/bin/gzip" /* use gzip */
+ /* # define COMPRESS_SUFFIX ".z" /* suffix of compressed files */
#endif
#ifndef COMPRESS
# define INTERNAL_COMP /* control use of NetHack's compression routines */
*** src/files.c 1993/01/30 23:50:55 3.1
--- src/files.c 1993/01/30 23:52:16
***************
*** 476,482 ****
int fd;

Strcpy(cfn,filename);
! Strcat(cfn,".Z");
if((fd = open(cfn,O_RDONLY)) >= 0) {
(void) close(fd);
Strcpy(cmd, COMPRESS);
--- 476,482 ----
int fd;

Strcpy(cfn,filename);
! Strcat(cfn,COMPRESS_SUFFIX);
if((fd = open(cfn,O_RDONLY)) >= 0) {
(void) close(fd);
Strcpy(cmd, COMPRESS);
--
|
__-+-__ Jun Hamano
_-+ (|o|) +-_ ju...@twinsun.com
! . !

Chen Wei

unread,
Feb 4, 1993, 12:07:00 AM2/4/93
to
Hi, did anybody know what's the difference between MacIILc and MacIIsi?
I mean that I got a program (DRAGON which is GO game) but I cann't run it
through MacIIsi but my friend who has MacIILC can run it.
Actually, bot Mac Go and Dragon didn't work.
I hope someone can help me out.

my e-mail address is ch...@bones.et.byu.edu

0 new messages