Corrected spelling mistakes in comments and strings

This commit is contained in:
Vincent Lefevre 2014-04-07 13:31:00 +02:00
parent d09a46d655
commit 3e9a7e9d69
11 changed files with 18 additions and 18 deletions

View file

@ -943,7 +943,7 @@ struct plan {
Returns the amount of stack space needed for parameter passing Returns the amount of stack space needed for parameter passing
Note: this function allocated an array in plan->pplans with tcc_malloc. It Note: this function allocated an array in plan->pplans with tcc_malloc. It
is the responsability of the caller to free this array once used (ie not is the responsibility of the caller to free this array once used (ie not
before copy_params). */ before copy_params). */
static int assign_regs(int nb_args, int float_abi, struct plan *plan, int *todo) static int assign_regs(int nb_args, int float_abi, struct plan *plan, int *todo)
{ {
@ -1860,7 +1860,7 @@ void gen_opf(int op)
case TOK_UGE: case TOK_UGE:
case TOK_ULE: case TOK_ULE:
case TOK_UGT: case TOK_UGT:
tcc_error("unsigned comparision on floats?"); tcc_error("unsigned comparison on floats?");
break; break;
case TOK_LT: case TOK_LT:
op=TOK_Nset; op=TOK_Nset;

View file

@ -245,8 +245,8 @@ void gsym(int t)
} }
// these are regs that tcc doesn't really know about, // 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 // can distinguish them
#define C67_A0 105 #define C67_A0 105
#define C67_SP 106 #define C67_SP 106

View file

@ -1382,7 +1382,7 @@ ST_FUNC void subst_asm_operand(CString *add_str,
} }
} }
/* generate prolog and epilog code for asm statment */ /* generate prolog and epilog code for asm statement */
ST_FUNC void asm_gen_code(ASMOperand *operands, int nb_operands, ST_FUNC void asm_gen_code(ASMOperand *operands, int nb_operands,
int nb_outputs, int is_output, int nb_outputs, int is_output,
uint8_t *clobber_regs, uint8_t *clobber_regs,

View file

@ -191,7 +191,7 @@
DEF_FP(mul) DEF_FP(mul)
DEF_ASM(fcom) 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_FP1(com)
DEF_FP(comp) DEF_FP(comp)

View file

@ -31,7 +31,7 @@ void *alloca(size_t size);
by __need_wint_t, as otherwise stddef.h isn't allowed to by __need_wint_t, as otherwise stddef.h isn't allowed to
define this type). Note that this must be outside the normal define this type). Note that this must be outside the normal
_STDDEF_H guard, so that it works even when we've included the file _STDDEF_H guard, so that it works even when we've included the file
already (without requring wint_t). Some other libs define _WINT_T already (without requiring wint_t). Some other libs define _WINT_T
if they've already provided that type, so we can use that as guard. if they've already provided that type, so we can use that as guard.
TCC defines __WINT_TYPE__ for us. */ TCC defines __WINT_TYPE__ for us. */
#if defined (__need_wint_t) #if defined (__need_wint_t)

View file

