Files
Cody Boone Ferguson 3452123106 Fix 1988/isaak for modern systems
The problem was the exit() (redefined) was not being called in main().
This used to work but no longer does.

This fix was based on the file on the IOCCC website isaak.ansi.c. One of
the fixes in that one was the fact that in the older days one could
define define to something else and use that new macro as a define. But
since this was already done I didn't see the point in doing it again (it
was already in the repo as the diff shows - isaak.alt.c is the
original).

Removed this entry from bugs.md.
2023-04-01 09:43:21 -07:00

36 lines
1.1 KiB
C

main(){exit(0);}
#define U
#define main Si
#if U defined(y)
#undef y
#include __FILE__
Pb
#else
char*K="4499999;8 9+jW*':'TZhD m:*h.4-j'9(z7Q>r*:G#FS]mATIdMZY^HaKFZZ\
JyJw:X49@eJj1,Z'\\c^jGU@IXTF@9P2i:gAZx0pD*W3\\<ZZs1:.~Z8U:P<\\:ZOI0GBPZ7",*H
,S[5202],*B="oA9BA6iN`]`Ph>5F4::M6A69@6I{g[Za__]NPV``aV\177E4C5CG;4C<BEJG;\
?LGlSZ[Y_!oYi@uXPzLFyPOYP][]`RTaQo86564CAHCG4ES",*F,N;int Bk,V;Y
#endif
#define C K/16-2
#define Pa(x,y) x##y
#define P(x,y) Pa(x,y)
(){char*H;F P(O,=) -263;for(H="$+---+|||";*++H;)*(F P(O,=)(*H+5&129)+1)= *H;F
#define W sprintf(
P(O,=)-132;}P(I,r)(){if((N= *I P(O,O)%(21 O -5)+81 O 16)==107)N+=
#undef I
*K++&15;*F++ =N;return*K;}
#undef O
#define I K
#define O +
#if U defined(N)
exit(N){W H=S,"%5060d");F=S+385;while(Br(),++B,Kr())F+=(N=
*B++/26-1)?(")21["[N]-46)*N*4-22:-3194;while(*--K!=9){while(!(*++H+5&64));
F=(40-"(\206/"[((H-S)%130+45)/57]<<3)+H;*F++= *H++;*F=
*H==106?32:*H;Y();W F-131,"%-3d",++Bk); W F+129,"%3d",V+=
*C?*C:"hijpqv"[*--C]-106);Pb();}for(H=S;*H||(_exit(0),0);H+=130)write(1,F+4,W
F+3,"%c%-73.73s\n",0,H)-1);}
#endif
#undef U
#define U !
#include <stdio.h>