mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 22:10:33 +00:00
Fix typos
This commit is contained in:
@@ -1506,7 +1506,7 @@ void gen_opf(int op)
|
||||
case TOK_UGE:
|
||||
case TOK_ULE:
|
||||
case TOK_UGT:
|
||||
error("unsigned comparision on floats?");
|
||||
error("unsigned comparison on floats?");
|
||||
break;
|
||||
case TOK_LT:
|
||||
op=TOK_Nset;
|
||||
|
||||
@@ -235,7 +235,7 @@ void gsym(int t)
|
||||
}
|
||||
|
||||
// these are regs that tcc doesn't really know about,
|
||||
// but asign them unique values so the mapping routines
|
||||
// but assign them unique values so the mapping routines
|
||||
// can distinquish them
|
||||
|
||||
#define C67_A0 105
|
||||
|
||||
@@ -1105,7 +1105,7 @@ static void subst_asm_operand(CString *add_str,
|
||||
}
|
||||
}
|
||||
|
||||
/* generate prolog and epilog code for asm statment */
|
||||
/* generate prolog and epilog code for asm statement */
|
||||
static void asm_gen_code(ASMOperand *operands, int nb_operands,
|
||||
int nb_outputs, int is_output,
|
||||
uint8_t *clobber_regs,
|
||||
|
||||
@@ -628,7 +628,7 @@ int __bound_delete_region(void *p)
|
||||
}
|
||||
|
||||
/* return the size of the region starting at p, or EMPTY_SIZE if non
|
||||
existant region. */
|
||||
existent region. */
|
||||
static unsigned long get_region_size(void *p)
|
||||
{
|
||||
unsigned long addr = (unsigned long)p;
|
||||
|
||||
@@ -927,7 +927,7 @@ They can be defined several times in the same source. Use 'b'
|
||||
</tr></table>
|
||||
<h2 class="section"> 4.4 Directives </h2>
|
||||
|
||||
<p>All directives are preceeded by a '.'. The following directives are
|
||||
<p>All directives are preceded by a '.'. The following directives are
|
||||
supported:
|
||||
</p>
|
||||
<ul class="toc">
|
||||
@@ -1365,7 +1365,7 @@ reverse order, a first pass is done to reverse the argument order.
|
||||
</tr></table>
|
||||
<h2 class="section"> 8.4 Types </h2>
|
||||
|
||||
<p>The types are stored in a single 'int' variable. It was choosen in the
|
||||
<p>The types are stored in a single 'int' variable. It was chosen in the
|
||||
first stages of development when tcc was much simpler. Now, it may not
|
||||
be the best solution.
|
||||
</p>
|
||||
@@ -1531,7 +1531,7 @@ current position in the code section.
|
||||
</dd>
|
||||
<dt> <code>stab_section</code></dt>
|
||||
<dt> <code>stabstr_section</code></dt>
|
||||
<dd><p>are used when debugging is actived to store debug information
|
||||
<dd><p>are used when debugging is activated to store debug information
|
||||
</p>
|
||||
</dd>
|
||||
<dt> <code>symtab_section</code></dt>
|
||||
|
||||
@@ -673,7 +673,7 @@ They can be defined several times in the same source. Use 'b'
|
||||
@cindex asciz directive
|
||||
@cindex ascii directive
|
||||
|
||||
All directives are preceeded by a '.'. The following directives are
|
||||
All directives are preceded by a '.'. The following directives are
|
||||
supported:
|
||||
|
||||
@itemize
|
||||
@@ -892,7 +892,7 @@ reverse order, a first pass is done to reverse the argument order.
|
||||
|
||||
@section Types
|
||||
|
||||
The types are stored in a single 'int' variable. It was choosen in the
|
||||
The types are stored in a single 'int' variable. It was chosen in the
|
||||
first stages of development when tcc was much simpler. Now, it may not
|
||||
be the best solution.
|
||||
|
||||
@@ -1017,7 +1017,7 @@ are used when bound checking is activated
|
||||
|
||||
@item stab_section
|
||||
@itemx stabstr_section
|
||||
are used when debugging is actived to store debug information
|
||||
are used when debugging is activated to store debug information
|
||||
|
||||
@item symtab_section
|
||||
@itemx strtab_section
|
||||
|
||||
@@ -229,7 +229,7 @@ static inline void asm_expr_sum(TCCState *s1, ExprValue *pe)
|
||||
} else {
|
||||
goto cannot_relocate;
|
||||
}
|
||||
pe->sym = NULL; /* same symbols can be substracted to NULL */
|
||||
pe->sym = NULL; /* same symbols can be subtracted to NULL */
|
||||
} else {
|
||||
cannot_relocate:
|
||||
error("invalid operation with label");
|
||||
|
||||
@@ -4686,7 +4686,7 @@ static void decl_initializer_alloc(CType *type, AttributeDef *ad, int r,
|
||||
if (sym->type.t & VT_EXTERN) {
|
||||
/* if the variable is extern, it was not allocated */
|
||||
sym->type.t &= ~VT_EXTERN;
|
||||
/* set array size if it was ommited in extern
|
||||
/* set array size if it was omitted in extern
|
||||
declaration */
|
||||
if ((sym->type.t & VT_ARRAY) &&
|
||||
sym->type.ref->c < 0 &&
|
||||
|
||||
@@ -422,7 +422,7 @@
|
||||
DEF_FP(mul)
|
||||
|
||||
DEF_ASM(fcom)
|
||||
DEF_ASM(fcom_1) /* non existant op, just to have a regular table */
|
||||
DEF_ASM(fcom_1) /* non existent op, just to have a regular table */
|
||||
DEF_FP1(com)
|
||||
|
||||
DEF_FP(comp)
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
|
||||
#define _O_RANDOM 0x0010
|
||||
#define _O_SEQUENTIAL 0x0020
|
||||
#define _O_TEMPORARY 0x0040 /* Make the file dissappear after closing.
|
||||
#define _O_TEMPORARY 0x0040 /* Make the file disappear after closing.
|
||||
* WARNING: Even if not created by _open! */
|
||||
#define _O_NOINHERIT 0x0080
|
||||
|
||||
|
||||
Reference in New Issue
Block a user