The 2020 winners are hinted it, but the source code is not there,
nor are the hints. Someone could look into the HTML and
see what was commented out, but that is not a problem because
WHO won is known and the name of their AWARD is known already.
Moreover a number of the winners have talked about what their
entirs do, so the commented out spoiler text is not a bit problem.
One will find HTML commented out with:
<!-- XXX remove when 2020 is ready
2020 links here
XXX remove when 2020 is ready -->
The "XXX remove when 2020 is ready" string is found at the
start and end comment blocks. Again, soneone could read
what was commented out, but that is OK since most of that
information is known or can be known. The following files
have such HTML comment blocks in them.
./winners.html
./years-spoiler.html
./years.html
In addition, ./all/summary.txt was modified to not
include the 2020 entries for the momemt.
The 2020 winner code AND write-ups are NOT part of this set.
p.s. The all/all.tar.bz2 does not contain the 2020 source code (yet?).
64 lines
1.5 KiB
Plaintext
64 lines
1.5 KiB
Plaintext
--- iocccsize.orig.c 2018-01-13 10:01:16.000000000 -0600
|
|
+++ iocccsize.c 2018-01-14 16:23:57.000000000 -0600
|
|
@@ -181,6 +181,7 @@
|
|
{ STRLEN("#ident"), "#ident" },
|
|
{ STRLEN("#if"), "#if" },
|
|
{ STRLEN("#ifdef"), "#ifdef" },
|
|
+ { STRLEN("#ifndef"), "#ifndef" }, /* XXX bugfix */
|
|
{ STRLEN("#include"), "#include" },
|
|
{ STRLEN("#line"), "#line" },
|
|
{ STRLEN("#pragma"), "#pragma" },
|
|
@@ -225,7 +226,7 @@
|
|
{ STRLEN("float"), "float" },
|
|
{ STRLEN("for"), "for" },
|
|
{ STRLEN("goto"), "goto" },
|
|
- { STRLEN("I"), "I" },
|
|
+ /* { STRLEN("I"), "I" }, */ /* XXX seriously? */
|
|
{ STRLEN("if"), "if" },
|
|
{ STRLEN("inline"), "inline" },
|
|
{ STRLEN("int"), "int" },
|
|
@@ -365,6 +366,7 @@
|
|
int lcount, wcount, bcount;
|
|
int is_comment, is_word, dquote, escape;
|
|
int count, keywords, saved, kw_saved;
|
|
+ int squote;
|
|
|
|
/* Start of buffer sentinel. */
|
|
buf[0] = ' ';
|
|
@@ -374,6 +376,7 @@
|
|
keywords = kw_saved = 0;
|
|
lcount = wcount = bcount = 0;
|
|
is_comment = is_word = dquote = escape = 0;
|
|
+ squote = 0;
|
|
|
|
/*
|
|
* "no matter how well you may think you understand this code,
|
|
@@ -422,6 +425,15 @@
|
|
}
|
|
}
|
|
|
|
+ else if (squote) {
|
|
+ if (escape)
|
|
+ escape = 0;
|
|
+ else if (*p == '\\')
|
|
+ escape = 1;
|
|
+ else if (*p == '\'')
|
|
+ squote = 0;
|
|
+ }
|
|
+
|
|
/* Not quote string. */
|
|
else {
|
|
/* In C comment block? */
|
|
@@ -499,6 +511,11 @@
|
|
}
|
|
}
|
|
|
|
+ /* Open single quote string? */
|
|
+ else if (*p == '\'') {
|
|
+ squote = 1;
|
|
+ }
|
|
+
|
|
/* Open quoted string? */
|
|
else if (*p == '"') {
|
|
dquote = 1;
|