aboutsummaryrefslogtreecommitdiff
path: root/tcc.h
diff options
context:
space:
mode:
authorLarry Doolittle <ldoolitt@recycle.lbl.gov>2017-05-07 21:38:09 -0700
committerLarry Doolittle <ldoolitt@recycle.lbl.gov>2017-05-07 21:38:09 -0700
commit19d8b8a17383863d45823e37f20a94cc1d55c3a6 (patch)
tree5862658773da49c99ae77dfa0e578b3b519ed282 /tcc.h
parent1b9935cf36e83b389cb26008df93a654af3f2074 (diff)
downloadtinycc-19d8b8a17383863d45823e37f20a94cc1d55c3a6.tar.gz
tinycc-19d8b8a17383863d45823e37f20a94cc1d55c3a6.tar.bz2
Spelling fixes in C comments only
Diffstat (limited to 'tcc.h')
-rw-r--r--tcc.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/tcc.h b/tcc.h
index 45d62e6..596ee25 100644
--- a/tcc.h
+++ b/tcc.h
@@ -601,7 +601,7 @@ typedef struct ExprValue {
#define MAX_ASM_OPERANDS 30
typedef struct ASMOperand {
- int id; /* GCC 3 optionnal identifier (0 if number only supported */
+ int id; /* GCC 3 optional identifier (0 if number only supported */
char *constraint;
char asm_str[16]; /* computed asm string for operand */
SValue *vt; /* C value of the expression */
@@ -651,7 +651,7 @@ struct TCCState {
int char_is_unsigned;
int leading_underscore;
int ms_extensions; /* allow nested named struct w/o identifier behave like unnamed */
- int dollars_in_identifiers; /* allows '$' char in indentifiers */
+ int dollars_in_identifiers; /* allows '$' char in identifiers */
int ms_bitfields; /* if true, emulate MS algorithm for aligning bitfields */
/* warning switches */
@@ -768,7 +768,7 @@ struct TCCState {
Section *dynsymtab_section;
/* exported dynamic symbol section */
Section *dynsym;
- /* copy of the gobal symtab_section variable */
+ /* copy of the global symtab_section variable */
Section *symtab;
/* extra attributes (eg. GOT/PLT value) for symtab symbols */
struct sym_attr *sym_attrs;
@@ -945,7 +945,7 @@ struct filespec {
#define TOK_SHL 0x01 /* shift left */
#define TOK_SAR 0x02 /* signed shift right */
-/* assignement operators : normal operator or 0x80 */
+/* assignment operators : normal operator or 0x80 */
#define TOK_A_MOD 0xa5
#define TOK_A_AND 0xa6
#define TOK_A_MUL 0xaa
@@ -968,7 +968,7 @@ struct filespec {
#define TOK_EOF (-1) /* end of file */
#define TOK_LINEFEED 10 /* line feed */
-/* all identificators and strings have token above that */
+/* all identifiers and strings have token above that */
#define TOK_IDENT 256
#define DEF_ASM(x) DEF(TOK_ASM_ ## x, #x)
@@ -1241,7 +1241,7 @@ ST_FUNC int tcc_preprocess(TCCState *s1);
ST_FUNC void skip(int c);
ST_FUNC NORETURN void expect(const char *msg);
-/* space exlcuding newline */
+/* space excluding newline */
static inline int is_space(int ch) {
return ch == ' ' || ch == '\t' || ch == '\v' || ch == '\f' || ch == '\r';
}