History

Spelling fixes

Comments only, no change to functionality

Larry Doolittle committed 9 years ago

Commit 1b6806e1 parent 44d4da619 files · +28 −28Browse files

Unified · Split

19 files
  1. arm-gen.c +1 −1
  2. elf.h +3 −3
  3. i386-gen.c +1 −1
  4. lib/bcheck.c +1 −1
  5. tcc.h +1 −1
  6. tccgen.c +1 −1
  7. tccpp.c +2 −2
  8. tests/abitest.c +1 −1
  9. tests/pp/15.c +1 −1
  10. tests/tcctest.c +3 −3
  11. tests/tests2/87_dead_code.c +1 −1
  12. tests/tests2/90_struct-init.c +2 −2
  13. tests/tests2/99_fastcall.c +3 −3
  14. tests/tests2/Makefile +1 −1
  15. win32/include/conio.h +1 −1
  16. win32/include/math.h +1 −1
  17. win32/include/stdint.h +1 −1
  18. win32/include/values.h +1 −1
  19. x86_64-gen.c +2 −2
arm-gen.c+1−1
@@ -1783,7 +1783,7 @@ static uint32_t is_fconst() · 1782 unmodified lines
17831783 }
17841784
17851785 /* generate a floating point operation 'v = t1 op t2' instruction. The
1786− two operands are guaranted to have the same floating point type */
1786+ two operands are guaranteed to have the same floating point type */
17871787 void gen_opf(int op)
17881788 {
17891789 uint32_t x, r, r2, c1, c2;
elf.h+3−3
@@ -232,7 +232,7 @@ typedef struct · 231 unmodified lines
232232
233233 #define EM_FX66 66 /* Siemens FX66 microcontroller */
234234 #define EM_ST9PLUS 67 /* STMicroelectronics ST9+ 8/16 mc */
235−#define EM_ST7 68 /* STmicroelectronics ST7 8 bit mc */
235+#define EM_ST7 68 /* STMicroelectronics ST7 8 bit mc */
236236 #define EM_68HC16 69 /* Motorola MC68HC16 microcontroller */
237237 #define EM_68HC11 70 /* Motorola MC68HC11 microcontroller */
238238 #define EM_68HC08 71 /* Motorola MC68HC08 microcontroller */
@@ -817,7 +817,7 @@ typedef struct · 578 unmodified lines
817817 #define DF_1_EDITED 0x00200000 /* Object is modified after built. */
818818 #define DF_1_NORELOC 0x00400000
819819 #define DF_1_SYMINTPOSE 0x00800000 /* Object has individual interposers. */
820−#define DF_1_GLOBAUDIT 0x01000000 /* Global auditin required. */
820+#define DF_1_GLOBAUDIT 0x01000000 /* Global auditing required. */
821821 #define DF_1_SINGLETON 0x02000000 /* Singleton symbols are used. */
822822
823823 /* Flags for the feature selection in DT_FEATURE_1. */
@@ -1313,7 +1313,7 @@ typedef struct · 489 unmodified lines
13131313 #define R_SPARC_LM22 36 /* Low middle 22 bits of ... */
13141314 #define R_SPARC_PC_HH22 37 /* Top 22 bits of pc rel 64 bit */
13151315 #define R_SPARC_PC_HM10 38 /* High middle 10 bit of ... */
1316−#define R_SPARC_PC_LM22 39 /* Low miggle 22 bits of ... */
1316+#define R_SPARC_PC_LM22 39 /* Low middle 22 bits of ... */
13171317 #define R_SPARC_WDISP16 40 /* PC relative 16 bit shifted */
13181318 #define R_SPARC_WDISP19 41 /* PC relative 19 bit shifted */
13191319 #define R_SPARC_GLOB_JMP 42 /* was part of v9 ABI but was removed */
i386-gen.c+1−1
@@ -175,7 +175,7 @@ ST_FUNC void gen_addrpc32(int r, Sym *sym, int c) · 174 unmodified lines
175175 gen_le32(c - 4);
176176 }
177177
178−/* generate a modrm reference. 'op_reg' contains the addtional 3
178+/* generate a modrm reference. 'op_reg' contains the additional 3
179179 opcode bits */
180180 static void gen_modrm(int op_reg, int r, Sym *sym, int c)
181181 {
lib/bcheck.c+1−1
@@ -244,7 +244,7 @@ BOUND_PTR_INDIR(16) · 243 unmodified lines
244244
245245 #if defined(__GNUC__) && (__GNUC__ >= 6)
246246 /*
247− * At least gcc 6.2 complains when __builtin_frame_address is used whith
247+ * At least gcc 6.2 complains when __builtin_frame_address is used with
248248 * nonzero argument.
249249 */
250250 #pragma GCC diagnostic push
tcc.h+1−1
@@ -1453,7 +1453,7 @@ ST_FUNC int handle_eob(void); · 1452 unmodified lines
14531453
14541454 /* ------------ xxx-link.c ------------ */
14551455
1456−/* Wether to generate a GOT/PLT entry and when. NO_GOTPLT_ENTRY is first so
1456+/* Whether to generate a GOT/PLT entry and when. NO_GOTPLT_ENTRY is first so
14571457 that unknown relocation don't create a GOT or PLT entry */
14581458 enum gotplt_entry {
14591459 NO_GOTPLT_ENTRY, /* never generate (eg. GLOB_DAT & JMP_SLOT relocs) */
tccgen.c+1−1
@@ -3637,7 +3637,7 @@ static void struct_layout(CType *type, AttributeDef *ad) · 3636 unmodified lines
36373637 if (bit_pos + bit_size <= size * 8 && f->c + size <= c)
36383638 continue;
36393639
3640− /* try to access the field using a differnt type */
3640+ /* try to access the field using a different type */
36413641 c0 = -1, s = align = 1;
36423642 for (;;) {
36433643 px = f->c * 8 + bit_pos;
tccpp.c+2−2
@@ -2108,7 +2108,7 @@ static void parse_escape_string(CString *outstr, const uint8_t *buf, int is_long · 2107 unmodified lines
21082108 /* reference: The Unicode Standard, Version 10.0, ch3.9 */
21092109
21102110 int cont; /* count of continuation bytes */
2111− int skip; /* how many bytes should skip when error occured */
2111+ int skip; /* how many bytes should skip when error occurred */
21122112 int i;
21132113
21142114 /* decode leading byte */
@@ -3517,7 +3517,7 @@ no_subst: · 1402 unmodified lines
35173517 if (t == TOK_NOSUBST)
35183518 nosubst = 1;
35193519 }
3520− /* GCC supports 'defined' as result of a macto substitution */
3520+ /* GCC supports 'defined' as result of a macro substitution */
35213521 if (t == TOK_DEFINED && pp_expr)
35223522 nosubst = 2;
35233523 }
tests/abitest.c+1−1
@@ -425,7 +425,7 @@ static int two_member_union_test(void) { · 424 unmodified lines
425425 }
426426
427427 /*
428− * Win64 calling convetntion test.
428+ * Win64 calling convention test.
429429 */
430430
431431 typedef struct many_struct_test_type_s {long long a, b, c;} many_struct_test_type;
tests/pp/15.c+1−1
@@ -14,5 +14,5 @@ return n(0x1E)n(-1); · 13 unmodified lines
1414 // unlike gcc but correct
1515 XXX: return n(x)+n(x)-n(1)+n(1)-2;
1616
17−// unlile gcc, but cannot appear in valid C
17+// unlike gcc, but cannot appear in valid C
1818 XXX: return n(x)n(x)n(1)n(2)n(x);
tests/tcctest.c+3−3
@@ -384,7 +384,7 @@ void macro_test(void) · 383 unmodified lines
384384 MF_s("hi");
385385 MF_t("hi");
386386
387− /* test macro substituion inside args (should not eat stream) */
387+ /* test macro substitution inside args (should not eat stream) */
388388 printf("qq=%d\n", qq(qq)(2));
389389
390390 /* test zero argument case. NOTE: gcc 2.95.x does not accept a
@@ -404,7 +404,7 @@ comment · 13 unmodified lines
404404 substituted */
405405 TEST2();
406406
407− /* And again when the name and parenthes are separated by a
407+ /* And again when the name and parentheses are separated by a
408408 comment. */
409409 TEST2 /* the comment */ ();
410410
@@ -3117,7 +3117,7 @@ static __inline__ unsigned long long inc64(unsigned long long a) · 2706 unmodified lines
31173117 unsigned long long res;
31183118 #ifdef __x86_64__
31193119 /* Using the A constraint is wrong, and increments are tested
3120− elsewere. */
3120+ elsewhere. */
31213121 res = a + 1;
31223122 #else
31233123 __asm__("addl $1, %%eax ; adcl $0, %%edx" : "=A" (res) : "A" (a));
tests/tests2/87_dead_code.c+1−1
@@ -9,7 +9,7 @@ static void kb_wait_1(void) · 8 unmodified lines
99 /* Here the else arm is a statement expression that's supposed
1010 to be suppressed. The label inside the while would unsuppress
1111 code generation again if not handled correctly. And that
12− would wreak havok to the cond-expression because there's no
12+ would wreak havoc to the cond-expression because there's no
1313 jump-around emitted, the whole statement expression really
1414 needs to not generate code (perhaps except useless forward jumps). */
1515 (1 ?
tests/tests2/90_struct-init.c+2−2
@@ -60,7 +60,7 @@ struct U gu4 = { 3, {5,6,7,}, 5, { "bla", {44}} }; · 59 unmodified lines
6060 struct S gs3 = { (1), {(2)}, {(((3))), {4}}};
6161 /* Superfluous braces, and leaving out braces for V.t, plus cast */
6262 struct V gv = {{{3},4,{5,6}}, "haha", (u8)45, 46};
63−/* Compund literal */
63+/* Compound literal */
6464 struct V gv2 = {(struct S){7,8,{9,10}}, {"hihi", 47}, 48};
6565 /* Parens around compound literal */
6666 struct V gv3 = {((struct S){7,8,{9,10}}), {"hoho", 49}, 50};
@@ -157,7 +157,7 @@ void foo (struct W *w, struct pkthdr *phdr_) · 90 unmodified lines
157157 struct S ls3 = { (1), (2), {(((3))), 4}};
158158 /* Superfluous braces, and leaving out braces for V.t, plus cast */
159159 struct V lv = {{3,4,{5,6}}, "haha", (u8)45, 46};
160− /* Compund literal */
160+ /* Compound literal */
161161 struct V lv2 = {(struct S)w->t.s, {"hihi", 47}, 48};
162162 /* Parens around compound literal */
163163 struct V lv3 = {((struct S){7,8,{9,10}}), ((const struct W *)w)->t.t, 50};
tests/tests2/99_fastcall.c+3−3
@@ -89,10 +89,10 @@ struct trapframe { · 88 unmodified lines
8989 /////////////////////////////////////////////////////////////////////////
9090 ////////// SAFECALL FRAMEWORK
9191 /////////////////////////////////////////////////////////////////////////
92−// this framwork will convert any calling convention to cdecl
92+// this framework will convert any calling convention to cdecl
9393 // usage: first set call target with 'SET_SAFECALL_TARGET(x)'
94−// then cast 'SAFECALL' to target funtion pointer type and invoke it
95−// after calling, 'ESPDIFF' is the differance of old and new esp
94+// then cast 'SAFECALL' to target function pointer type and invoke it
95+// after calling, 'ESPDIFF' is the difference of old and new esp
9696
9797 void *SYMBOL(sc_call_target);
9898 unsigned SYMBOL(sc_retn_addr);
tests/tests2/Makefile+1−1
@@ -27,7 +27,7 @@ ifeq (-$(findstring gcc,$(CC))-,--) · 26 unmodified lines
2727 SKIP += $(patsubst %.expect,%.test,$(GEN-ALWAYS))
2828 endif
2929 ifeq (-$(CONFIG_WIN32)-$(CONFIG_i386)$(CONFIG_arm)-,--yes-)
30− SKIP += 95_bitfields%.test # type_align is differnt on 32bit-non-windows
30+ SKIP += 95_bitfields%.test # type_align is different on 32bit-non-windows
3131 endif
3232
3333 # Some tests might need arguments
win32/include/conio.h+1−1
@@ -194,7 +194,7 @@ extern "C" { · 193 unmodified lines
194194 }
195195
196196 /* Register sizes are different between 32/64 bit mode. So we have to do this for _WIN64 and _WIN32
197− seperatly. */
197+ separately. */
198198
199199 #ifdef _WIN64
200200 __CRT_INLINE void __writecr0(unsigned __int64 Data)
win32/include/math.h+1−1
@@ -327,7 +327,7 @@ extern "C" { · 326 unmodified lines
327327 #define isinf(x) (fpclassify(x) == FP_INFINITE)
328328
329329 /* 7.12.3.4 */
330− /* We don't need to worry about trucation here:
330+ /* We don't need to worry about truncation here:
331331 A NaN stays a NaN. */
332332 #define isnan(x) (fpclassify(x) == FP_NAN)
333333
win32/include/stdint.h+1−1
@@ -178,7 +178,7 @@ typedef unsigned long long uintmax_t; · 177 unmodified lines
178178
179179 /* 7.18.4.1 Macros for minimum-width integer constants
180180
181− Accoding to Douglas Gwyn <gwyn@arl.mil>:
181+ According to Douglas Gwyn <gwyn@arl.mil>:
182182 "This spec was changed in ISO/IEC 9899:1999 TC1; in ISO/IEC
183183 9899:1999 as initially published, the expansion was required
184184 to be an integer constant of precisely matching type, which
win32/include/values.h+1−1
@@ -1,4 +1,4 @@
11 /*
22 * TODO: Nothing here yet. Should provide UNIX compatibility constants
3− * comparible to those in limits.h and float.h.
3+ * comparable to those in limits.h and float.h.
44 */
x86_64-gen.c+2−2
@@ -314,14 +314,14 @@ static void gen_modrm_impl(int op_reg, int r, Sym *sym, int c, int is_got) · 313 unmodified lines
314314 }
315315 }
316316
317−/* generate a modrm reference. 'op_reg' contains the addtional 3
317+/* generate a modrm reference. 'op_reg' contains the additional 3
318318 opcode bits */
319319 static void gen_modrm(int op_reg, int r, Sym *sym, int c)
320320 {
321321 gen_modrm_impl(op_reg, r, sym, c, 0);
322322 }
323323
324−/* generate a modrm reference. 'op_reg' contains the addtional 3
324+/* generate a modrm reference. 'op_reg' contains the additional 3
325325 opcode bits */
326326 static void gen_modrm64(int opcode, int op_reg, int r, Sym *sym, int c)
327327 {