force use of pandoc version >= 3.1.12.2
The `bin/pandoc-wrapper.sh` tool will verify that the ssytem has a recent enough version of `pandoc(1)`. We explain why we insist on `pandoc(1)`. version >= 3.1.12.2 in comments where the $PANDOC_MIN_VERSION is set. Added `--wrap=preserve` as a default argument to `pandoc(1)`. While this change will impact every HTML file generated, we believe this will improve the ability of someone to look at the generated HTML and correlate with the original markdown. Changed `bin/pandoc-wrapper.sh` VERSION from "1.4.2 2024-03-17" to "1.4.3 2024-03-18". Performed `make www` to achieve all of the above and to generate HTML using the new `--wrap=preserve` `pandoc(1)` mode.
This commit is contained in:
1 parent
9eb7a54e9f
commit
b0b212acb1
402 files changed
+37061
-55132
No files matched your search
+75
-135
@@ -130,8 +130,8 @@
|
||||
<h2 id="author"><a name="author"></a>Author:</h2>
|
||||
<ul>
|
||||
<li>Name: <a href="../../authors.html#Adar_Zeitak">Adar Zeitak</a><br>
|
||||
Location: <a href="../../location.html#IL">IL</a> - <em>State of
|
||||
Israel</em> (<em>Israel</em>) <br><br></li>
|
||||
Location: <a href="../../location.html#IL">IL</a> - <em>State of Israel</em> (<em>Israel</em>)
|
||||
<br><br></li>
|
||||
</ul>
|
||||
|
||||
<!-- END: next line ends content generated by: bin/output-index-author.sh -->
|
||||
@@ -141,105 +141,90 @@ Israel</em> (<em>Israel</em>) <br><br></li>
|
||||
|
||||
<h2 id="to-build">To build:</h2>
|
||||
<div class="sourceCode" id="cb1"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="fu">make</span></span></code></pre></div>
|
||||
<p>There is an alternate version that is slightly deobfuscated. See <a
|
||||
href="#alternate-code">alternate code</a> below.</p>
|
||||
<p>There is an alternate version that is slightly deobfuscated. See <a href="#alternate-code">alternate
|
||||
code</a> below.</p>
|
||||
<h2 id="to-use">To use:</h2>
|
||||
<div class="sourceCode" id="cb2"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a><span class="ex">./zeitak</span> <span class="op"><</span> file</span></code></pre></div>
|
||||
<p>where <code>file</code> is the file to be checked for nesting errors.
|
||||
For example, you may try <a href="incorrect.c">incorrect.c</a> and the
|
||||
program itself. You may also run it on text files that are not code.</p>
|
||||
<p>where <code>file</code> is the file to be checked for nesting errors. For example, you may
|
||||
try <a href="incorrect.c">incorrect.c</a> and the program itself. You may also run it on
|
||||
text files that are not code.</p>
|
||||
<h2 id="try">Try:</h2>
|
||||
<div class="sourceCode" id="cb3"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a><span class="fu">make</span> test</span></code></pre></div>
|
||||
<p>NOTE: the program prints an error and exits on the first nesting
|
||||
error so it will not detect multiple issues.</p>
|
||||
<p>NOTE: the program prints an error and exits on the first nesting error so it
|
||||
will not detect multiple issues.</p>
|
||||
<h2 id="alternate-code">Alternate code:</h2>
|
||||
<p>The alternate code, <a href="zeitak.alt.c">zeitak.alt.c</a>, is a
|
||||
version that was slightly deobfuscated by the author. You may find
|
||||
reading it helpful in your attempt to understand this extremely subtle
|
||||
entry.</p>
|
||||
<p>The alternate code, <a href="zeitak.alt.c">zeitak.alt.c</a>, is a version that was slightly
|
||||
deobfuscated by the author. You may find reading it helpful in your attempt to
|
||||
understand this extremely subtle entry.</p>
|
||||
<h3 id="alternate-build">Alternate build:</h3>
|
||||
<div class="sourceCode" id="cb4"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a><span class="fu">make</span> alt</span></code></pre></div>
|
||||
<h3 id="alternate-use">Alternate use:</h3>
|
||||
<p>Use <code>zeitak.alt</code> as you would <code>zeitak</code>
|
||||
above.</p>
|
||||
<p>Use <code>zeitak.alt</code> as you would <code>zeitak</code> above.</p>
|
||||
<h2 id="judges-remarks">Judges’ remarks:</h2>
|
||||
<p>This is an extremely subtle and twisted piece of Gold award winning
|
||||
code!</p>
|
||||
<p>This is an extremely subtle and twisted piece of Gold award winning code!</p>
|
||||
<p>The judges spent a considerable amount of time analyzing this entry.
|
||||
At one point we spent <a
|
||||
href="https://web.archive.org/web/20130925190722/https://twitter.com/ioccc/status/252162898800033792">18
|
||||
minutes</a> just to understand <em>18 key
|
||||
<strong>characters</strong></em> of this code.</p>
|
||||
At one point we spent
|
||||
<a href="https://web.archive.org/web/20130925190722/https://twitter.com/ioccc/status/252162898800033792">18
|
||||
minutes</a>
|
||||
just to understand <em>18 key <strong>characters</strong></em> of this code.</p>
|
||||
<p>NOTE: if you use vim to view the code, make sure to do:</p>
|
||||
<pre><code>:set tabstop=4</code></pre>
|
||||
<p>in command mode, before looking at the code, to see the correct
|
||||
layout.</p>
|
||||
<p>in command mode, before looking at the code, to see the correct layout.</p>
|
||||
<h2 id="authors-remarks">Author’s remarks:</h2>
|
||||
<h3 id="nesting-errors-detector">Nesting Errors Detector</h3>
|
||||
<h4 id="what-does-it-do">What does it do</h4>
|
||||
<p>As you have probably understood by looking at the source*, this
|
||||
program has something to do with parenthesis (and equality of opening
|
||||
and closing parenthesis, if you look close enough). It goes over the
|
||||
file given to it and checks that every opening <code>(</code>,
|
||||
<code>[</code>, or <code>{</code> has a matching closing one and vice
|
||||
versa. It also checks that every <code>"</code> or <code>'</code> is
|
||||
closed.</p>
|
||||
<p>If an error is detected, an error message will be printed. If the
|
||||
problem is a superfluous closing bracket, it will even print a few
|
||||
characters around it’s position.</p>
|
||||
<p>As you have probably understood by looking at the source*, this program has
|
||||
something to do with parenthesis (and equality of opening and closing
|
||||
parenthesis, if you look close enough). It goes over the file given to it and
|
||||
checks that every opening <code>(</code>, <code>[</code>, or <code>{</code> has a matching closing one and
|
||||
vice versa. It also checks that every <code>"</code> or <code>'</code> is closed.</p>
|
||||
<p>If an error is detected, an error message will be printed. If the problem
|
||||
is a superfluous closing bracket, it will even print a few characters
|
||||
around it’s position.</p>
|
||||
<p>* Make sure you view the source with 4 spaces tab width.</p>
|
||||
<h4 id="features">Features</h4>
|
||||
<ul>
|
||||
<li>Ignores parenthesis inside strings or character constants, so no
|
||||
errors will be detected in the following line:</li>
|
||||
<li>Ignores parenthesis inside strings or character constants, so no errors
|
||||
will be detected in the following line:</li>
|
||||
</ul>
|
||||
<div class="sourceCode" id="cb6"><pre class="sourceCode c"><code class="sourceCode c"><span id="cb6-1"><a href="#cb6-1" aria-hidden="true" tabindex="-1"></a>printf<span class="op">(</span><span class="st">")"</span><span class="op">);</span></span></code></pre></div>
|
||||
<ul>
|
||||
<li>Doesn’t get confused by the <a
|
||||
href="../../1984/anonymous/index.html">1984/anonymous</a> entry!</li>
|
||||
<li>Doesn’t get confused by the <a href="../../1984/anonymous/index.html">1984/anonymous</a> entry!</li>
|
||||
</ul>
|
||||
<h4 id="mis-features">Mis-Features</h4>
|
||||
<ul>
|
||||
<li>Escapes (e.g. <code>\"</code>) are ignored, so the following line
|
||||
will produce an error:</li>
|
||||
<li>Escapes (e.g. <code>\"</code>) are ignored, so the following line will produce
|
||||
an error:</li>
|
||||
</ul>
|
||||
<div class="sourceCode" id="cb7"><pre class="sourceCode c"><code class="sourceCode c"><span id="cb7-1"><a href="#cb7-1" aria-hidden="true" tabindex="-1"></a>printf<span class="op">(</span><span class="st">"</span><span class="sc">\"</span><span class="st">"</span><span class="op">);</span></span></code></pre></div>
|
||||
<h4 id="obfuscation">Obfuscation</h4>
|
||||
<p><a href="../../years.html">IOCCC entries</a> already contain entries
|
||||
without digits, control-flow keywords and certain operators in their
|
||||
source. This entry has an even more limited source, that is:</p>
|
||||
<p><a href="../../years.html">IOCCC entries</a> already contain entries without digits, control-flow
|
||||
keywords and certain operators in their source. This entry has an
|
||||
even more limited source, that is:</p>
|
||||
<ul>
|
||||
<li>Without any digits.</li>
|
||||
<li>Without any character constants.</li>
|
||||
<li>Without using functions from headers other than
|
||||
<code>stdio</code>.</li>
|
||||
<li>Without any control-flow keywords (not even the <code>?:</code>
|
||||
operator).</li>
|
||||
<li>Without using functions from headers other than <code>stdio</code>.</li>
|
||||
<li>Without any control-flow keywords (not even the <code>?:</code> operator).</li>
|
||||
<li>Without any arithmetic or logic operators!</li>
|
||||
</ul>
|
||||
<p>So, what’s left? Parenthesis, and lots of them, as looking at the
|
||||
source will reveal immediately. The main obfuscation is building the
|
||||
whole algorithm using only function calls, typecasts, array lookups and
|
||||
pointer operators.</p>
|
||||
<h4 id="additional-obfuscations-include">Additional obfuscations
|
||||
include:</h4>
|
||||
<p>So, what’s left? Parenthesis, and lots of them, as looking at the source will
|
||||
reveal immediately. The main obfuscation is building the whole algorithm using
|
||||
only function calls, typecasts, array lookups and pointer operators.</p>
|
||||
<h4 id="additional-obfuscations-include">Additional obfuscations include:</h4>
|
||||
<ul>
|
||||
<li>Extensive reuse of identifiers: Macros share names with variables,
|
||||
inner curly braces scopes contain variables with names identical to
|
||||
those in the outer scopes and some of the variables have different uses
|
||||
in different parts of the program. Even the large array has more than
|
||||
one use.</li>
|
||||
<li>Extensive reuse of identifiers: Macros share names with variables, inner
|
||||
curly braces scopes contain variables with names identical to those in the
|
||||
outer scopes and some of the variables have different uses in different
|
||||
parts of the program. Even the large array has more than one use.</li>
|
||||
<li>A complicated data structure with “unused” fields.</li>
|
||||
<li>Mostly one-letter identifiers.</li>
|
||||
<li>Complex recursion: A function might call itself once, twice, or not
|
||||
at all.</li>
|
||||
<li>Complex recursion: A function might call itself once, twice, or not at all.</li>
|
||||
</ul>
|
||||
<h4
|
||||
id="compilationportabilityrunning-notes">Compilation/Portability/Running
|
||||
Notes</h4>
|
||||
<h4 id="compilationportabilityrunning-notes">Compilation/Portability/Running Notes</h4>
|
||||
<ul>
|
||||
<li><p>The program requires <code>char</code> to be one byte and
|
||||
pointers to be at least two bytes long.</p></li>
|
||||
<li><p>The program requires <code>char</code> to be one byte and pointers to be
|
||||
at least two bytes long.</p></li>
|
||||
<li><p>The program was tested on the following platforms:</p>
|
||||
<ul>
|
||||
<li>Ubuntu 9.04 32-bit with GCC</li>
|
||||
@@ -247,92 +232,47 @@ pointers to be at least two bytes long.</p></li>
|
||||
<li>Windows 7 32-bit with OpenWatcom</li>
|
||||
</ul></li>
|
||||
</ul>
|
||||
<h2 id="copyright-and-cc-by-sa-4.0-license">Copyright and CC BY-SA 4.0
|
||||
License:</h2>
|
||||
<p>This file is Copyright (c) 2023 by Landon Curt Noll. All Rights
|
||||
Reserved. You are free to share and adapt this file under the terms of
|
||||
this license:</p>
|
||||
<h2 id="copyright-and-cc-by-sa-4.0-license">Copyright and CC BY-SA 4.0 License:</h2>
|
||||
<p>This file is Copyright (c) 2023 by Landon Curt Noll. All Rights Reserved.
|
||||
You are free to share and adapt this file under the terms of this license:</p>
|
||||
<pre><code>Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)</code></pre>
|
||||
<p>For more information, see:
|
||||
https://creativecommons.org/licenses/by-sa/4.0/</p>
|
||||
<p>For more information, see: https://creativecommons.org/licenses/by-sa/4.0/</p>
|
||||
|
||||
<!-- END: this line ends content for HTML phase 21 by: bin/pandoc-wrapper.sh via bin/md2html.sh -->
|
||||
<!-- START: this line starts content for HTML phase 22 by: bin/output-index-inventory.sh via bin/md2html.sh -->
|
||||
|
||||
<!-- START: this line starts content generated by: bin/output-index-inventory.sh -->
|
||||
|
||||
<h1 id="inventory-for-2012zeitak"><a name="inventory"></a>Inventory for
|
||||
2012/zeitak</h1>
|
||||
<h1 id="inventory-for-2012zeitak"><a name="inventory"></a>Inventory for 2012/zeitak</h1>
|
||||
<p><a href="#top">Jump to top</a></p>
|
||||
<h2 id="primary-files">Primary files</h2>
|
||||
<ul>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2012/zeitak/zeitak.c">zeitak.c</a>
|
||||
- entry source</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2012/zeitak/Makefile">Makefile</a>
|
||||
- entry Makefile</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2012/zeitak/anonymous.alt.c">anonymous.alt.c</a>
|
||||
- alternative source</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2012/zeitak/anonymous.c">anonymous.c</a>
|
||||
- 1984/anonymous source</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2012/zeitak/zeitak.alt.c">zeitak.alt.c</a>
|
||||
- alternative source</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2012/zeitak/zeitak.orig.c">zeitak.orig.c</a>
|
||||
- original source</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2012/zeitak/test.sh">test.sh</a>
|
||||
- test tool</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2012/zeitak/correct.java">correct.java</a>
|
||||
- example source with correct brace (supposedly :-) )</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2012/zeitak/incorrect.1.quote.c">incorrect.1.quote.c</a>
|
||||
- example source with incorrect quote</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2012/zeitak/incorrect.3.quotes.c">incorrect.3.quotes.c</a>
|
||||
- example source with incorrect quote</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2012/zeitak/incorrect.brace.c">incorrect.brace.c</a>
|
||||
- example source with incorrect brace</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2012/zeitak/incorrect.bracket.c">incorrect.bracket.c</a>
|
||||
- example source with incorrect bracket</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2012/zeitak/incorrect.java">incorrect.java</a>
|
||||
- example source with incorrect brace</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2012/zeitak/incorrect.paren.c">incorrect.paren.c</a>
|
||||
- example source with incorrect parenthesis</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2012/zeitak/incorrect.quote-esc.c">incorrect.quote-esc.c</a>
|
||||
- example source with incorrect quote escape</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2012/zeitak/incorrect.single.quote.c">incorrect.single.quote.c</a>
|
||||
- example source with incorrect single quote</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2012/zeitak/incorrect.txt">incorrect.txt</a>
|
||||
- example source with incorrect text</li>
|
||||
<li><a href="2012_zeitak.tar.bz2">2012_zeitak.tar.bz2</a> - download
|
||||
entry source</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2012/zeitak/zeitak.c">zeitak.c</a> - entry source</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2012/zeitak/Makefile">Makefile</a> - entry Makefile</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2012/zeitak/anonymous.alt.c">anonymous.alt.c</a> - alternative source</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2012/zeitak/anonymous.c">anonymous.c</a> - 1984/anonymous source</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2012/zeitak/zeitak.alt.c">zeitak.alt.c</a> - alternative source</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2012/zeitak/zeitak.orig.c">zeitak.orig.c</a> - original source</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2012/zeitak/test.sh">test.sh</a> - test tool</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2012/zeitak/correct.java">correct.java</a> - example source with correct brace (supposedly :-) )</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2012/zeitak/incorrect.1.quote.c">incorrect.1.quote.c</a> - example source with incorrect quote</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2012/zeitak/incorrect.3.quotes.c">incorrect.3.quotes.c</a> - example source with incorrect quote</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2012/zeitak/incorrect.brace.c">incorrect.brace.c</a> - example source with incorrect brace</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2012/zeitak/incorrect.bracket.c">incorrect.bracket.c</a> - example source with incorrect bracket</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2012/zeitak/incorrect.java">incorrect.java</a> - example source with incorrect brace</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2012/zeitak/incorrect.paren.c">incorrect.paren.c</a> - example source with incorrect parenthesis</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2012/zeitak/incorrect.quote-esc.c">incorrect.quote-esc.c</a> - example source with incorrect quote escape</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2012/zeitak/incorrect.single.quote.c">incorrect.single.quote.c</a> - example source with incorrect single quote</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2012/zeitak/incorrect.txt">incorrect.txt</a> - example source with incorrect text</li>
|
||||
<li><a href="2012_zeitak.tar.bz2">2012_zeitak.tar.bz2</a> - download entry source</li>
|
||||
</ul>
|
||||
<h2 id="secondary-files">Secondary files</h2>
|
||||
<ul>
|
||||
<li><a href="index.html">index.html</a> - entry home page</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2012/zeitak/.entry.json">.entry.json</a>
|
||||
- description of entry in JSON</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2012/zeitak/.gitignore">.gitignore</a>
|
||||
- list of files that should not be committed under git</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2012/zeitak/.entry.json">.entry.json</a> - description of entry in JSON</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2012/zeitak/.gitignore">.gitignore</a> - list of files that should not be committed under git</li>
|
||||
<li><a href=".path">.path</a> - directory path from top directory</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2012/zeitak/README.md">README.md</a>
|
||||
- markdown source for index.html</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2012/zeitak/README.md">README.md</a> - markdown source for index.html</li>
|
||||
</ul>
|
||||
|
||||
<!-- END: next line ends content generated by: bin/output-index-inventory.sh -->
|
||||
|
||||
Reference in new issue
Block a user