History

Clean up lots of rogue tabs.

Still some more tabs to be taken care of. arm-gen.c and tcccoff.c have so many style issues that I'm just going to throw clang-format at them.

gus knight committed 11 years ago

Commit d6b64e21 parent 410312210 files · +427 −428Browse files

Showing the changes to tccasm.c (1 of 10 files). Show all

Unified · Split

tccasm.c+17−17
@@ -92,10 +92,10 @@ static void asm_expr_unary(TCCState *s1, ExprValue *pe) · 91 unmodified lines
92 break;92 break;
93 case TOK_CCHAR:93 case TOK_CCHAR:
94 case TOK_LCHAR:94 case TOK_LCHAR:
95 pe->v = tokc.i;95 pe->v = tokc.i;
96 pe->sym = NULL;96 pe->sym = NULL;
97 next();97 next();
98 break;98 break;
99 case '(':99 case '(':
100 next();100 next();
101 asm_expr(s1, pe);101 asm_expr(s1, pe);
@@ -493,7 +493,7 @@ static void asm_parse_directive(TCCState *s1) · 391 unmodified lines
493 case TOK_ASM_weak:493 case TOK_ASM_weak:
494 case TOK_ASM_hidden:494 case TOK_ASM_hidden:
495 tok1 = tok;495 tok1 = tok;
496 do {496 do {
497 Sym *sym;497 Sym *sym;
498 498
499 next();499 next();
@@ -502,15 +502,15 @@ static void asm_parse_directive(TCCState *s1) · 2 unmodified lines
502 sym = label_push(&s1->asm_labels, tok, 0);502 sym = label_push(&s1->asm_labels, tok, 0);
503 sym->type.t = VT_VOID;503 sym->type.t = VT_VOID;
504 }504 }
505 if (tok1 != TOK_ASM_hidden)505 if (tok1 != TOK_ASM_hidden)
506 sym->type.t &= ~VT_STATIC;506 sym->type.t &= ~VT_STATIC;
507 if (tok1 == TOK_ASM_weak)507 if (tok1 == TOK_ASM_weak)
508 sym->type.t |= VT_WEAK;508 sym->type.t |= VT_WEAK;
509 else if (tok1 == TOK_ASM_hidden)509 else if (tok1 == TOK_ASM_hidden)
510 sym->type.t |= STV_HIDDEN << VT_VIS_SHIFT;510 sym->type.t |= STV_HIDDEN << VT_VIS_SHIFT;
511 next();511 next();
512 } while (tok == ',');512 } while (tok == ',');
513 break;513 break;
514 case TOK_ASM_string:514 case TOK_ASM_string:
515 case TOK_ASM_ascii:515 case TOK_ASM_ascii:
516 case TOK_ASM_asciz:516 case TOK_ASM_asciz:
@@ -536,24 +536,24 @@ static void asm_parse_directive(TCCState *s1) · 19 unmodified lines
536 break;536 break;
537 }537 }
538 }538 }
539 }539 }
540 break;540 break;
541 case TOK_ASM_text:541 case TOK_ASM_text:
542 case TOK_ASM_data:542 case TOK_ASM_data:
543 case TOK_ASM_bss:543 case TOK_ASM_bss:
544 {544 {
545 char sname[64];545 char sname[64];
546 tok1 = tok;546 tok1 = tok;
547 n = 0;547 n = 0;
548 next();548 next();
549 if (tok != ';' && tok != TOK_LINEFEED) {549 if (tok != ';' && tok != TOK_LINEFEED) {
550 n = asm_int_expr(s1);550 n = asm_int_expr(s1);
551 next();551 next();
552 }552 }
553 sprintf(sname, (n?".%s%d":".%s"), get_tok_str(tok1, NULL), n);553 sprintf(sname, (n?".%s%d":".%s"), get_tok_str(tok1, NULL), n);
554 use_section(s1, sname);554 use_section(s1, sname);
555 }555 }
556 break;556 break;
557 case TOK_ASM_file:557 case TOK_ASM_file:
558 {558 {
559 char filename[512];559 char filename[512];

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t