All 1990 entries now compile!

My first 41st, 51st and 29th (all depending on the base) birthday
updates (possibly more will follow but this is not a certainty). All the
1990 entries now compile!

In one we used a patch from Yusuke Endoh (thank you Yusuke!) which we
credited him in the README and in another we used a tip from him (use
-ansi at the compiler line) to get the other to compile (again, thank
you Yusuke!). We fixed the others. In the case of 1990/tbr/tbr.c the
author had supplied a shorter version and we fixed that one too.

Added 1990/.gitignore which has the built files of 1990 so that after
doing `cd 1990 ; make all' running `git status .' will not show any
untracked files.
This commit is contained in:
Cody Boone Ferguson committed 2023-02-14 03:08:25 -08:00
1 parent 7d369d8882
commit 37fb84c37c
11 files changed
+135 -94

No files matched your search

+7 -5
View File
@@ -18,16 +18,18 @@
## Judges' comments
Some C preprocessors get confused about single quotes in certain cases.
Some C preprocessors got confused about single quotes in certain cases.
In particular, the following source line:
Cb12(ase(bco(acp(bi(acp(bcp(acp(bpl(aqu(bqu(A))))))))))))))))))))))))))))))
b12(ase(bco(acp(bi(acp(bcp(acp(bpl(aqu(bqu(A))))))))))))))))))))))))))))))
may need to be changed to:
sometimes has to be changed to:
Cb12(ase(bco(acp(bi(acp(bcp(acp(bpl('A'))))))))))))))))))))))))))))
b12(ase(bco(acp(bi(acp(bcp(acp(bpl('A'))))))))))))))))))))))))))))
if the C preprocessor botches single quotes in cpp expansions, which we have
done for the wider audience.
if your C preprocessor botches single quotes in cpp expansions.
## Author's comments
+61 -63
View File
@@ -1,69 +1,67 @@
#include <stdio.h>
#define d define
#d b12(x) 12 x
#d a13(x) x 13
#d a16(x) x 16
#d a32(x) x 32
#d acb(x) x]
#d acc(x) x}
#d aco(x) x:
#d bco(x) :x
#d acp(x) x)
#d bef(x) EOF x
#d aeq(x) x=
#d afo(x) x for
#d age(x) x fgetc
#d asi(x) x stdin
#d aso(x) x stdout
#d bgt(x) >x
#d ai(x) x i
#d aj(x) x j
#d al(x) x l
#d ami(x) x-
#d bne(x) !=x
#d aob(x) x[
#d aop(x) x(
#d apl(x) x+
#d bpu(x) fputc x
#d bqm(x) ?x
#d aqm(x) x?
#d aqu(x) x'
#d ase(x) x;
#d awh(x) x while
#d axo(x) x^
#d a0(x) x 0
#d b13(x) 13 x
#d b16(x) 16 x
#d b19(x) 19 x
#d b48(x) 48 x
#d a64(x) x 64
#d b66(x) 66 x
#d bcb(x) ]x
#d bch(x) char x
#d bcm(x) ,x
#d acm(x) x,
#d bcp(x) )x
#d beq(x) =x
#d bex(x) extern x
#d bi(x) i x
#d bin(x) int x
#d bix(x) index x
#d bj(x) j x
#d bl(x) l x
#d alt(x) x<
#d bma(x) main x
#d bob(x) [x
#d boc(x) {x
#d bop(x) (x
#d bpl(x) +x
#d app(x) x++
#d bqu(x) 'x
#d bse(x) ;x
#d bst(x) *x
#define b12(x) 12 x
#define a13(x) x 13
#define a16(x) x 16
#define a32(x) x 32
#define acb(x) x]
#define acc(x) x}
#define aco(x) x:
#define bco(x) :x
#define acp(x) x)
#define bef(x) EOF x
#define aeq(x) x=
#define afo(x) x for
#define age(x) x fgetc
#define asi(x) x stdin
#define aso(x) x stdout
#define bgt(x) >x
#define ai(x) x i
#define aj(x) x j
#define al(x) x l
#define ami(x) x-
#define bne(x) !=x
#define aob(x) x[
#define aop(x) x(
#define apl(x) x+
#define bpu(x) fputc x
#define bqm(x) ?x
#define aqm(x) x?
#define aqu(x) x'
#define ase(x) x;
#define awh(x) x while
#define axo(x) x^
#define a0(x) x 0
#define b13(x) 13 x
#define b16(x) 16 x
#define b19(x) 19 x
#define b48(x) 48 x
#define a64(x) x 64
#define b66(x) 66 x
#define bcb(x) ]x
#define bch(x) char x
#define bcm(x) ,x
#define acm(x) x,
#define bcp(x) )x
#define beq(x) =x
#define bex(x) extern x
#define bi(x) i x
#define bin(x) int x
#define bix(x) index x
#define bj(x) j x
#define bl(x) l x
#define alt(x) x<
#define bma(x) main x
#define bob(x) [x
#define boc(x) {x
#define bop(x) (x
#define bpl(x) +x
#define app(x) x++
#define bqu(x) 'x
#define bse(x) ;x
#define bst(x) *x
bma(acp(bop(app(bcp(ai(boc(ase(bch(a16(bl(alt(bob(ai(b66(ase(bcb(a0(bcm(aeq(bst(acb(bj(a64(bse(aob(bin(al(bi(aeq(bse(ai(bex(aop(bch(afo(bst(ase(bix(())))))))))))))))))))))))))))))))))))))))
bl(ai(bob(aob(bi(al(bcb(aop(beq(apl(b13(a13(bpl(aeq(bop(acb(bl(bob(a32(bi(bpl(apl(b16(bcb(ai(beq(b19(aob(bpl(bop(l))))))))))))))))))))))))))))))
bpl(acp(b48(acp(asi(bcb(aop(beq(age(bop(aeq(bi(ai(bgt(aop(b12(aop(bqm(awh(b12(ase(bco(acp(bi(acp(bcp(acp(bpl(aqu(bqu(A))))))))))))))))))))))))))))))
bpl(acp(b48(acp(asi(bcb(aop(beq(age(bop(aeq(bi(ai(bgt(aop(b12(aop(bqm(awh(b12(ase(bco(acp(bi(acp(bcp(acp(bpl('A'))))))))))))))))))))))))))))
bne(acc(bef(ase(bcp(acp(aso(bpu(acm(ai(bop(aco(bop(acb(bj(al(beq(ami(bix(aj(axo(bop(a16(aob(bl(al(aqm(bcm(acp(acp(i))))))))))))))))))))))))))))))