diff --git a/1987/wall/Makefile b/1987/wall/Makefile index 1eaea9de5..c41d661e6 100644 --- a/1987/wall/Makefile +++ b/1987/wall/Makefile @@ -115,8 +115,8 @@ OBJ= ${PROG}.o DATA= TARGET= ${PROG} # -ALT_OBJ= ${PROG}.alt.o -ALT_TARGET= ${PROG}.alt +ALT_OBJ= +ALT_TARGET= ################# diff --git a/1987/wall/README.md b/1987/wall/README.md index 466ccd679..05034fa99 100644 --- a/1987/wall/README.md +++ b/1987/wall/README.md @@ -24,8 +24,7 @@ make all [Cody Boone Ferguson](/winners.html#Cody_Boone_Ferguson) made this safer by using `fgets()` instead of `gets()`. This prevents a potentially alarming -warning at linking or runtime. The original source is in -[wall.alt.c](wall.alt.c) described below. Thank you Cody! +warning at linking or runtime. ## Try: @@ -54,18 +53,6 @@ and enter some input like: 2^x quit # for the cat version -### Alternate code: - - -For the original version that uses `gets()` try: - - -```sh -make alt -``` - -Use `wall.alt` as you would `wall`. - ## Judges' comments: diff --git a/1987/wall/wall.alt.c b/1987/wall/wall.alt.c deleted file mode 100644 index 8ba1c5458..000000000 --- a/1987/wall/wall.alt.c +++ /dev/null @@ -1,18 +0,0 @@ -#define iv 4 -#define v ;(void -#define XI(xi)int xi[iv*'V']; -#define L(c,l,i)c(){d(l);m(i);} -#include -int*cc,c,i,ix='\t',exit(),X='\n'*'\d';XI(VI)XI(xi)extern(*vi[])(),(* -signal())();char*V,cm,D['x'],M='\n',I,*gets();L(MV,V,(c+='d',ix))m(x){v) -signal(X/'I',vi[x]);}d(x)char*x;{v)write(i,x,i);}L(MC,V,M+I)xv(){c>=i?m( -c/M/M+M):(d(&M),m(cm));}L(mi,V+cm,M)L(md,V,M)MM(){c=c*M%X;V-=cm;m(ix);} -LXX(){gets(D)||(vi[iv])();c=atoi(D);while(c>=X){c-=X;d("m");}V="ivxlcdm" -+iv;m(ix);}LV(){c-=c;while((i=cc[*D=getchar()])>-I)i?(c?(c>I;cc[-I]-=ix v)close(*VI);cc[M]-=M;}main(){ -(*vi)();for(;v)write(VI[I],V,M));}l(xl,lx)char*lx;{v)printf(lx,xl)v) -fflush(stdout);}L(xx,V+I,(c-=X/cm,ix))int(*vi[])()={ii,li,LXX,LV,exit,l, -d,l,d,xv,MM,md,MC,ml,MV,xx,xx,xx,xx,MV,mi};