REFACTOR [a vs an]
From /dev/humancontroller.
This commit is contained in:
parent
4bd24d3182
commit
f3e7012bdb
27 changed files with 39 additions and 39 deletions
|
@ -99,7 +99,7 @@ the symbol's <code>type</code> field.</p>
|
|||
|
||||
<h2><a NAME="operators">5.5 Dag Operators</a></h2>
|
||||
|
||||
<p>The <code>op</code> field a of <code>node</code> structure holds a dag operator, which
|
||||
<p>The <code>op</code> field of a <code>node</code> structure holds a dag operator, which
|
||||
consists of a generic operator, a type suffix, and a size indicator. The type suffixes
|
||||
are:</p>
|
||||
|
||||
|
@ -516,7 +516,7 @@ e.g.,</p>
|
|||
<p>The type suffix for a conversion operator denotes the type of the result and the size
|
||||
indicator gives the size of the result. For example, <code>CVUI4</code> converts an
|
||||
unsigned (<code>U</code>) to a 4-byte signed integer (<code>I4</code>). The <code>syms[0]</code>
|
||||
field points to a symbol-table entry for a integer constant that gives the size of the
|
||||
field points to a symbol-table entry for an integer constant that gives the size of the
|
||||
source operand. For example, if <code>syms[0]</code> in a <code>CVUI4</code> points to a
|
||||
symbol-table entry for 2, the conversion widens a 2-byte unsigned integer to a 4-byte
|
||||
signed integer. Conversions that widen unsigned integers zero-extend; those that widen
|
||||
|
|
|
@ -722,7 +722,7 @@ C:\dist\lcc\4.1>copy %BUILDDIR%\bprint.exe \bin
|
|||
<h2><a NAME="bugs">Reporting Bugs</a></h2>
|
||||
|
||||
<p>lcc is a large, complex program. We find and repair errors routinely. If you think that
|
||||
you've found a error, follow the steps below, which are adapted from the instructions in
|
||||
you've found an error, follow the steps below, which are adapted from the instructions in
|
||||
Chapter 1 of <cite>A Retargetable C Compiler: Design and Implementation</cite>.
|
||||
|
||||
<ol>
|
||||
|
@ -751,7 +751,7 @@ Chapter 1 of <cite>A Retargetable C Compiler: Design and Implementation</cite>.
|
|||
HREF="ftp://ftp.cs.princeton.edu/pub/lcc"><code>pub/lcc</code></a>. A <a
|
||||
HREF="ftp://ftp.cs.princeton.edu/pub/lcc/README"><code>README</code></a> file there gives
|
||||
acquistion details, and the <a HREF="../LOG"><code>LOG</code></a> file reports what errors
|
||||
were fixed and when they were fixed. If you report a error that's been fixed, you might
|
||||
were fixed and when they were fixed. If you report an error that's been fixed, you might
|
||||
get a canned reply.</li>
|
||||
<li>Send your program by electronic mail to <code>lcc-bugs@cs.princeton.edu</code>. Please
|
||||
send only valid C programs; put all remarks in C comments so that we can process reports
|
||||
|
|
|
@ -33,7 +33,7 @@ int length(List list) {
|
|||
return n;
|
||||
}
|
||||
|
||||
/* ltov - convert list to an NULL-terminated vector allocated in arena */
|
||||
/* ltov - convert list to a NULL-terminated vector allocated in arena */
|
||||
void *ltov(List *list, unsigned arena) {
|
||||
int i = 0;
|
||||
void **array = newarray(length(*list) + 1, sizeof array[0], arena);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue