Make all 1985 entries compile under linux
Unfortunately some entries will either not compile under macOS or not run correctly. We used a patch from Yusuke Endoh for 1985/applin/applin.c. Thank you Yusuke! This is actually the entry that does not work right under macOS but it does under linux. Update main README.md with links. Update a number of other README.md files with typos and other fixes and improvements (including fixing invocations and adding a 'Try:' section to match later year README files). Update various Makefiles to add notes and to make some entries compile (in some cases, those that require -traditional-cpp, they will not compile under clang and we note this). Update archive/archive-1985.tar.bz2. Why? Because the purpose of the archive/ files are for the original files and some of the files in there were not original. See the files 1985/lycklama/lycklama.orig.c and 1985/shapiro/shapiro.orig.c which in the tarball do not have the .orig added to the name.
This commit is contained in:
1 parent
3101acc915
commit
e4dbd8e6e2
12 files changed
+79
-22
No files matched your search
@@ -0,0 +1,3 @@
|
||||
#define P(X)j=write(1,X,1)
|
||||
#define C 39
|
||||
int M[5000]={2},*u=M,N[5000],R=22,a[4],l[]={0,-1,C-1,-1},m[]={1,-C,-1,C},*b=N, *d=N,c,e,f,g,i,j,k,s;main(){for(M[i=C*R-1]=24;f|d>=b;){c=M[g=i];i=e;for(s=f=0; s<4;s++)if((k=m[s]+g)>=0&&k<C*R&&l[s]!=k%C&&(!M[k]||!j&&c>=16!=M[k]>=16))a[f++ ]=s;if(f){f=M[e=m[s=a[rand()/(1+2147483647/f)]]+g];j=j<f?f:j;f+=c&-16*!j;M[g]= c|1<<s;M[*d++=e]=f|1<<(s+2)%4;}else e=d>b++?b[-1]:e;}P(" ");for(s=C;--s;P("_"))P(" ");for(;P("\n"),R--;P("|"))for(e=C;e--;P("_ "+(*u++/8)%2))P("| "+(*u/4)%2);}
|
||||
Reference in new issue
Block a user