diff options
| author | Larry Doolittle <ldoolitt@recycle.lbl.gov> | 2017-09-24 18:03:26 -0700 |
|---|---|---|
| committer | Larry Doolittle <ldoolitt@recycle.lbl.gov> | 2017-09-24 18:03:26 -0700 |
| commit | 1b6806e5bb39623c75b4aa8d8d6ffe1ef7ea46e7 (patch) | |
| tree | 07a87c82efa398bce0b3d663c72c7b8e52439a1e /tests | |
| parent | 44d4da62bb6aabd9030960fa41c12c097158ce0b (diff) | |
| download | tinycc-1b6806e5bb39623c75b4aa8d8d6ffe1ef7ea46e7.tar.gz tinycc-1b6806e5bb39623c75b4aa8d8d6ffe1ef7ea46e7.tar.bz2 | |
Spelling fixes
Comments only, no change to functionality
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/abitest.c | 2 | ||||
| -rw-r--r-- | tests/pp/15.c | 2 | ||||
| -rw-r--r-- | tests/tcctest.c | 6 | ||||
| -rw-r--r-- | tests/tests2/87_dead_code.c | 2 | ||||
| -rw-r--r-- | tests/tests2/90_struct-init.c | 4 | ||||
| -rw-r--r-- | tests/tests2/99_fastcall.c | 6 | ||||
| -rw-r--r-- | tests/tests2/Makefile | 2 |
7 files changed, 12 insertions, 12 deletions
diff --git a/tests/abitest.c b/tests/abitest.c index c4059d4..4a192bd 100644 --- a/tests/abitest.c +++ b/tests/abitest.c @@ -425,7 +425,7 @@ static int two_member_union_test(void) { } /* - * Win64 calling convetntion test. + * Win64 calling convention test. */ typedef struct many_struct_test_type_s {long long a, b, c;} many_struct_test_type; diff --git a/tests/pp/15.c b/tests/pp/15.c index d989bee..3bbc3ca 100644 --- a/tests/pp/15.c +++ b/tests/pp/15.c @@ -14,5 +14,5 @@ return n(0x1E)n(-1); // unlike gcc but correct XXX: return n(x)+n(x)-n(1)+n(1)-2; -// unlile gcc, but cannot appear in valid C +// unlike gcc, but cannot appear in valid C XXX: return n(x)n(x)n(1)n(2)n(x); diff --git a/tests/tcctest.c b/tests/tcctest.c index 2add498..7877243 100644 --- a/tests/tcctest.c +++ b/tests/tcctest.c @@ -384,7 +384,7 @@ void macro_test(void) MF_s("hi"); MF_t("hi"); - /* test macro substituion inside args (should not eat stream) */ + /* test macro substitution inside args (should not eat stream) */ printf("qq=%d\n", qq(qq)(2)); /* test zero argument case. NOTE: gcc 2.95.x does not accept a @@ -404,7 +404,7 @@ comment substituted */ TEST2(); - /* And again when the name and parenthes are separated by a + /* And again when the name and parentheses are separated by a comment. */ TEST2 /* the comment */ (); @@ -3117,7 +3117,7 @@ static __inline__ unsigned long long inc64(unsigned long long a) unsigned long long res; #ifdef __x86_64__ /* Using the A constraint is wrong, and increments are tested - elsewere. */ + elsewhere. */ res = a + 1; #else __asm__("addl $1, %%eax ; adcl $0, %%edx" : "=A" (res) : "A" (a)); diff --git a/tests/tests2/87_dead_code.c b/tests/tests2/87_dead_code.c index 92983f5..98d4566 100644 --- a/tests/tests2/87_dead_code.c +++ b/tests/tests2/87_dead_code.c @@ -9,7 +9,7 @@ static void kb_wait_1(void) /* Here the else arm is a statement expression that's supposed to be suppressed. The label inside the while would unsuppress code generation again if not handled correctly. And that - would wreak havok to the cond-expression because there's no + would wreak havoc to the cond-expression because there's no jump-around emitted, the whole statement expression really needs to not generate code (perhaps except useless forward jumps). */ (1 ? diff --git a/tests/tests2/90_struct-init.c b/tests/tests2/90_struct-init.c index ab33812..d931e23 100644 --- a/tests/tests2/90_struct-init.c +++ b/tests/tests2/90_struct-init.c @@ -60,7 +60,7 @@ struct U gu4 = { 3, {5,6,7,}, 5, { "bla", {44}} }; struct S gs3 = { (1), {(2)}, {(((3))), {4}}}; /* Superfluous braces, and leaving out braces for V.t, plus cast */ struct V gv = {{{3},4,{5,6}}, "haha", (u8)45, 46}; -/* Compund literal */ +/* Compound literal */ struct V gv2 = {(struct S){7,8,{9,10}}, {"hihi", 47}, 48}; /* Parens around compound literal */ struct V gv3 = {((struct S){7,8,{9,10}}), {"hoho", 49}, 50}; @@ -157,7 +157,7 @@ void foo (struct W *w, struct pkthdr *phdr_) struct S ls3 = { (1), (2), {(((3))), 4}}; /* Superfluous braces, and leaving out braces for V.t, plus cast */ struct V lv = {{3,4,{5,6}}, "haha", (u8)45, 46}; - /* Compund literal */ + /* Compound literal */ struct V lv2 = {(struct S)w->t.s, {"hihi", 47}, 48}; /* Parens around compound literal */ struct V lv3 = {((struct S){7,8,{9,10}}), ((const struct W *)w)->t.t, 50}; diff --git a/tests/tests2/99_fastcall.c b/tests/tests2/99_fastcall.c index 1ac8a5f..ee4b67d 100644 --- a/tests/tests2/99_fastcall.c +++ b/tests/tests2/99_fastcall.c @@ -89,10 +89,10 @@ struct trapframe { ///////////////////////////////////////////////////////////////////////// ////////// SAFECALL FRAMEWORK ///////////////////////////////////////////////////////////////////////// -// this framwork will convert any calling convention to cdecl +// this framework will convert any calling convention to cdecl // usage: first set call target with 'SET_SAFECALL_TARGET(x)' -// then cast 'SAFECALL' to target funtion pointer type and invoke it -// after calling, 'ESPDIFF' is the differance of old and new esp +// then cast 'SAFECALL' to target function pointer type and invoke it +// after calling, 'ESPDIFF' is the difference of old and new esp void *SYMBOL(sc_call_target); unsigned SYMBOL(sc_retn_addr); diff --git a/tests/tests2/Makefile b/tests/tests2/Makefile index 3ff60fd..6bff618 100644 --- a/tests/tests2/Makefile +++ b/tests/tests2/Makefile @@ -27,7 +27,7 @@ ifeq (-$(findstring gcc,$(CC))-,--) SKIP += $(patsubst %.expect,%.test,$(GEN-ALWAYS)) endif ifeq (-$(CONFIG_WIN32)-$(CONFIG_i386)$(CONFIG_arm)-,--yes-) - SKIP += 95_bitfields%.test # type_align is differnt on 32bit-non-windows + SKIP += 95_bitfields%.test # type_align is different on 32bit-non-windows endif # Some tests might need arguments |
