Change HTML4 entities to HTML5

&lt to <
&gt to >
&amp to &
This commit is contained in:
James Gregory 2013-12-30 14:33:39 +11:00
commit b8e7ce7165
105 changed files with 1117 additions and 1117 deletions

View file

@ -67,10 +67,10 @@
<TD ALIGN="LEFT" VALIGN="TOP">16.1 (C)
<TD ALIGN="LEFT" VALIGN="TOP">4.6 seconds
<TR>
<TD ALIGN="LEFT" VALIGN="TOP">16.2 &amp 16.3 (C+ASM)
<TD ALIGN="LEFT" VALIGN="TOP">16.2 &amp; 16.3 (C+ASM)
<TD ALIGN="LEFT" VALIGN="TOP">2.4 seconds
<TR>
<TD ALIGN="LEFT" VALIGN="TOP">16.2 &amp 16.4 (C+ASM w/lookup)
<TD ALIGN="LEFT" VALIGN="TOP">16.2 &amp; 16.4 (C+ASM w/lookup)
<TD ALIGN="LEFT" VALIGN="TOP">1.6 seconds
<TR>
<TD ALIGN="LEFT" VALIGN="TOP" COLSPAN="2"><SMALL>These are the times taken to search a file containing 104,448 words, timed from a RAM disk on a 20 MHz 386.</SMALL>
@ -85,11 +85,11 @@
/* Word-counting program. Tested with Borland C++ in C
compilation mode and the small model. */
#include &ltstdio.h&gt
#include &ltfcntl.h&gt
#include &ltsys\stat.h&gt
#include &ltstdlib.h&gt
#include &ltio.h&gt
#include &lt;stdio.h&gt;
#include &lt;fcntl.h&gt;
#include &lt;sys\stat.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;io.h&gt;
#define <I>B</I> UFFER_SIZE 0x8000 /* largest chunk of file worked
with at any one time */
@ -103,7 +103,7 @@
char *Buffer, CharFlag = 0, PredCharFlag, *BufferPtr, Ch;
if (argc != 2) {
printf(&ldquo;usage: wc &ltfilename&gt\n&rdquo;);
printf(&ldquo;usage: wc &lt;filename&gt;\n&rdquo;);
exit(1);
}
@ -123,7 +123,7 @@
}
/* Process the file in chunks */
while (FileSize &gt 0) {
while (FileSize &gt; 0) {
/* Get the next chunk */
FileSize -= (BlockSize = min(FileSize, BUFFER_SIZE));
if (read(Handle, Buffer, BlockSize) == -1) {
@ -134,14 +134,14 @@
BufferPtr = Buffer;
do {
PredCharFlag = CharFlag;
Ch = *BufferPtr++ &amp 0x7F; /* strip high bit, which some
Ch = *BufferPtr++ &amp; 0x7F; /* strip high bit, which some
word processors set as an
internal flag */
CharFlag = ((Ch &gt= &lsquo;a&rsquo;) &amp&amp (Ch &lt= &lsquo;z&rsquo;)) ||
((Ch &gt= &lsquo;A&rsquo;) &amp&amp (Ch &lt= &lsquo;Z&rsquo;)) ||
((Ch &gt= &lsquo;0&rsquo;) &amp&amp (Ch &lt= &lsquo;9&rsquo;)) ||
CharFlag = ((Ch &gt;= &lsquo;a&rsquo;) &amp;&amp; (Ch &lt;= &lsquo;z&rsquo;)) ||
((Ch &gt;= &lsquo;A&rsquo;) &amp;&amp; (Ch &lt;= &lsquo;Z&rsquo;)) ||
((Ch &gt;= &lsquo;0&rsquo;) &amp;&amp; (Ch &lt;= &lsquo;9&rsquo;)) ||
(Ch == &lsquo;\&rsquo;&rsquo;);
if ((!CharFlag) &amp&amp PredCharFlag) {
if ((!CharFlag) &amp;&amp; PredCharFlag) {
WordCo <I>u</I> nt++;
}
} while (&mdash;BlockSize);