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 libtcc.c (1 of 10 files). Show all

Unified · Split

libtcc.c+9−9
@@ -672,7 +672,7 @@ ST_FUNC void put_extern_sym2(Sym *sym, Section *section, · 671 unmodified lines
672672 }
673673 #else
674674 if (! (sym->type.t & VT_STATIC))
675− other = (sym->type.t & VT_VIS_MASK) >> VT_VIS_SHIFT;
675+ other = (sym->type.t & VT_VIS_MASK) >> VT_VIS_SHIFT;
676676 #endif
677677 if (tcc_state->leading_underscore && can_add_underscore) {
678678 buf1[0] = '_';
@@ -2101,11 +2101,11 @@ PUB_FUNC int tcc_parse_args(TCCState *s, int argc, char **argv) · 1422 unmodified lines
21012101 s->static_link = 1;
21022102 break;
21032103 case TCC_OPTION_std:
2104− /* silently ignore, a current purpose:
2105− allow to use a tcc as a reference compiler for "make test" */
2104+ /* silently ignore, a current purpose:
2105+ allow to use a tcc as a reference compiler for "make test" */
21062106 break;
21072107 case TCC_OPTION_shared:
2108− if (s->output_type)
2108+ if (s->output_type)
21092109 tcc_warning("-shared: some compiler action already specified (%d)", s->output_type);
21102110 s->output_type = TCC_OUTPUT_DLL;
21112111 break;
@@ -2124,7 +2124,7 @@ PUB_FUNC int tcc_parse_args(TCCState *s, int argc, char **argv) · 12 unmodified lines
21242124 break;
21252125 case TCC_OPTION_r:
21262126 /* generate a .o merging several output files */
2127− if (s->output_type)
2127+ if (s->output_type)
21282128 tcc_warning("-r: some compiler action already specified (%d)", s->output_type);
21292129 s->option_r = 1;
21302130 s->output_type = TCC_OUTPUT_OBJ;
@@ -2163,7 +2163,7 @@ PUB_FUNC int tcc_parse_args(TCCState *s, int argc, char **argv) · 32 unmodified lines
21632163 s->print_search_dirs = 1;
21642164 break;
21652165 case TCC_OPTION_run:
2166− if (s->output_type)
2166+ if (s->output_type)
21672167 tcc_warning("-run: some compiler action already specified (%d)", s->output_type);
21682168 s->output_type = TCC_OUTPUT_MEMORY;
21692169 tcc_set_options(s, optarg);
@@ -2194,7 +2194,7 @@ PUB_FUNC int tcc_parse_args(TCCState *s, int argc, char **argv) · 24 unmodified lines
21942194 cstr_ccat(&linker_arg, '\0');
21952195 break;
21962196 case TCC_OPTION_E:
2197− if (s->output_type)
2197+ if (s->output_type)
21982198 tcc_warning("-E: some compiler action already specified (%d)", s->output_type);
21992199 s->output_type = TCC_OUTPUT_PREPROCESS;
22002200 break;
@@ -2251,13 +2251,13 @@ PUB_FUNC int tcc_parse_args(TCCState *s, int argc, char **argv) · 50 unmodified lines
22512251 }
22522252
22532253 if (s->output_type == 0)
2254− s->output_type = TCC_OUTPUT_EXE;
2254+ s->output_type = TCC_OUTPUT_EXE;
22552255
22562256 if (pthread && s->output_type != TCC_OUTPUT_OBJ)
22572257 tcc_set_options(s, "-lpthread");
22582258
22592259 if (s->output_type == TCC_OUTPUT_EXE)
2260− tcc_set_linker(s, (const char *)linker_arg.data);
2260+ tcc_set_linker(s, (const char *)linker_arg.data);
22612261 cstr_free(&linker_arg);
22622262
22632263 return optind;

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