Merge pull request #1540 from xexyl/august85
This commit is contained in:
3 files changed
+15
-7
No files matched your search
@@ -39,7 +39,8 @@ include ../../var.mk
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-error -Wno-implicit-function-declaration -Wno-main \
|
||||
-Wno-unused-parameter -Wno-unused-variable -Wno-deprecated-non-prototype
|
||||
-Wno-unused-parameter -Wno-unused-variable -Wno-deprecated-non-prototype \
|
||||
-Wno-implicit-int
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
|
||||
@@ -10,5 +10,5 @@
|
||||
q{int a;p{q*(*a)();int b;p*c;}*b;};q*u n a=z(q);h=d;i=z(p);i->a=u;i->b=d+1;s
|
||||
v n c=b;do o,b=i;while(!(h%d));i=c;i->a=v;i->b=d;e=b;s
|
||||
w n o;c=i;i=b;i->a=w;e=z(p);e->a=v;e->b=h;e->c=c;s
|
||||
t n for(;;)o,main(-h),b=i;}main(b){p*a;if(b>0)a=z(p),h=w,a->c=z(p),a->c->a=u,
|
||||
a->c->b=2,t(0,a);putchar(b?main(b/2),-b%2+'0':10);}
|
||||
t n for(;;)o,main(-h,0),b=i;}main(b,f)char**f;{p*a;if(b>0)a=z(p),h=w,a->c=z(p),a->c->a=u,
|
||||
a->c->b=2,t(0,a);putchar(b?main(b/2,0),-b%2+'0':10);}
|
||||
+11
-4
@@ -178,10 +178,17 @@ returning to the shell. The original version does not have this change.
|
||||
|
||||
## [1985/august](1985/august/august.c) ([README.md](1985/august/README.md))
|
||||
|
||||
Cody added the script [primes.sh](1985/august/primes.sh) which allows one to
|
||||
check the output for the first N prime numbers of the output, where N is either
|
||||
the default or user specified. The inspiration was the previous 'try' command he
|
||||
gave to have fun with finding primes that might seem unusual in a way.
|
||||
Cody, out of abundance of caution, added a second arg to `main()` because some
|
||||
versions of clang object to the number of args of `main()`, saying that it must
|
||||
be 0, 2 or 3. The version this has been observed in does not actually object to
|
||||
1 arg but it is entirely possible that this changes so a second arg (that's not
|
||||
needed and is unused) has been added just in case.
|
||||
|
||||
Cody also added the script [primes.sh](1985/august/primes.sh) which allows one
|
||||
to check the output for the first N prime numbers of the output, where N is
|
||||
either the default or user specified. The inspiration was the previous 'try'
|
||||
command he gave to have fun with finding primes that might seem unusual in a
|
||||
way.
|
||||
|
||||
|
||||
## [1985/lycklama](1985/lycklama/lycklama.c) ([README.md](1985/lycklama/README.md]))
|
||||
|
||||
Reference in new issue
Block a user