Make 1985/sicherman even more like original
There were some places that macros could be used and some commented code could be removed to make it more like the original too.
This commit is contained in:
1 parent
e8eec65f9b
commit
142a2f2863
2 files changed
+9
-9
No files matched your search
@@ -12,10 +12,9 @@ char **V;
|
||||
* up.) (In the C Manual)*/
|
||||
{
|
||||
char _,__;
|
||||
while (read(0,&__,1) & write((_=(_=~' '&__,/*/)),
|
||||
_C_,1)) _=/*/-('\b'b'\b'>=_|_>'\t'b'\n'))?__:__-_+
|
||||
'\b'b'\b'|((_-52)%('\b'b'\b'+~' '&'\t'b'\n')+1),1),
|
||||
&_,1))_=0/*C-*V+subr(&V)*/;
|
||||
while (read(0,&__,1) & write((_=(_=C_C_(__),-
|
||||
('\b'b'\b'>=C_C>'\t'b'\n'))?__:__-_+'\b'b'\b'|
|
||||
((_-52)%('\b'b'\b'+~' '&'\t'b'\n')+1),1),&_,1))_=0;
|
||||
}
|
||||
|
||||
subr(C)
|
||||
|
||||
+6
-5
@@ -426,15 +426,16 @@ replaced for actual code so that instead of having the while loop condition as:
|
||||
|
||||
we have it as:
|
||||
|
||||
while (read(0,&__,1) & write((_=(_=~' '&__,/*/)),
|
||||
_C_,1)) _=/*/-('\b'b'\b'>=_|_>'\t'b'\n'))?__:__-_+
|
||||
'\b'b'\b'|((_-52)%('\b'b'\b'+~' '&'\t'b'\n')+1),1),
|
||||
&_,1))_=0/*C-*V+subr(&V)*/;
|
||||
while (read(0,&__,1) & write((_=(_=C_C_(__),-
|
||||
('\b'b'\b'>=C_C>'\t'b'\n'))?__:__-_+'\b'b'\b'|
|
||||
((_-52)%('\b'b'\b'+~' '&'\t'b'\n')+1),1),&_,1))_=0;
|
||||
|
||||
Note how numerous of the macros can still be used but some cannot.
|
||||
|
||||
- Finally, the function `subr()` cannot, as the above shows, be called in the
|
||||
body of the `while()` loop as calling it will result in incorrect output, once
|
||||
you even get it to compile (involving a cast, for instance, amongst other ways).
|
||||
Note though that we can still assign to the `\_` but we can't assign by calling
|
||||
Note though that we can still assign to the `_` but we can't assign by calling
|
||||
the function.
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user