diff --git a/2004/vik2/.gitignore b/2004/vik2/.gitignore index 5ddc432ed..f5be1d630 100644 --- a/2004/vik2/.gitignore +++ b/2004/vik2/.gitignore @@ -1,6 +1,4 @@ cat-killing-curiosity vik2 -vik2_1.c -vik2_2.c vik2.possible.cat.death_1.c vik2.possible.cat.death_2.c diff --git a/2004/vik2/Makefile b/2004/vik2/Makefile index 831703ab3..5ebae92e3 100644 --- a/2004/vik2/Makefile +++ b/2004/vik2/Makefile @@ -38,7 +38,7 @@ include ../../var.mk # Common C compiler warnings to silence # -CSILENCE= -Wno-strict-prototypes +CSILENCE= -Wno-strict-prototypes -Wno-implicit-function-declaration # Common C compiler warning flags # @@ -127,11 +127,7 @@ all: data ${TARGET} supernova deep_magic magic charon pluto ${PROG}: ${PROG}.c - ${RM} -f ${PROG}_1.c - ${CC} -E '-DSTOP=_5' '-DFNAME="${PROG}_1.c"' ${PROG}.c > ${PROG}_1.c - ${RM} -f ${PROG}_2.c - ${CC} -E ${PROG}_1.c > ${PROG}_2.c - ${CC} ${CFLAGS} ${PROG}_2.c -o ${PROG} + ${CC} ${CFLAGS} -DFNAME='"${PROG}.c"' '-DSTOP=_5' ${PROG}.c -o ${PROG} # alternative executable # @@ -153,12 +149,12 @@ everything: all alt # On some systems such as Linux, this source either fails # to finish compiling or takes a super-long time generating # a huge number of compiler errors. As such, we do not -# recommend compiling this code. However for some the +# recommend compiling this code. However for ailurophiles the # curiosity factor, even though it may have the effect of: # # kill -9 cat # -# may too strong for some not try to compile the original +# may be too strong to not try and compile the original # vik2 source code. Therefore we offer this special # Makefile rule for those who do not wish curtail their curiosity. # @@ -184,14 +180,13 @@ clean: ${RM} -f indent.c; \ fi vik2_clean: - ${RM} -f vik2_1.c vik2_2.c vik2.o + ${RM} -f vik2.o vik2_clobber: vik2_clean ${RM} -f vik2 clobber: clean ${RM} -f ${TARGET} ${ALT_TARGET} - ${RM} -f ${PROG}_1.c ${PROG}_2.c ${RM} -f ${PROG}.possible.cat.death_1.c ${PROG}.possible.cat.death_2.c cat-killing-curiosity @-if [ -e sandwich ]; then \ ${RM} -f sandwich; \ diff --git a/2004/vik2/vik2.c b/2004/vik2/vik2.c index 54fbe215b..7c5d30106 100644 --- a/2004/vik2/vik2.c +++ b/2004/vik2/vik2.c @@ -1,1028 +1,1009 @@ -#define O \ -#ifdef -#define Q \ -#undef -#define C \ -#define -#define G \ -#else -#define D \ -#ifndef -#define l \ -#include FNAME -#define I \ -#endif - - - -O i -O o -O c -Q c -I -O d -Q d -I -O e -Q e -I -O f -Q f -I -O g -Q g -I -O h -Q h -I -O Z -Q Z -I -O j -Q j -I -O k -Q k -I -O m -Q m -I -O n -Q n -I -Q o -G -O E -O t -Q t -I -O s -Q s -I -O u -Q u -I -O v -Q v -I -O w -Q w -I -O x -Q x -I -O y -Q y -I -O z -Q z -I -O A -Q A -I -O B -Q B -I -O r -Q r -I -Q E -G -O _L -O a -O b -D q -Q a -C q -I -G -O q -Q a -I -I -G -O b -D q -C a -I -G -O q -C a -Q q -I -I -I -O p -Q p -I -O a -C p -Q a -I -O b -Q b -I -G -O F -O q -Q q -I -C _L -O c -Q c -C a -I -O t -C b -I -l -O p -C c -I -O d -Q d -C a -I -O s -C b -I -l -O p -C d -I -O e -Q e -C a -I -O u -C b -I -l -O p -C e -I -O f -Q f -C a -I -O v -C b -I -l -O p -C f -I -O g -Q g -C a -I -O w -C b -I -l -O p -C g -I -O h -Q h -C a -I -O x -C b -I -l -O p -C h -I -O Z -Q Z -C a -I -O y -C b -I -l -O p -C Z -I -O j -Q j -C a -I -O z -C b -I -l -O p -C j -I -O k -Q k -C a -I -O A -C b -I -l -O p -C k -I -O m -Q m -C a -I -O B -C b -I -l -O p -C m -I -O n -Q n -C a -I -O r -C b -I -l -O p -C n -I -Q _L -Q F -G -O H -C E -l -C s -C F -l -Q s -Q H -G -O _u -O t -Q t -G -C t -I -O s -Q s -G -C s -I -O u -Q u -G -C u -I -O v -Q v -G -C v -I -O w -Q w -G -C w -I -O x -Q x -G -C x -I -O y -Q y -G -C y -I -O z -Q z -G -C z -I -O A -Q A -G -C A -I -O B -Q B -G -C B -I -O r -Q r -G -C r -I -C F -l -O _v -Q _v -I -O q -C _v -I -C E -l -C t -C F -l -O _v -O q -Q q -G -C q -I -I -Q _u -G -O _w -O J -Q J -I -O _q -Q _q -I -C _u -l -D c -D d -D e -D f -D g -D h -D Z -D j -D k -D m -D n -C J -I -I -I -I -I -I -I -I -I -I -I -D q -C _q -I -Q _w -G -O _x -O K -Q K -I -O \ -STOP -C K -I -O _r -C K -I -D K -D _s -C _s -D L -C L -I -D M -C M -I -D N -C N -I -D P -C P -I -D R -C R -I -D S -C S -I -D T -C T -I -D U -C U -I -D V -C V -I -D W -C W -I -D X -C X -I -D Y -C Y -I -D _i -C _i -I -D _a -C _a -I -D _b -C _b -I -D _c -C _c -I -D _d -C _d -I -D _e -C _e -I -D _f -C _f -I -D _g -C _g -I -I -C E -l -C t -O _h -C s -I -O _t -C u -I -O _3 -C v -I -O _4 -C w -I -O _5 -C x -I -O _6 -C y -I -O _7 -C z -I -O _8 -C A -I -O _9 -C B -I -O _r -C r -I -C _w -l -C o -l -D J -O _q -C c -O X -Q X -C d -I -O Y -Q Y -C e -I -O _i -Q _i -C f -I -O _a -Q _a -C g -I -O _b -Q _b -C h -I -O _c -Q _c -C Z -I -O _d -Q _d -C j -I -O _e -Q _e -C k -I -O _f -Q _f -C m -I -O _g -Q _g -C n -I -C H -l -C E -l -C t -O d -C X -C s -I -O e -C Y -C u -I -O f -C _i -C v -I -O g -C _a -C w -I -O h -C _b -C x -I -O Z -C _c -C y -I -O j -C _d -C z -I -O k -C _e -C A -I -O m -C _f -C B -I -O n -C _g -C r -I -G -C c -O L -Q L -C d -I -O M -Q M -C e -I -O N -Q N -C f -I -O P -Q P -C g -I -O R -Q R -C h -I -O S -Q S -C Z -I -O T -Q T -C j -I -O U -Q U -C k -I -O V -Q V -C m -I -O W -Q W -C n -I -C H -l -C E -l -C t -O d -C L -C s -I -O e -C M -C u -I -O f -C N -C v -I -O g -C P -C w -I -O h -C R -C x -I -O Z -C S -C y -I -O j -C T -C z -I -O k -C U -C A -I -O m -C V -C B -I -O n -C W -C r -I -I -I -C o -l -O _y -Q _y -C c -I -O _z -Q _z -C d -I -O _A -Q _A -C e -I -O _B -Q _B -C f -I -O _C -Q _C -C g -I -O _D -Q _D -C h -I -O _E -Q _E -C Z -I -O _F -Q _F -C j -I -O _G -Q _G -C k -I -O _H -Q _H -C m -I -O _I -Q _I -C n -I -O J -C o -l -O _s -C c -I -O L -C d -I -O M -C e -I -O N -C f -I -O P -C g -I -O R -C h -I -O S -C Z -I -O T -C j -I -O U -C k -I -O V -C m -I -O W -C n -I -C H -l -C E -l -O _M -C t -I -O X -C s -I -O Y -C u -I -O _i -C v -I -O _a -C w -I -O _b -C x -I -O _c -C y -I -O _d -C z -I -O _e -C A -I -O _f -C B -I -O _g -C r -I -C _w -l -O J -Q i -l -O _h -| 2 -I -O _t -| 4 -I -O _3 -| 8 -I -O _4 + #ifdef i + #ifdef o + #ifdef c + #undef c + #endif + #ifdef d + #undef d + #endif + #ifdef e + #undef e + #endif + #ifdef f + #undef f + #endif + #ifdef g + #undef g + #endif + #ifdef h + #undef h + #endif + #ifdef Z + #undef Z + #endif + #ifdef j + #undef j + #endif + #ifdef k + #undef k + #endif + #ifdef m + #undef m + #endif + #ifdef n + #undef n + #endif + #undef o + #else + #ifdef E + #ifdef t + #undef t + #endif + #ifdef s + #undef s + #endif + #ifdef u + #undef u + #endif + #ifdef v + #undef v + #endif + #ifdef w + #undef w + #endif + #ifdef x + #undef x + #endif + #ifdef y + #undef y + #endif + #ifdef z + #undef z + #endif + #ifdef A + #undef A + #endif + #ifdef B + #undef B + #endif + #ifdef r + #undef r + #endif + #undef E + #else + #ifdef _L + #ifdef a + #ifdef b + #ifndef q + #undef a + #define q + #endif + #else + #ifdef q + #undef a + #endif + #endif + #else + #ifdef b + #ifndef q + #define a + #endif + #else + #ifdef q + #define a + #undef q + #endif + #endif + #endif + #ifdef p + #undef p + #endif + #ifdef a + #define p + #undef a + #endif + #ifdef b + #undef b + #endif + #else + #ifdef F + #ifdef q + #undef q + #endif + #define _L + #ifdef c + #undef c + #define a + #endif + #ifdef t + #define b + #endif + #include FNAME + #ifdef p + #define c + #endif + #ifdef d + #undef d + #define a + #endif + #ifdef s + #define b + #endif + #include FNAME + #ifdef p + #define d + #endif + #ifdef e + #undef e + #define a + #endif + #ifdef u + #define b + #endif + #include FNAME + #ifdef p + #define e + #endif + #ifdef f + #undef f + #define a + #endif + #ifdef v + #define b + #endif + #include FNAME + #ifdef p + #define f + #endif + #ifdef g + #undef g + #define a + #endif + #ifdef w + #define b + #endif + #include FNAME + #ifdef p + #define g + #endif + #ifdef h + #undef h + #define a + #endif + #ifdef x + #define b + #endif + #include FNAME + #ifdef p + #define h + #endif + #ifdef Z + #undef Z + #define a + #endif + #ifdef y + #define b + #endif + #include FNAME + #ifdef p + #define Z + #endif + #ifdef j + #undef j + #define a + #endif + #ifdef z + #define b + #endif + #include FNAME + #ifdef p + #define j + #endif + #ifdef k + #undef k + #define a + #endif + #ifdef A + #define b + #endif + #include FNAME + #ifdef p + #define k + #endif + #ifdef m + #undef m + #define a + #endif + #ifdef B + #define b + #endif + #include FNAME + #ifdef p + #define m + #endif + #ifdef n + #undef n + #define a + #endif + #ifdef r + #define b + #endif + #include FNAME + #ifdef p + #define n + #endif + #undef _L + #undef F + #else + #ifdef H + #define E + #include FNAME + #define s + #define F + #include FNAME + #undef s + #undef H + #else + #ifdef _u + #ifdef t + #undef t + #else + #define t + #endif + #ifdef s + #undef s + #else + #define s + #endif + #ifdef u + #undef u + #else + #define u + #endif + #ifdef v + #undef v + #else + #define v + #endif + #ifdef w + #undef w + #else + #define w + #endif + #ifdef x + #undef x + #else + #define x + #endif + #ifdef y + #undef y + #else + #define y + #endif + #ifdef z + #undef z + #else + #define z + #endif + #ifdef A + #undef A + #else + #define A + #endif + #ifdef B + #undef B + #else + #define B + #endif + #ifdef r + #undef r + #else + #define r + #endif + #define F + #include FNAME + #ifdef _v + #undef _v + #endif + #ifdef q + #define _v + #endif + #define E + #include FNAME + #define t + #define F + #include FNAME + #ifdef _v + #ifdef q + #undef q + #else + #define q + #endif + #endif + #undef _u + #else + #ifdef _w + #ifdef J + #undef J + #endif + #ifdef _q + #undef _q + #endif + #define _u + #include FNAME + #ifndef c + #ifndef d + #ifndef e + #ifndef f + #ifndef g + #ifndef h + #ifndef Z + #ifndef j + #ifndef k + #ifndef m + #ifndef n + #define J + #endif + #endif + #endif + #endif + #endif + #endif + #endif + #endif + #endif + #endif + #endif + #ifndef q + #define _q + #endif + #undef _w + #else + #ifdef _x + #ifdef K + #undef K + #endif + #ifdef STOP + #define K + #endif + #ifdef _r + #define K + #endif + #ifndef K + #ifndef _s + #define _s + #ifndef L + #define L + #endif + #ifndef M + #define M + #endif + #ifndef N + #define N + #endif + #ifndef P + #define P + #endif + #ifndef R + #define R + #endif + #ifndef S + #define S + #endif + #ifndef T + #define T + #endif + #ifndef U + #define U + #endif + #ifndef V + #define V + #endif + #ifndef W + #define W + #endif + #ifndef X + #define X + #endif + #ifndef Y + #define Y + #endif + #ifndef _i + #define _i + #endif + #ifndef _a + #define _a + #endif + #ifndef _b + #define _b + #endif + #ifndef _c + #define _c + #endif + #ifndef _d + #define _d + #endif + #ifndef _e + #define _e + #endif + #ifndef _f + #define _f + #endif + #ifndef _g + #define _g + #endif + #endif + #define E + #include FNAME + #define t + #ifdef _h + #define s + #endif + #ifdef _t + #define u + #endif + #ifdef _3 + #define v + #endif + #ifdef _4 + #define w + #endif + #ifdef _5 + #define x + #endif + #ifdef _6 + #define y + #endif + #ifdef _7 + #define z + #endif + #ifdef _8 + #define A + #endif + #ifdef _9 + #define B + #endif + #ifdef _r + #define r + #endif + #define _w + #include FNAME + #define o + #include FNAME + #ifndef J + #ifdef _q + #define c + #ifdef X + #undef X + #define d + #endif + #ifdef Y + #undef Y + #define e + #endif + #ifdef _i + #undef _i + #define f + #endif + #ifdef _a + #undef _a + #define g + #endif + #ifdef _b + #undef _b + #define h + #endif + #ifdef _c + #undef _c + #define Z + #endif + #ifdef _d + #undef _d + #define j + #endif + #ifdef _e + #undef _e + #define k + #endif + #ifdef _f + #undef _f + #define m + #endif + #ifdef _g + #undef _g + #define n + #endif + #define H + #include FNAME + #define E + #include FNAME + #define t + #ifdef d + #define X + #define s + #endif + #ifdef e + #define Y + #define u + #endif + #ifdef f + #define _i + #define v + #endif + #ifdef g + #define _a + #define w + #endif + #ifdef h + #define _b + #define x + #endif + #ifdef Z + #define _c + #define y + #endif + #ifdef j + #define _d + #define z + #endif + #ifdef k + #define _e + #define A + #endif + #ifdef m + #define _f + #define B + #endif + #ifdef n + #define _g + #define r + #endif + #else + #define c + #ifdef L + #undef L + #define d + #endif + #ifdef M + #undef M + #define e + #endif + #ifdef N + #undef N + #define f + #endif + #ifdef P + #undef P + #define g + #endif + #ifdef R + #undef R + #define h + #endif + #ifdef S + #undef S + #define Z + #endif + #ifdef T + #undef T + #define j + #endif + #ifdef U + #undef U + #define k + #endif + #ifdef V + #undef V + #define m + #endif + #ifdef W + #undef W + #define n + #endif + #define H + #include FNAME + #define E + #include FNAME + #define t + #ifdef d + #define L + #define s + #endif + #ifdef e + #define M + #define u + #endif + #ifdef f + #define N + #define v + #endif + #ifdef g + #define P + #define w + #endif + #ifdef h + #define R + #define x + #endif + #ifdef Z + #define S + #define y + #endif + #ifdef j + #define T + #define z + #endif + #ifdef k + #define U + #define A + #endif + #ifdef m + #define V + #define B + #endif + #ifdef n + #define W + #define r + #endif + #endif + #endif + #define o + #include FNAME + #ifdef _y + #undef _y + #define c + #endif + #ifdef _z + #undef _z + #define d + #endif + #ifdef _A + #undef _A + #define e + #endif + #ifdef _B + #undef _B + #define f + #endif + #ifdef _C + #undef _C + #define g + #endif + #ifdef _D + #undef _D + #define h + #endif + #ifdef _E + #undef _E + #define Z + #endif + #ifdef _F + #undef _F + #define j + #endif + #ifdef _G + #undef _G + #define k + #endif + #ifdef _H + #undef _H + #define m + #endif + #ifdef _I + #undef _I + #define n + #endif + #ifdef J + #define o + #include FNAME + #ifdef _s + #define c + #endif + #ifdef L + #define d + #endif + #ifdef M + #define e + #endif + #ifdef N + #define f + #endif + #ifdef P + #define g + #endif + #ifdef R + #define h + #endif + #ifdef S + #define Z + #endif + #ifdef T + #define j + #endif + #ifdef U + #define k + #endif + #ifdef V + #define m + #endif + #ifdef W + #define n + #endif + #define H + #include FNAME + #define E + #include FNAME + #ifdef _M + #define t + #endif + #ifdef X + #define s + #endif + #ifdef Y + #define u + #endif + #ifdef _i + #define v + #endif + #ifdef _a + #define w + #endif + #ifdef _b + #define x + #endif + #ifdef _c + #define y + #endif + #ifdef _d + #define z + #endif + #ifdef _e + #define A + #endif + #ifdef _f + #define B + #endif + #ifdef _g + #define r + #endif + #define _w + #include FNAME + #ifdef J + #undef i + #include FNAME + #ifdef _h +| 2 + #endif + #ifdef _t +| 4 + #endif + #ifdef _3 +| 8 + #endif + #ifdef _4 | 16 -I -O _5 + #endif + #ifdef _5 | 32 -I -O _6 + #endif + #ifdef _6 | 64 -I -O _7 + #endif + #ifdef _7 |128 -I -O _8 + #endif + #ifdef _8 |256 -I -O _9 + #endif + #ifdef _9 |512 -I + #endif ) ; -I -C o -l -C c -O _h -Q _h -C d -I -O _t -Q _t -C e -I -O _3 -Q _3 -C f -I -O _4 -Q _4 -C g -I -O _5 -Q _5 -C h -I -O _6 -Q _6 -C Z -I -O _7 -Q _7 -C j -I -O _8 -Q _8 -C k -I -O _9 -Q _9 -C m -I -O _r -Q _r -C n -I -C H -l -O d -C _h -I -O e -C _t -I -O f -C _3 -I -O g -C _4 -I -O h -C _5 -I -O Z -C _6 -I -O j -C _7 -I -O k -C _8 -I -O m -C _9 -I -O n -C _r -I -C o -l -Q _s -G -O _q -C F -G -C _u -I -l -O c -C _y -I -O d -C _z -I -O e -C _A -I -O f -C _B -I -O g -C _C -I -O h -C _D -I -O Z -C _E -I -O j -C _F -I -O k -C _G -I -O m -C _H -I -O n -C _I -I -I -I -G -O _J -C _x -l -l -l -l -l -l -l -l -l -l -Q _x -G -O _K -C _J -l -l -l -l -l -l -l -l -l -l -Q _J -G -C _K -l -l -l -l -l -l -l -l -l -l -Q _K -D K -l -I -I -I -I -I -I -I -I -I -I -I -G -C i -O _N -pri\ -ntf( + #endif + #define o + #include FNAME + #define c + #ifdef _h + #undef _h + #define d + #endif + #ifdef _t + #undef _t + #define e + #endif + #ifdef _3 + #undef _3 + #define f + #endif + #ifdef _4 + #undef _4 + #define g + #endif + #ifdef _5 + #undef _5 + #define h + #endif + #ifdef _6 + #undef _6 + #define Z + #endif + #ifdef _7 + #undef _7 + #define j + #endif + #ifdef _8 + #undef _8 + #define k + #endif + #ifdef _9 + #undef _9 + #define m + #endif + #ifdef _r + #undef _r + #define n + #endif + #define H + #include FNAME + #ifdef d + #define _h + #endif + #ifdef e + #define _t + #endif + #ifdef f + #define _3 + #endif + #ifdef g + #define _4 + #endif + #ifdef h + #define _5 + #endif + #ifdef Z + #define _6 + #endif + #ifdef j + #define _7 + #endif + #ifdef k + #define _8 + #endif + #ifdef m + #define _9 + #endif + #ifdef n + #define _r + #endif + #define o + #include FNAME + #undef _s + #else + #ifdef _q + #define F + #else + #define _u + #endif + #include FNAME + #ifdef c + #define _y + #endif + #ifdef d + #define _z + #endif + #ifdef e + #define _A + #endif + #ifdef f + #define _B + #endif + #ifdef g + #define _C + #endif + #ifdef h + #define _D + #endif + #ifdef Z + #define _E + #endif + #ifdef j + #define _F + #endif + #ifdef k + #define _G + #endif + #ifdef m + #define _H + #endif + #ifdef n + #define _I + #endif + #endif + #endif + #else + #ifdef _J + #define _x + #include FNAME + #include FNAME + #include FNAME + #include FNAME + #include FNAME + #include FNAME + #include FNAME + #include FNAME + #include FNAME + #include FNAME + #undef _x + #else + #ifdef _K + #define _J + #include FNAME + #include FNAME + #include FNAME + #include FNAME + #include FNAME + #include FNAME + #include FNAME + #include FNAME + #include FNAME + #include FNAME + #undef _J + #else + #define _K + #include FNAME + #include FNAME + #include FNAME + #include FNAME + #include FNAME + #include FNAME + #include FNAME + #include FNAME + #include FNAME + #include FNAME + #undef _K + #ifndef K + #include FNAME + #endif + #endif + #endif + #endif + #endif + #endif + #endif + #endif + #endif + #endif + #endif + #else + #define i + #ifdef _N +printf( + "%d" "\n" , -1 -G -# \ -inc\ -lud\ -e -int\ - ma\ -in() -C _N -C _h -C _M -Q i +1); + #else + + + + + + +int + main() + + #define _N + #define _h + #define _M + #undef i { -l + #include "vik2_1.c" + -1 -) -; -l +1); + + #include "vik2_1.c" } -I -I + #endif + #endif diff --git a/2004/vik2/vik2_1.c b/2004/vik2/vik2_1.c new file mode 100644 index 000000000..4107c23bf --- /dev/null +++ b/2004/vik2/vik2_1.c @@ -0,0 +1,1555 @@ +# 1 "vik2.c" +# 1 "" 1 +# 1 "" 3 +# 414 "" 3 +# 1 "" 1 +# 1 "" 2 +# 1 "vik2.c" 2 +# 18 "vik2.c" + #ifdef i + #ifdef o + #ifdef c + #undef c + #endif + #ifdef d + #undef d + #endif + #ifdef e + #undef e + #endif + #ifdef f + #undef f + #endif + #ifdef g + #undef g + #endif + #ifdef h + #undef h + #endif + #ifdef Z + #undef Z + #endif + #ifdef j + #undef j + #endif + #ifdef k + #undef k + #endif + #ifdef m + #undef m + #endif + #ifdef n + #undef n + #endif + #undef o + #else + #ifdef E + #ifdef t + #undef t + #endif + #ifdef s + #undef s + #endif + #ifdef u + #undef u + #endif + #ifdef v + #undef v + #endif + #ifdef w + #undef w + #endif + #ifdef x + #undef x + #endif + #ifdef y + #undef y + #endif + #ifdef z + #undef z + #endif + #ifdef A + #undef A + #endif + #ifdef B + #undef B + #endif + #ifdef r + #undef r + #endif + #undef E + #else + #ifdef _L + #ifdef a + #ifdef b + #ifndef q + #undef a + #define q + #endif + #else + #ifdef q + #undef a + #endif + #endif + #else + #ifdef b + #ifndef q + #define a + #endif + #else + #ifdef q + #define a + #undef q + #endif + #endif + #endif + #ifdef p + #undef p + #endif + #ifdef a + #define p + #undef a + #endif + #ifdef b + #undef b + #endif + #else + #ifdef F + #ifdef q + #undef q + #endif + #define _L + #ifdef c + #undef c + #define a + #endif + #ifdef t + #define b + #endif + #include "vik2_1.c" + #ifdef p + #define c + #endif + #ifdef d + #undef d + #define a + #endif + #ifdef s + #define b + #endif + #include "vik2_1.c" + #ifdef p + #define d + #endif + #ifdef e + #undef e + #define a + #endif + #ifdef u + #define b + #endif + #include "vik2_1.c" + #ifdef p + #define e + #endif + #ifdef f + #undef f + #define a + #endif + #ifdef v + #define b + #endif + #include "vik2_1.c" + #ifdef p + #define f + #endif + #ifdef g + #undef g + #define a + #endif + #ifdef w + #define b + #endif + #include "vik2_1.c" + #ifdef p + #define g + #endif + #ifdef h + #undef h + #define a + #endif + #ifdef x + #define b + #endif + #include "vik2_1.c" + #ifdef p + #define h + #endif + #ifdef Z + #undef Z + #define a + #endif + #ifdef y + #define b + #endif + #include "vik2_1.c" + #ifdef p + #define Z + #endif + #ifdef j + #undef j + #define a + #endif + #ifdef z + #define b + #endif + #include "vik2_1.c" + #ifdef p + #define j + #endif + #ifdef k + #undef k + #define a + #endif + #ifdef A + #define b + #endif + #include "vik2_1.c" + #ifdef p + #define k + #endif + #ifdef m + #undef m + #define a + #endif + #ifdef B + #define b + #endif + #include "vik2_1.c" + #ifdef p + #define m + #endif + #ifdef n + #undef n + #define a + #endif + #ifdef r + #define b + #endif + #include "vik2_1.c" + #ifdef p + #define n + #endif + #undef _L + #undef F + #else + #ifdef H + #define E + #include "vik2_1.c" + #define s + #define F + #include "vik2_1.c" + #undef s + #undef H + #else + #ifdef _u + #ifdef t + #undef t + #else + #define t + #endif + #ifdef s + #undef s + #else + #define s + #endif + #ifdef u + #undef u + #else + #define u + #endif + #ifdef v + #undef v + #else + #define v + #endif + #ifdef w + #undef w + #else + #define w + #endif + #ifdef x + #undef x + #else + #define x + #endif + #ifdef y + #undef y + #else + #define y + #endif + #ifdef z + #undef z + #else + #define z + #endif + #ifdef A + #undef A + #else + #define A + #endif + #ifdef B + #undef B + #else + #define B + #endif + #ifdef r + #undef r + #else + #define r + #endif + #define F + #include "vik2_1.c" + #ifdef _v + #undef _v + #endif + #ifdef q + #define _v + #endif + #define E + #include "vik2_1.c" + #define t + #define F + #include "vik2_1.c" + #ifdef _v + #ifdef q + #undef q + #else + #define q + #endif + #endif + #undef _u + #else + #ifdef _w + #ifdef J + #undef J + #endif + #ifdef _q + #undef _q + #endif + #define _u + #include "vik2_1.c" + #ifndef c + #ifndef d + #ifndef e + #ifndef f + #ifndef g + #ifndef h + #ifndef Z + #ifndef j + #ifndef k + #ifndef m + #ifndef n + #define J + #endif + #endif + #endif + #endif + #endif + #endif + #endif + #endif + #endif + #endif + #endif + #ifndef q + #define _q + #endif + #undef _w + #else + #ifdef _x + #ifdef K + #undef K + #endif + #ifdef _5 + + #define K + #endif + #ifdef _r + #define K + #endif + #ifndef K + #ifndef _s + #define _s + #ifndef L + #define L + #endif + #ifndef M + #define M + #endif + #ifndef N + #define N + #endif + #ifndef P + #define P + #endif + #ifndef R + #define R + #endif + #ifndef S + #define S + #endif + #ifndef T + #define T + #endif + #ifndef U + #define U + #endif + #ifndef V + #define V + #endif + #ifndef W + #define W + #endif + #ifndef X + #define X + #endif + #ifndef Y + #define Y + #endif + #ifndef _i + #define _i + #endif + #ifndef _a + #define _a + #endif + #ifndef _b + #define _b + #endif + #ifndef _c + #define _c + #endif + #ifndef _d + #define _d + #endif + #ifndef _e + #define _e + #endif + #ifndef _f + #define _f + #endif + #ifndef _g + #define _g + #endif + #endif + #define E + #include "vik2_1.c" + #define t + #ifdef _h + #define s + #endif + #ifdef _t + #define u + #endif + #ifdef _3 + #define v + #endif + #ifdef _4 + #define w + #endif + #ifdef _5 + #define x + #endif + #ifdef _6 + #define y + #endif + #ifdef _7 + #define z + #endif + #ifdef _8 + #define A + #endif + #ifdef _9 + #define B + #endif + #ifdef _r + #define r + #endif + #define _w + #include "vik2_1.c" + #define o + #include "vik2_1.c" + #ifndef J + #ifdef _q + #define c + #ifdef X + #undef X + #define d + #endif + #ifdef Y + #undef Y + #define e + #endif + #ifdef _i + #undef _i + #define f + #endif + #ifdef _a + #undef _a + #define g + #endif + #ifdef _b + #undef _b + #define h + #endif + #ifdef _c + #undef _c + #define Z + #endif + #ifdef _d + #undef _d + #define j + #endif + #ifdef _e + #undef _e + #define k + #endif + #ifdef _f + #undef _f + #define m + #endif + #ifdef _g + #undef _g + #define n + #endif + #define H + #include "vik2_1.c" + #define E + #include "vik2_1.c" + #define t + #ifdef d + #define X + #define s + #endif + #ifdef e + #define Y + #define u + #endif + #ifdef f + #define _i + #define v + #endif + #ifdef g + #define _a + #define w + #endif + #ifdef h + #define _b + #define x + #endif + #ifdef Z + #define _c + #define y + #endif + #ifdef j + #define _d + #define z + #endif + #ifdef k + #define _e + #define A + #endif + #ifdef m + #define _f + #define B + #endif + #ifdef n + #define _g + #define r + #endif + #else + #define c + #ifdef L + #undef L + #define d + #endif + #ifdef M + #undef M + #define e + #endif + #ifdef N + #undef N + #define f + #endif + #ifdef P + #undef P + #define g + #endif + #ifdef R + #undef R + #define h + #endif + #ifdef S + #undef S + #define Z + #endif + #ifdef T + #undef T + #define j + #endif + #ifdef U + #undef U + #define k + #endif + #ifdef V + #undef V + #define m + #endif + #ifdef W + #undef W + #define n + #endif + #define H + #include "vik2_1.c" + #define E + #include "vik2_1.c" + #define t + #ifdef d + #define L + #define s + #endif + #ifdef e + #define M + #define u + #endif + #ifdef f + #define N + #define v + #endif + #ifdef g + #define P + #define w + #endif + #ifdef h + #define R + #define x + #endif + #ifdef Z + #define S + #define y + #endif + #ifdef j + #define T + #define z + #endif + #ifdef k + #define U + #define A + #endif + #ifdef m + #define V + #define B + #endif + #ifdef n + #define W + #define r + #endif + #endif + #endif + #define o + #include "vik2_1.c" + #ifdef _y + #undef _y + #define c + #endif + #ifdef _z + #undef _z + #define d + #endif + #ifdef _A + #undef _A + #define e + #endif + #ifdef _B + #undef _B + #define f + #endif + #ifdef _C + #undef _C + #define g + #endif + #ifdef _D + #undef _D + #define h + #endif + #ifdef _E + #undef _E + #define Z + #endif + #ifdef _F + #undef _F + #define j + #endif + #ifdef _G + #undef _G + #define k + #endif + #ifdef _H + #undef _H + #define m + #endif + #ifdef _I + #undef _I + #define n + #endif + #ifdef J + #define o + #include "vik2_1.c" + #ifdef _s + #define c + #endif + #ifdef L + #define d + #endif + #ifdef M + #define e + #endif + #ifdef N + #define f + #endif + #ifdef P + #define g + #endif + #ifdef R + #define h + #endif + #ifdef S + #define Z + #endif + #ifdef T + #define j + #endif + #ifdef U + #define k + #endif + #ifdef V + #define m + #endif + #ifdef W + #define n + #endif + #define H + #include "vik2_1.c" + #define E + #include "vik2_1.c" + #ifdef _M + #define t + #endif + #ifdef X + #define s + #endif + #ifdef Y + #define u + #endif + #ifdef _i + #define v + #endif + #ifdef _a + #define w + #endif + #ifdef _b + #define x + #endif + #ifdef _c + #define y + #endif + #ifdef _d + #define z + #endif + #ifdef _e + #define A + #endif + #ifdef _f + #define B + #endif + #ifdef _g + #define r + #endif + #define _w + #include "vik2_1.c" + #ifdef J + #undef i + #include "vik2_1.c" + #ifdef _h +| 2 + #endif + #ifdef _t +| 4 + #endif + #ifdef _3 +| 8 + #endif + #ifdef _4 +| 16 + #endif + #ifdef _5 +| 32 + #endif + #ifdef _6 +| 64 + #endif + #ifdef _7 +|128 + #endif + #ifdef _8 +|256 + #endif + #ifdef _9 +|512 + #endif +) +; + #endif + #define o + #include "vik2_1.c" + #define c + #ifdef _h + #undef _h + #define d + #endif + #ifdef _t + #undef _t + #define e + #endif + #ifdef _3 + #undef _3 + #define f + #endif + #ifdef _4 + #undef _4 + #define g + #endif + #ifdef _5 + #undef _5 + #define h + #endif + #ifdef _6 + #undef _6 + #define Z + #endif + #ifdef _7 + #undef _7 + #define j + #endif + #ifdef _8 + #undef _8 + #define k + #endif + #ifdef _9 + #undef _9 + #define m + #endif + #ifdef _r + #undef _r + #define n + #endif + #define H + #include "vik2_1.c" + #ifdef d + #define _h + #endif + #ifdef e + #define _t + #endif + #ifdef f + #define _3 + #endif + #ifdef g + #define _4 + #endif + #ifdef h + #define _5 + #endif + #ifdef Z + #define _6 + #endif + #ifdef j + #define _7 + #endif + #ifdef k + #define _8 + #endif + #ifdef m + #define _9 + #endif + #ifdef n + #define _r + #endif + #define o + #include "vik2_1.c" + #undef _s + #else + #ifdef _q + #define F + #else + #define _u + #endif + #include "vik2_1.c" + #ifdef c + #define _y + #endif + #ifdef d + #define _z + #endif + #ifdef e + #define _A + #endif + #ifdef f + #define _B + #endif + #ifdef g + #define _C + #endif + #ifdef h + #define _D + #endif + #ifdef Z + #define _E + #endif + #ifdef j + #define _F + #endif + #ifdef k + #define _G + #endif + #ifdef m + #define _H + #endif + #ifdef n + #define _I + #endif + #endif + #endif + #else + #ifdef _J + #define _x + #include "vik2_1.c" + #include "vik2_1.c" + #include "vik2_1.c" + #include "vik2_1.c" + #include "vik2_1.c" + #include "vik2_1.c" + #include "vik2_1.c" + #include "vik2_1.c" + #include "vik2_1.c" + #include "vik2_1.c" + #undef _x + #else + #ifdef _K + #define _J + #include "vik2_1.c" + #include "vik2_1.c" + #include "vik2_1.c" + #include "vik2_1.c" + #include "vik2_1.c" + #include "vik2_1.c" + #include "vik2_1.c" + #include "vik2_1.c" + #include "vik2_1.c" + #include "vik2_1.c" + #undef _J + #else + #define _K + #include "vik2_1.c" + #include "vik2_1.c" + #include "vik2_1.c" + #include "vik2_1.c" + #include "vik2_1.c" + #include "vik2_1.c" + #include "vik2_1.c" + #include "vik2_1.c" + #include "vik2_1.c" + #include "vik2_1.c" + #undef _K + #ifndef K + #include "vik2_1.c" + #endif + #endif + #endif + #endif + #endif + #endif + #endif + #endif + #endif + #endif + #endif + #else + #define i + #ifdef _N +printf( + +"%d" +"\n" +, +1 + #else + + + +# 1 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h" 1 3 4 +# 64 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h" 3 4 +# 1 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h" 1 3 4 +# 68 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h" 3 4 +# 1 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h" 1 3 4 +# 666 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h" 3 4 +# 1 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_symbol_aliasing.h" 1 3 4 +# 667 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h" 2 3 4 +# 732 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h" 3 4 +# 1 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_posix_availability.h" 1 3 4 +# 733 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h" 2 3 4 +# 69 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h" 2 3 4 +# 1 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/Availability.h" 1 3 4 +# 165 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/Availability.h" 3 4 +# 1 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityVersions.h" 1 3 4 +# 166 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/Availability.h" 2 3 4 +# 1 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternal.h" 1 3 4 +# 167 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/Availability.h" 2 3 4 +# 70 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h" 2 3 4 + +# 1 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_types.h" 1 3 4 +# 27 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_types.h" 3 4 +# 1 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h" 1 3 4 +# 33 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h" 3 4 +# 1 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/machine/_types.h" 1 3 4 +# 34 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/machine/_types.h" 3 4 +# 1 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/arm/_types.h" 1 3 4 +# 15 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/arm/_types.h" 3 4 +typedef signed char __int8_t; + + + +typedef unsigned char __uint8_t; +typedef short __int16_t; +typedef unsigned short __uint16_t; +typedef int __int32_t; +typedef unsigned int __uint32_t; +typedef long long __int64_t; +typedef unsigned long long __uint64_t; + +typedef long __darwin_intptr_t; +typedef unsigned int __darwin_natural_t; +# 48 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/arm/_types.h" 3 4 +typedef int __darwin_ct_rune_t; + + + + + +typedef union { + char __mbstate8[128]; + long long _mbstateL; +} __mbstate_t; + +typedef __mbstate_t __darwin_mbstate_t; + + +typedef long int __darwin_ptrdiff_t; + + + + + + + +typedef long unsigned int __darwin_size_t; + + + + + +typedef __builtin_va_list __darwin_va_list; + + + + + +typedef int __darwin_wchar_t; + + + + +typedef __darwin_wchar_t __darwin_rune_t; + + +typedef int __darwin_wint_t; + + + + +typedef unsigned long __darwin_clock_t; +typedef __uint32_t __darwin_socklen_t; +typedef long __darwin_ssize_t; +typedef long __darwin_time_t; +# 35 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/machine/_types.h" 2 3 4 +# 34 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h" 2 3 4 +# 55 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h" 3 4 +typedef __int64_t __darwin_blkcnt_t; +typedef __int32_t __darwin_blksize_t; +typedef __int32_t __darwin_dev_t; +typedef unsigned int __darwin_fsblkcnt_t; +typedef unsigned int __darwin_fsfilcnt_t; +typedef __uint32_t __darwin_gid_t; +typedef __uint32_t __darwin_id_t; +typedef __uint64_t __darwin_ino64_t; + +typedef __darwin_ino64_t __darwin_ino_t; + + + +typedef __darwin_natural_t __darwin_mach_port_name_t; +typedef __darwin_mach_port_name_t __darwin_mach_port_t; +typedef __uint16_t __darwin_mode_t; +typedef __int64_t __darwin_off_t; +typedef __int32_t __darwin_pid_t; +typedef __uint32_t __darwin_sigset_t; +typedef __int32_t __darwin_suseconds_t; +typedef __uint32_t __darwin_uid_t; +typedef __uint32_t __darwin_useconds_t; +typedef unsigned char __darwin_uuid_t[16]; +typedef char __darwin_uuid_string_t[37]; + +# 1 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_pthread/_pthread_types.h" 1 3 4 +# 57 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_pthread/_pthread_types.h" 3 4 +struct __darwin_pthread_handler_rec { + void (*__routine)(void *); + void *__arg; + struct __darwin_pthread_handler_rec *__next; +}; + +struct _opaque_pthread_attr_t { + long __sig; + char __opaque[56]; +}; + +struct _opaque_pthread_cond_t { + long __sig; + char __opaque[40]; +}; + +struct _opaque_pthread_condattr_t { + long __sig; + char __opaque[8]; +}; + +struct _opaque_pthread_mutex_t { + long __sig; + char __opaque[56]; +}; + +struct _opaque_pthread_mutexattr_t { + long __sig; + char __opaque[8]; +}; + +struct _opaque_pthread_once_t { + long __sig; + char __opaque[8]; +}; + +struct _opaque_pthread_rwlock_t { + long __sig; + char __opaque[192]; +}; + +struct _opaque_pthread_rwlockattr_t { + long __sig; + char __opaque[16]; +}; + +struct _opaque_pthread_t { + long __sig; + struct __darwin_pthread_handler_rec *__cleanup_stack; + char __opaque[8176]; +}; + +typedef struct _opaque_pthread_attr_t __darwin_pthread_attr_t; +typedef struct _opaque_pthread_cond_t __darwin_pthread_cond_t; +typedef struct _opaque_pthread_condattr_t __darwin_pthread_condattr_t; +typedef unsigned long __darwin_pthread_key_t; +typedef struct _opaque_pthread_mutex_t __darwin_pthread_mutex_t; +typedef struct _opaque_pthread_mutexattr_t __darwin_pthread_mutexattr_t; +typedef struct _opaque_pthread_once_t __darwin_pthread_once_t; +typedef struct _opaque_pthread_rwlock_t __darwin_pthread_rwlock_t; +typedef struct _opaque_pthread_rwlockattr_t __darwin_pthread_rwlockattr_t; +typedef struct _opaque_pthread_t *__darwin_pthread_t; +# 81 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h" 2 3 4 +# 28 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_types.h" 2 3 4 +# 40 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_types.h" 3 4 +typedef int __darwin_nl_item; +typedef int __darwin_wctrans_t; + +typedef __uint32_t __darwin_wctype_t; +# 72 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h" 2 3 4 + + + +# 1 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_va_list.h" 1 3 4 +# 31 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_va_list.h" 3 4 +# 1 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/machine/types.h" 1 3 4 +# 37 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/machine/types.h" 3 4 +# 1 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/arm/types.h" 1 3 4 +# 55 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/arm/types.h" 3 4 +# 1 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_int8_t.h" 1 3 4 +# 30 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_int8_t.h" 3 4 +typedef signed char int8_t; +# 56 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/arm/types.h" 2 3 4 +# 1 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_int16_t.h" 1 3 4 +# 30 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_int16_t.h" 3 4 +typedef short int16_t; +# 57 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/arm/types.h" 2 3 4 +# 1 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_int32_t.h" 1 3 4 +# 30 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_int32_t.h" 3 4 +typedef int int32_t; +# 58 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/arm/types.h" 2 3 4 +# 1 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_int64_t.h" 1 3 4 +# 30 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_int64_t.h" 3 4 +typedef long long int64_t; +# 59 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/arm/types.h" 2 3 4 + +# 1 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_u_int8_t.h" 1 3 4 +# 30 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_u_int8_t.h" 3 4 +typedef unsigned char u_int8_t; +# 61 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/arm/types.h" 2 3 4 +# 1 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_u_int16_t.h" 1 3 4 +# 30 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_u_int16_t.h" 3 4 +typedef unsigned short u_int16_t; +# 62 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/arm/types.h" 2 3 4 +# 1 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_u_int32_t.h" 1 3 4 +# 30 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_u_int32_t.h" 3 4 +typedef unsigned int u_int32_t; +# 63 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/arm/types.h" 2 3 4 +# 1 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_u_int64_t.h" 1 3 4 +# 30 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_u_int64_t.h" 3 4 +typedef unsigned long long u_int64_t; +# 64 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/arm/types.h" 2 3 4 + + +typedef int64_t register_t; + + + + +# 1 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_intptr_t.h" 1 3 4 +# 30 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_intptr_t.h" 3 4 +# 1 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/machine/types.h" 1 3 4 +# 31 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_intptr_t.h" 2 3 4 + +typedef __darwin_intptr_t intptr_t; +# 72 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/arm/types.h" 2 3 4 +# 1 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_uintptr_t.h" 1 3 4 +# 34 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_uintptr_t.h" 3 4 +typedef unsigned long uintptr_t; +# 73 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/arm/types.h" 2 3 4 + + + + +typedef u_int64_t user_addr_t; +typedef u_int64_t user_size_t; +typedef int64_t user_ssize_t; +typedef int64_t user_long_t; +typedef u_int64_t user_ulong_t; +typedef int64_t user_time_t; +typedef int64_t user_off_t; +# 104 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/arm/types.h" 3 4 +typedef u_int64_t syscall_arg_t; +# 38 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/machine/types.h" 2 3 4 +# 32 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_va_list.h" 2 3 4 +typedef __darwin_va_list va_list; +# 76 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h" 2 3 4 +# 1 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_size_t.h" 1 3 4 +# 31 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_size_t.h" 3 4 +typedef __darwin_size_t size_t; +# 77 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h" 2 3 4 +# 1 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_null.h" 1 3 4 +# 78 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h" 2 3 4 + +# 1 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/stdio.h" 1 3 4 +# 47 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/stdio.h" 3 4 +int renameat(int, const char *, int, const char *) __attribute__((availability(macosx,introduced=10.10))); + + + +int renamex_np(const char *, const char *, unsigned int) __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); +int renameatx_np(int, const char *, int, const char *, unsigned int) __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); +# 80 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h" 2 3 4 + +typedef __darwin_off_t fpos_t; +# 92 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h" 3 4 +struct __sbuf { + unsigned char *_base; + int _size; +}; + + +struct __sFILEX; +# 126 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h" 3 4 +typedef struct __sFILE { + unsigned char *_p; + int _r; + int _w; + short _flags; + short _file; + struct __sbuf _bf; + int _lbfsize; + + + void *_cookie; + int (* _Nullable _close)(void *); + int (* _Nullable _read) (void *, char *, int); + fpos_t (* _Nullable _seek) (void *, fpos_t, int); + int (* _Nullable _write)(void *, const char *, int); + + + struct __sbuf _ub; + struct __sFILEX *_extra; + int _ur; + + + unsigned char _ubuf[3]; + unsigned char _nbuf[1]; + + + struct __sbuf _lb; + + + int _blksize; + fpos_t _offset; +} FILE; +# 65 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h" 2 3 4 + + +extern FILE *__stdinp; +extern FILE *__stdoutp; +extern FILE *__stderrp; +# 142 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h" 3 4 +void clearerr(FILE *); +int fclose(FILE *); +int feof(FILE *); +int ferror(FILE *); +int fflush(FILE *); +int fgetc(FILE *); +int fgetpos(FILE * restrict, fpos_t *); +char *fgets(char * restrict, int, FILE *); + + + +FILE *fopen(const char * restrict __filename, const char * restrict __mode) __asm("_" "fopen" ); + +int fprintf(FILE * restrict, const char * restrict, ...) __attribute__((__format__ (__printf__, 2, 3))); +int fputc(int, FILE *); +int fputs(const char * restrict, FILE * restrict) __asm("_" "fputs" ); +size_t fread(void * restrict __ptr, size_t __size, size_t __nitems, FILE * restrict __stream); +FILE *freopen(const char * restrict, const char * restrict, + FILE * restrict) __asm("_" "freopen" ); +int fscanf(FILE * restrict, const char * restrict, ...) __attribute__((__format__ (__scanf__, 2, 3))); +int fseek(FILE *, long, int); +int fsetpos(FILE *, const fpos_t *); +long ftell(FILE *); +size_t fwrite(const void * restrict __ptr, size_t __size, size_t __nitems, FILE * restrict __stream) __asm("_" "fwrite" ); +int getc(FILE *); +int getchar(void); + + +__attribute__((__deprecated__("This function is provided for compatibility reasons only. Due to security concerns inherent in the design of gets(3), it is highly recommended that you use fgets(3) instead."))) + +char *gets(char *); + +void perror(const char *) __attribute__((__cold__)); +int printf(const char * restrict, ...) __attribute__((__format__ (__printf__, 1, 2))); +int putc(int, FILE *); +int putchar(int); +int puts(const char *); +int remove(const char *); +int rename (const char *__old, const char *__new); +void rewind(FILE *); +int scanf(const char * restrict, ...) __attribute__((__format__ (__scanf__, 1, 2))); +void setbuf(FILE * restrict, char * restrict); +int setvbuf(FILE * restrict, char * restrict, int, size_t); + +__attribute__((__availability__(swift, unavailable, message="Use snprintf instead."))) + +__attribute__((__deprecated__("This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead."))) + +int sprintf(char * restrict, const char * restrict, ...) __attribute__((__format__ (__printf__, 2, 3))); + +int sscanf(const char * restrict, const char * restrict, ...) __attribute__((__format__ (__scanf__, 2, 3))); +FILE *tmpfile(void); + +__attribute__((__availability__(swift, unavailable, message="Use mkstemp(3) instead."))) + +__attribute__((__deprecated__("This function is provided for compatibility reasons only. Due to security concerns inherent in the design of tmpnam(3), it is highly recommended that you use mkstemp(3) instead."))) + +char *tmpnam(char *); + +int ungetc(int, FILE *); +int vfprintf(FILE * restrict, const char * restrict, va_list) __attribute__((__format__ (__printf__, 2, 0))); +int vprintf(const char * restrict, va_list) __attribute__((__format__ (__printf__, 1, 0))); + +__attribute__((__availability__(swift, unavailable, message="Use vsnprintf instead."))) + +__attribute__((__deprecated__("This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use vsnprintf(3) instead."))) + +int vsprintf(char * restrict, const char * restrict, va_list) __attribute__((__format__ (__printf__, 2, 0))); +# 222 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h" 3 4 +# 1 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_ctermid.h" 1 3 4 +# 31 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_ctermid.h" 3 4 +char *ctermid(char *); +# 223 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h" 2 3 4 + + + + +FILE *fdopen(int, const char *) __asm("_" "fdopen" ); + +int fileno(FILE *); +# 240 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h" 3 4 +int pclose(FILE *) __attribute__((__availability__(swift, unavailable, message="Use posix_spawn APIs or NSTask instead. (On iOS, process spawning is unavailable.)"))); + + + +FILE *popen(const char *, const char *) __asm("_" "popen" ) __attribute__((__availability__(swift, unavailable, message="Use posix_spawn APIs or NSTask instead. (On iOS, process spawning is unavailable.)"))); +# 259 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h" 3 4 +int __srget(FILE *); +int __svfscanf(FILE *, const char *, va_list) __attribute__((__format__ (__scanf__, 2, 0))); +int __swbuf(int, FILE *); +# 270 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h" 3 4 +inline __attribute__ ((__always_inline__)) int __sputc(int _c, FILE *_p) { + if (--_p->_w >= 0 || (_p->_w >= _p->_lbfsize && (char)_c != '\n')) + return (*_p->_p++ = _c); + else + return (__swbuf(_c, _p)); +} +# 296 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h" 3 4 +void flockfile(FILE *); +int ftrylockfile(FILE *); +void funlockfile(FILE *); +int getc_unlocked(FILE *); +int getchar_unlocked(void); +int putc_unlocked(int, FILE *); +int putchar_unlocked(int); + + + +int getw(FILE *); +int putw(int, FILE *); + + +__attribute__((__availability__(swift, unavailable, message="Use mkstemp(3) instead."))) + +__attribute__((__deprecated__("This function is provided for compatibility reasons only. Due to security concerns inherent in the design of tempnam(3), it is highly recommended that you use mkstemp(3) instead."))) + +char *tempnam(const char *__dir, const char *__prefix) __asm("_" "tempnam" ); +# 334 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h" 3 4 +# 1 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_off_t.h" 1 3 4 +# 31 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_off_t.h" 3 4 +typedef __darwin_off_t off_t; +# 335 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h" 2 3 4 + + +int fseeko(FILE * __stream, off_t __offset, int __whence); +off_t ftello(FILE * __stream); + + + + + +int snprintf(char * restrict __str, size_t __size, const char * restrict __format, ...) __attribute__((__format__ (__printf__, 3, 4))); +int vfscanf(FILE * restrict __stream, const char * restrict __format, va_list) __attribute__((__format__ (__scanf__, 2, 0))); +int vscanf(const char * restrict __format, va_list) __attribute__((__format__ (__scanf__, 1, 0))); +int vsnprintf(char * restrict __str, size_t __size, const char * restrict __format, va_list) __attribute__((__format__ (__printf__, 3, 0))); +int vsscanf(const char * restrict __str, const char * restrict __format, va_list) __attribute__((__format__ (__scanf__, 2, 0))); +# 359 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h" 3 4 +# 1 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_ssize_t.h" 1 3 4 +# 31 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_ssize_t.h" 3 4 +typedef __darwin_ssize_t ssize_t; +# 360 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h" 2 3 4 + + +int dprintf(int, const char * restrict, ...) __attribute__((__format__ (__printf__, 2, 3))) __attribute__((availability(macosx,introduced=10.7))); +int vdprintf(int, const char * restrict, va_list) __attribute__((__format__ (__printf__, 2, 0))) __attribute__((availability(macosx,introduced=10.7))); +ssize_t getdelim(char ** restrict __linep, size_t * restrict __linecapp, int __delimiter, FILE * restrict __stream) __attribute__((availability(macosx,introduced=10.7))); +ssize_t getline(char ** restrict __linep, size_t * restrict __linecapp, FILE * restrict __stream) __attribute__((availability(macosx,introduced=10.7))); +FILE *fmemopen(void * restrict __buf, size_t __size, const char * restrict __mode) __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))); +FILE *open_memstream(char **__bufp, size_t *__sizep) __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))); +# 377 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h" 3 4 +extern const int sys_nerr; +extern const char *const sys_errlist[]; + +int asprintf(char ** restrict, const char * restrict, ...) __attribute__((__format__ (__printf__, 2, 3))); +char *ctermid_r(char *); +char *fgetln(FILE *, size_t *); +const char *fmtcheck(const char *, const char *) __attribute__((format_arg(2))); +int fpurge(FILE *); +void setbuffer(FILE *, char *, int); +int setlinebuf(FILE *); +int vasprintf(char ** restrict, const char * restrict, va_list) __attribute__((__format__ (__printf__, 2, 0))); + + + + + +FILE *funopen(const void *, + int (* _Nullable)(void *, char *, int), + int (* _Nullable)(void *, const char *, int), + fpos_t (* _Nullable)(void *, fpos_t, int), + int (* _Nullable)(void *)); +# 416 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h" 3 4 +# 1 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h" 1 3 4 +# 31 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h" 3 4 +# 1 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/secure/_common.h" 1 3 4 +# 32 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h" 2 3 4 +# 42 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h" 3 4 +extern int __sprintf_chk (char * restrict, int, size_t, + const char * restrict, ...); +# 52 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h" 3 4 +extern int __snprintf_chk (char * restrict, size_t, int, size_t, + const char * restrict, ...); + + + + + + + +extern int __vsprintf_chk (char * restrict, int, size_t, + const char * restrict, va_list); + + + + + + + +extern int __vsnprintf_chk (char * restrict, size_t, int, size_t, + const char * restrict, va_list); +# 417 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h" 2 3 4 +# 1012 "vik2.c" 2 +int main() + + + #define _N + #define _h + #define _M + #undef i +{ + #include "vik2_1.c" ++ +1 +) +; + #include "vik2_1.c" +} + #endif + #endif diff --git a/thanks-for-fixes.md b/thanks-for-fixes.md index 96c49003a..678deec42 100644 --- a/thanks-for-fixes.md +++ b/thanks-for-fixes.md @@ -958,7 +958,7 @@ int and the rest must be a `char **`. ## [2004/gavin](2004/gavin/gavin.c) ([README.md](2004/gavin/README.md])) -Yusuke provided the `kernel` and `fs.tar` +Yusuke provided the `kernel` and `fs.tar` files which can be used if you cannot normally use this entry. Instead of generating the files just use the files provided, found under the [img/](2004/gavin/img/) @@ -982,6 +982,78 @@ second arg to main, which clang requires to be a `char **`, to be not the same name as a function defined earlier in the code and to use that variable which `main()` used. +## [2004/vik2](2004/vik2/vik2.c) ([README.md](2004/vik2/README.md)) + +Cody fixed this to compile in Linux. Although it compiled cleanly in macOS (and +BSD?) the code failed to compile at all in Linux due to: + +```c +cc -E vik2_1.c > vik2_2.c +In file included from vik2.c:945, + from vik2.c:959, + from vik2.c:972, + from vik2.c:1025: +vik2.c:383:8: error: no macro name given in #ifdef directive + 383 | O \ + | ^ +In file included from vik2.c:946: +vik2.c:383:8: error: no macro name given in #ifdef directive + 383 | O \ + | ^ +In file included from vik2.c:947: +vik2.c:383:8: error: no macro name given in #ifdef directive + 383 | O \ + | ^ +In file included from vik2.c:948: +vik2.c:383:8: error: no macro name given in #ifdef directive + 383 | O \ + | ^ + +... + +In file included from vik2.c:182: + +vik2.c:992:85: error: #include nested depth 201 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum) + 992 | I + | ^ +vik2.c:1497:21: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum) +vik2.c:1498:21: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum) +vik2.c:1499:21: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum) +vik2.c:1500:21: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum) +vik2.c:1501:21: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum) +vik2.c:1504:21: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum) +make: *** [Makefile:133: vik2] Error 1 + +``` + +Unfortunately the fix required heavy modification to the original file (see +below) and also inclusion of what used to be generated by the +[Makefile](2004/vik2/Makefile) and will, in Linux, give many warnings like: + +```c +cc -std=gnu99 -Wall -Wextra -pedantic -Wno-strict-prototypes -Wno-implicit-function-declaration -O3 -DFNAME='"vik2.c"' '-DSTOP=_5' vik2.c -o vik2 +In file included from vik2.c:1002: +vik2_1.c: In function 'main': +vik2_1.c:1:3: warning: style of line directive is a GCC extension + 1 | # 1 "vik2.c" + | ^ + +... + +``` + +(which does not show up in macOS) but now it at least works for both Linux and +macOS. + +As for the fix itself it required changing the C pre-processor macros that +resulted in macros themselves like `#ifdef`, `#else` etc. to be `#ifdef`, +`#else` etc. and also the inclusion of the file [vik2_1.c](2004/vik2/vik2_1.c) +which used to be generated by the Makefile via `cc -E`. As one can see that file +has references to macOS things but this is not harmful in Linux. It might be +that those lines can be removed but there is no harm and since there are a lot +of it this has not been done (`vik2.c` has 1009 lines and `vik2_1.c` has 1555 +lines!). + ## [2005/aidan](2005/aidan/aidan.c) ([README.md](2005/aidan/README.md]))