From a42e1c6515608e7f9f1ccddaf6a24d518489c4c9 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Sun, 9 Apr 2023 04:00:46 -0700 Subject: [PATCH] Remove unreferenced 1990/cmills.alt.c As discussed on GitHub this is rarely needed for gets() to fgets() change (which again is useful - but problematic either way - to prevent warnings during compile, linking or execution of the program sometimes, including with this entry, output interspersed with the program's output). There was no need to modify the Makefile as the alt target was already not defined. BTW: if the compiler compiles, the linker links and the user executes does that make the compiler the jury, the linker the judge and user the executioner? :-) --- 1990/cmills/cmills.alt.c | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 1990/cmills/cmills.alt.c diff --git a/1990/cmills/cmills.alt.c b/1990/cmills/cmills.alt.c deleted file mode 100644 index 8a9b25641..000000000 --- a/1990/cmills/cmills.alt.c +++ /dev/null @@ -1,30 +0,0 @@ -#include -#include -#define S(q)B(*e=0),q,p); -#define W(w)if((w)<22)v= -v;else v-=10;else -#define F for(r=d;r1;){if(r-d>N*3/4){B(8));F++r)*r=c[(r-d)%13];F)w= -*(g=d+rand()%N),*g= -*r,*r++=w;r=d;}for(;;){B(3),y);if(!gets(l)||(w=atoi(l))<1)exit(0);if(w&1||w>M||w>y)B(1),y=w/2&&u(5)&&(y+=(3*(h(0,1[q])==10)-1)*w/2);if(x==-21)goto -_;if(v==-21){y+=w/2;goto -_;}while(x>-17&&x<17)H(x,g)while((v==20||*p==-1[e])&&y>=w&&u(6)){y-=w;++s;for(g=e++;2[g]= -*g,g!=p;)--g;*g++= -*e;*g=' ';i:v=h(h(0,*p),*e++= -*r++);S(t)if(*p=='A'&&-1[e]!= -*p)goto -_;}if(f=y>=w&&u(7))y-=w,H(v,e)while(!f&&v<22&&u(4)){H(v,e)if(v<22)S(t)}_:x<0&&(x= --x);v<0&&(v= --v);if(v<22)if(v==x)j+=w*++f;else -if(x>21||v>x)j+=w*2*++f;if(s--){*e++=' ';*e++= -*p;*e=0;for(e=p;*e=2[e];)e++;goto -i;}y+=j;S(q)};}