Contribute  :  Calendar  :  Advanced Search  :  Site Statistics  :  Directory  :  About  :  Cartoons  :  Web Resources  :  Polls  
    geekinfo.net ...for all that other stuff    
 Welcome to geekinfo.net
 Friday, August 18 2017 @ 14:25 CEST

open-adventure

   
NewsOld adventure games has been mentioned here before.

But open-adventure is a bit special. From the README: "This code is a forward-port of the Crowther/Woods Adventure 2.5 from 1995, last version in the main line of Colossal Cave Adventure development written by the original authors. The authors have given permission and encouragement for this release.". Wow.

(first seen on LXer.com)

 

What's Related

Story Options

open-adventure | 1 comments | Create New Account
The following comments are owned by whomever posted them. This site is not responsible for what they say.
open-adventure
Authored by: tingo on Tuesday, May 30 2017 @ 22:03 CEST
Copiled under FreeBSD 10.3-stable with 'gmake':

tingo@kg-core1$ gmake
gcc: not found
expr: syntax error
cc     compile.c   -o compile
compile.c:195:11: warning: passing 'signed char *' to parameter of type 'char *' converts between pointers to integer types with
      different sign [-Wpointer-sign]
    fgets(INLINE + 1, sizeof(INLINE) - 1, OPENED);
          ^~~~~~~~~~
/usr/include/stdio.h:244:30: note: passing argument to parameter here
char    *fgets(char * __restrict, int, FILE * __restrict);
                                ^
1 warning generated.
./compile
cc -std=c99 -O  -c database.c
cc -std=c99 -O  -c main.c
main.c:155:16: warning: passing 'signed char *' to parameter of type 'const char *' converts between pointers to integer types with
      different sign [-Wpointer-sign]
    if (sscanf(buf, "seed %ld", &sv) == 1) {
               ^~~
/usr/include/stdio.h:271:36: note: passing argument to parameter here
int      sscanf(const char * __restrict, const char * __restrict, ...);
                                       ^
1 warning generated.
cc -std=c99 -O  -c init.c
cc -std=c99 -O  -c actions1.c
cc -std=c99 -O  -c actions2.c
cc -std=c99 -O  -c score.c
cc -std=c99 -O  -c misc.c
misc.c:888:16: warning: passing 'signed char [100]' to parameter of type 'char *' converts between pointers to integer types with
      different sign [-Wpointer-sign]
                IGNORE(fgets(rawbuf,sizeof(rawbuf)-1,OPENED));
                             ^~~~~~
misc.c:13:25: note: expanded from macro 'IGNORE'
#define IGNORE(r) do{if(r){}}while(0)
                        ^
/usr/include/stdio.h:244:30: note: passing argument to parameter here
char    *fgets(char * __restrict, int, FILE * __restrict);
                                ^
misc.c:896:17: warning: passing 'signed char [100]' to parameter of type 'const char *' converts between pointers to integer types
      with different sign [-Wpointer-sign]
                        IGNORE(fputs(rawbuf, logfp));
                                     ^~~~~~
misc.c:13:25: note: expanded from macro 'IGNORE'
#define IGNORE(r) do{if(r){}}while(0)
                        ^
/usr/include/stdio.h:248:35: note: passing argument to parameter here
int      fputs(const char * __restrict, FILE * __restrict);
                                      ^
misc.c:898:17: warning: passing 'signed char [100]' to parameter of type 'const char *' converts between pointers to integer types
      with different sign [-Wpointer-sign]
                        IGNORE(fputs(rawbuf, stdout));
                                     ^~~~~~
misc.c:13:25: note: expanded from macro 'IGNORE'
#define IGNORE(r) do{if(r){}}while(0)
                        ^
/usr/include/stdio.h:248:35: note: passing argument to parameter here
int      fputs(const char * __restrict, FILE * __restrict);
                                      ^
misc.c:899:10: warning: passing 'signed char *' to parameter of type 'char *' converts between pointers to integer types with
      different sign [-Wpointer-sign]
                strcpy(INLINE+1, rawbuf);
                       ^~~~~~~~
/usr/include/string.h:82:31: note: passing argument to parameter here
char    *strcpy(char * __restrict, const char * __restrict);
                                 ^
misc.c:899:20: warning: passing 'signed char [100]' to parameter of type 'const char *' converts between pointers to integer types
      with different sign [-Wpointer-sign]
                strcpy(INLINE+1, rawbuf);
                                 ^~~~~~
/usr/include/string.h:82:56: note: passing argument to parameter here
char    *strcpy(char * __restrict, const char * __restrict);
                                                          ^
5 warnings generated.
cc -std=c99 -O  -o advent main.o init.o actions1.o actions2.o score.o misc.o database.o -lrt

and it works.
 Copyright © 2017 geekinfo.net
 All trademarks and copyrights on this page are owned by their respective owners.
Powered By Geeklog 
Created this page in 0.03 seconds