Fixes in 1998/df
A pointer to int was being used for fopen(3) and this has been changed to a FILE * as using the wrong type has been observed in some cases to cause programs to fail. Make the code more like the original by using the old style main() arg so that it could read 'int main(i,love_unix)' and also changing the typedef for 'int' from 'lint' to be '_int' (see the code for why it no longer can be 'int' and ask yourself why it can be 'int' in other cases). Format/typo check README.md file.
This commit is contained in:
1 parent
10b5b47466
commit
504813918d
4 files changed
+24
-14
No files matched your search
+3
-3
@@ -1,5 +1,5 @@
|
||||
#ifndef int
|
||||
typedef int lint;
|
||||
typedef int _int;
|
||||
#ifdef while
|
||||
char s[234],d[56],*p=s,m='m';
|
||||
#define int typedef (*define)();\
|
||||
@@ -10,14 +10,14 @@ signed short n(short bz){
|
||||
char o=1,i=1,l,pc=i,b=r+o/2,_f=6,m=7,s=8,g,q,od=o*rs+4^s,js=_f/*3-m*'c',bs='g';
|
||||
return 1; }
|
||||
#y FILE c[a]+s,p[c],r[m]+u[i+4*o|f]-r[wob][wad]+s*f-!w|o,L+x | cut
|
||||
;}int main(lint i,char**love_unix){*/;}int main(lint i,char**love_unix){/*;}int main(lint i,char**love_unix){*\;}| here */
|
||||
;}int main(i,love_unix)_int i;char**love_unix;{*/;}int main(i,love_unix)_int i;char**love_unix;{/*;}int main(i,love_unix)_int i;char**love_unix;{*\;}| here */
|
||||
while(FILE)for(;9-(i=0[O](f)););
|
||||
for(;32-(i=0[O](f));0&& 3[O]("-->%s<--", "gxdgbtgxsxpcctvpixktedhiedcte"));
|
||||
for(;'\n'-(i=O[0](f));)(i>='a'&&i<'z')?*
|
||||
#include __FILE__
|
||||
"Demonic Smiley" );} /* <g> */
|
||||
#else
|
||||
#define while(int) short c=0;int*f=fopen(__##int##__,"r");for(i=0;i<25;i _)i[d]='A'+(13+i)%26;main:
|
||||
#define while(int) short c=0;FILE*f=fopen(__##int##__,"r");for(i=0;i<25;i _)i[d]='A'+(13+i)%26;main:
|
||||
#define y define
|
||||
#define _ ++
|
||||
#include <stdio.h>
|
||||
|
||||
Reference in new issue
Block a user