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
9292 break;
9393 case TOK_CCHAR:
9494 case TOK_LCHAR:
95− pe->v = tokc.i;
96− pe->sym = NULL;
97− next();
98− break;
95+ pe->v = tokc.i;
96+ pe->sym = NULL;
97+ next();
98+ break;
9999 case '(':
100100 next();
101101 asm_expr(s1, pe);
@@ -493,7 +493,7 @@ static void asm_parse_directive(TCCState *s1) · 391 unmodified lines
493493 case TOK_ASM_weak:
494494 case TOK_ASM_hidden:
495495 tok1 = tok;
496− do {
496+ do {
497497 Sym *sym;
498498
499499 next();
@@ -502,15 +502,15 @@ static void asm_parse_directive(TCCState *s1) · 2 unmodified lines
502502 sym = label_push(&s1->asm_labels, tok, 0);
503503 sym->type.t = VT_VOID;
504504 }
505− if (tok1 != TOK_ASM_hidden)
505+ if (tok1 != TOK_ASM_hidden)
506506 sym->type.t &= ~VT_STATIC;
507507 if (tok1 == TOK_ASM_weak)
508508 sym->type.t |= VT_WEAK;
509− else if (tok1 == TOK_ASM_hidden)
510− sym->type.t |= STV_HIDDEN << VT_VIS_SHIFT;
509+ else if (tok1 == TOK_ASM_hidden)
510+ sym->type.t |= STV_HIDDEN << VT_VIS_SHIFT;
511511 next();
512− } while (tok == ',');
513− break;
512+ } while (tok == ',');
513+ break;
514514 case TOK_ASM_string:
515515 case TOK_ASM_ascii:
516516 case TOK_ASM_asciz:
@@ -536,24 +536,24 @@ static void asm_parse_directive(TCCState *s1) · 19 unmodified lines
536536 break;
537537 }
538538 }
539− }
540− break;
539+ }
540+ break;
541541 case TOK_ASM_text:
542542 case TOK_ASM_data:
543543 case TOK_ASM_bss:
544− {
544+ {
545545 char sname[64];
546546 tok1 = tok;
547547 n = 0;
548548 next();
549549 if (tok != ';' && tok != TOK_LINEFEED) {
550− n = asm_int_expr(s1);
551− next();
550+ n = asm_int_expr(s1);
551+ next();
552552 }
553553 sprintf(sname, (n?".%s%d":".%s"), get_tok_str(tok1, NULL), n);
554554 use_section(s1, sname);
555− }
556− break;
555+ }
556+ break;
557557 case TOK_ASM_file:
558558 {
559559 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