Add note to 1989/fubar/README.md
Don't run ouroboros.c directly or it'll get stuck in an infinite loop. Also moved the author's comments to the first column of the file.
This commit is contained in:
1 parent
be9cd12e53
commit
2528faef14
1 file changed
+13
-10
+13
-10
@@ -25,20 +25,23 @@ Do you know why?
|
|||||||
With a bit of tinkering Cody Boone Ferguson got this to work on modern systems.
|
With a bit of tinkering Cody Boone Ferguson got this to work on modern systems.
|
||||||
We thank him for his assistance!
|
We thank him for his assistance!
|
||||||
|
|
||||||
|
NOTE: don't try running `ouroboros.c` directly with an arg as it'll turn into an
|
||||||
|
infinite loop.
|
||||||
|
|
||||||
## Author's comments
|
## Author's comments
|
||||||
|
|
||||||
In a nutshell, this is probably the slowest and most
|
In a nutshell, this is probably the slowest and most
|
||||||
obnoxious factorial program ever written. Unfortunately,
|
obnoxious factorial program ever written. Unfortunately,
|
||||||
the name of the C source must be "ouroboros.c"; the name is
|
the name of the C source must be "ouroboros.c"; the name is
|
||||||
hard-coded into the program.
|
hard-coded into the program.
|
||||||
|
|
||||||
The source is a legal shell script and a legal C program.
|
The source is a legal shell script and a legal C program.
|
||||||
The shell script compiles itself, and then executes the
|
The shell script compiles itself, and then executes the
|
||||||
resulting binary, giving the source as input. The program
|
resulting binary, giving the source as input. The program
|
||||||
works by successively modifying #define lines each pass through.
|
works by successively modifying #define lines each pass through.
|
||||||
|
|
||||||
Both "indent" and "cb" will damage the program, "indent"
|
Both "indent" and "cb" will damage the program, "indent"
|
||||||
much more so.
|
much more so.
|
||||||
|
|
||||||
Copyright (c) 1989, Landon Curt Noll & Larry Bassel.
|
Copyright (c) 1989, Landon Curt Noll & Larry Bassel.
|
||||||
All Rights Reserved. Permission for personal, educational or non-profit use is
|
All Rights Reserved. Permission for personal, educational or non-profit use is
|
||||||
|
|||||||
Reference in new issue
Block a user