@ -635,7 +635,7 @@ int __bound_delete_region(void *p)
} }
/* return the size of the region starting at p, or EMPTY_SIZE if non /* 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) static unsigned long get_region_size(void *p)
{ {
unsigned long addr = (unsigned long)p; unsigned long addr = (unsigned long)p;

View file

@ -232,7 +232,7 @@ static inline void asm_expr_sum(TCCState *s1, ExprValue *pe)
} else { } else {
goto cannot_relocate; goto cannot_relocate;
} }
pe->sym = NULL; /* same symbols can be substracted to NULL */ pe->sym = NULL; /* same symbols can be subtracted to NULL */
} else { } else {
cannot_relocate: cannot_relocate:
tcc_error("invalid operation with label"); tcc_error("invalid operation with label");

View file

@ -1579,7 +1579,7 @@ static inline int is_integer_btype(int bt)
bt == VT_INT || bt == VT_LLONG); bt == VT_INT || bt == VT_LLONG);
} }
/* check types for comparison or substraction of pointers */ /* check types for comparison or subtraction of pointers */
static void check_comparison_pointer_types(SValue *p1, SValue *p2, int op) static void check_comparison_pointer_types(SValue *p1, SValue *p2, int op)
{ {
CType *type1, *type2, tmp_type1, tmp_type2; CType *type1, *type2, tmp_type1, tmp_type2;
@ -5574,7 +5574,7 @@ static void decl_initializer_alloc(CType *type, AttributeDef *ad, int r,
if (sym->type.t & VT_EXTERN) { if (sym->type.t & VT_EXTERN) {
/* if the variable is extern, it was not allocated */ /* if the variable is extern, it was not allocated */
sym->type.t &= ~VT_EXTERN; sym->type.t &= ~VT_EXTERN;
/* set array size if it was ommited in extern /* set array size if it was omitted in extern
declaration */ declaration */
if ((sym->type.t & VT_ARRAY) && if ((sym->type.t & VT_ARRAY) &&
sym->type.ref->c < 0 && sym->type.ref->c < 0 &&

View file

@ -158,7 +158,7 @@ btest: boundtest.c
@for i in $(BOUNDS_OK); do \ @for i in $(BOUNDS_OK); do \
echo ; echo --- boundtest $$i ---; \ echo ; echo --- boundtest $$i ---; \
if $(TCC) -b -run $< $$i ; then \ if $(TCC) -b -run $< $$i ; then \
echo succeded as expected; \ echo succeeded as expected; \
else\ else\
echo Failed positive test $$i ; exit 1 ; \ echo Failed positive test $$i ; exit 1 ; \
fi ;\ fi ;\

View file

@ -2254,7 +2254,7 @@ void c99_vla_test(int size1, int size2)
printf("%s\n", (sizeof tab1 == size1 * size2 * 2 * sizeof(int)) ? "PASSED" : "FAILED"); printf("%s\n", (sizeof tab1 == size1 * size2 * 2 * sizeof(int)) ? "PASSED" : "FAILED");
tab1_ptr = tab1; tab1_ptr = tab1;
tab2_ptr = tab2; tab2_ptr = tab2;
printf("Test C99 VLA 2 (ptrs substract): "); printf("Test C99 VLA 2 (ptrs subtract): ");
printf("%s\n", (tab2 - tab1 == (tab2_ptr - tab1_ptr) / (sizeof(int) * 2)) ? "PASSED" : "FAILED"); printf("%s\n", (tab2 - tab1 == (tab2_ptr - tab1_ptr) / (sizeof(int) * 2)) ? "PASSED" : "FAILED");
printf("Test C99 VLA 3 (ptr add): "); printf("Test C99 VLA 3 (ptr add): ");
printf("%s\n", &tab1[5][1] == (tab1_ptr + (5 * 2 + 1) * sizeof(int)) ? "PASSED" : "FAILED"); printf("%s\n", &tab1[5][1] == (tab1_ptr + (5 * 2 + 1) * sizeof(int)) ? "PASSED" : "FAILED");

View file

@ -29,10 +29,10 @@
char *documentation[] = { char *documentation[] = {
"grep searches a file for a given pattern. Execute by", "grep searches a file for a given pattern. Execute by",
" grep [flags] regular_expression file_list\n", " grep [flags] regular_expression file_list\n",
"Flags are single characters preceeded by '-':", "Flags are single characters preceded by '-':",
" -c Only a count of matching lines is printed", " -c Only a count of matching lines is printed",
" -f Print file name for matching lines switch, see below", " -f Print file name for matching lines switch, see below",
" -n Each line is preceeded by its line number", " -n Each line is preceded by its line number",
" -v Only print non-matching lines\n", " -v Only print non-matching lines\n",
"The file_list is a list of files (wildcards are acceptable on RSX modes).", "The file_list is a list of files (wildcards are acceptable on RSX modes).",
"\nThe file name is normally printed if there is a file given.", "\nThe file name is normally printed if there is a file given.",
@ -54,10 +54,10 @@ char *patdoc[] = {
"':n' \":n\" matches alphanumerics, \": \" matches spaces, tabs, and", "':n' \":n\" matches alphanumerics, \": \" matches spaces, tabs, and",
"': ' other control characters, such as new-line.", "': ' other control characters, such as new-line.",
"'*' An expression followed by an asterisk matches zero or more", "'*' An expression followed by an asterisk matches zero or more",
" occurrances of that expression: \"fo*\" matches \"f\", \"fo\"", " occurrences of that expression: \"fo*\" matches \"f\", \"fo\"",
" \"foo\", etc.", " \"foo\", etc.",
"'+' An expression followed by a plus sign matches one or more", "'+' An expression followed by a plus sign matches one or more",
" occurrances of that expression: \"fo+\" matches \"fo\", etc.", " occurrences of that expression: \"fo+\" matches \"fo\", etc.",
"'-' An expression followed by a minus sign optionally matches", "'-' An expression followed by a minus sign optionally matches",
" the expression.", " the expression.",
"'[]' A string enclosed in square brackets matches any character in", "'[]' A string enclosed in square brackets matches any character in",
@ -153,7 +153,7 @@ void compile(char *source)
o == STAR || o == STAR ||
o == PLUS || o == PLUS ||
o == MINUS) o == MINUS)
badpat("Illegal occurrance op.", source, s); badpat("Illegal occurrence op.", source, s);
store(ENDPAT); store(ENDPAT);
store(ENDPAT); store(ENDPAT);
spp = pp; /* Save pattern end */ spp = pp; /* Save pattern end */