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
672 }672 }
673#else673#else
674 if (! (sym->type.t & VT_STATIC))674 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;
676#endif676#endif
677 if (tcc_state->leading_underscore && can_add_underscore) {677 if (tcc_state->leading_underscore && can_add_underscore) {
678 buf1[0] = '_';678 buf1[0] = '_';
@@ -2101,11 +2101,11 @@ PUB_FUNC int tcc_parse_args(TCCState *s, int argc, char **argv) · 1422 unmodified lines
2101 s->static_link = 1;2101 s->static_link = 1;
2102 break;2102 break;
2103 case TCC_OPTION_std:2103 case TCC_OPTION_std:
2104 /* silently ignore, a current purpose:2104 /* silently ignore, a current purpose:
2105 allow to use a tcc as a reference compiler for "make test" */2105 allow to use a tcc as a reference compiler for "make test" */
2106 break;2106 break;
2107 case TCC_OPTION_shared:2107 case TCC_OPTION_shared:
2108 if (s->output_type)2108 if (s->output_type)
2109 tcc_warning("-shared: some compiler action already specified (%d)", s->output_type);2109 tcc_warning("-shared: some compiler action already specified (%d)", s->output_type);
2110 s->output_type = TCC_OUTPUT_DLL;2110 s->output_type = TCC_OUTPUT_DLL;
2111 break;2111 break;
@@ -2124,7 +2124,7 @@ PUB_FUNC int tcc_parse_args(TCCState *s, int argc, char **argv) · 12 unmodified lines
2124 break;2124 break;
2125 case TCC_OPTION_r:2125 case TCC_OPTION_r:
2126 /* generate a .o merging several output files */2126 /* generate a .o merging several output files */
2127 if (s->output_type)2127 if (s->output_type)
2128 tcc_warning("-r: some compiler action already specified (%d)", s->output_type);2128 tcc_warning("-r: some compiler action already specified (%d)", s->output_type);
2129 s->option_r = 1;2129 s->option_r = 1;
2130 s->output_type = TCC_OUTPUT_OBJ;2130 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
2163 s->print_search_dirs = 1;2163 s->print_search_dirs = 1;
2164 break;2164 break;
2165 case TCC_OPTION_run:2165 case TCC_OPTION_run:
2166 if (s->output_type)2166 if (s->output_type)
2167 tcc_warning("-run: some compiler action already specified (%d)", s->output_type);2167 tcc_warning("-run: some compiler action already specified (%d)", s->output_type);
2168 s->output_type = TCC_OUTPUT_MEMORY;2168 s->output_type = TCC_OUTPUT_MEMORY;
2169 tcc_set_options(s, optarg);2169 tcc_set_options(s, optarg);
@@ -2194,7 +2194,7 @@ PUB_FUNC int tcc_parse_args(TCCState *s, int argc, char **argv) · 24 unmodified lines
2194 cstr_ccat(&linker_arg, '\0');2194 cstr_ccat(&linker_arg, '\0');
2195 break;2195 break;
2196 case TCC_OPTION_E:2196 case TCC_OPTION_E:
2197 if (s->output_type)2197 if (s->output_type)
2198 tcc_warning("-E: some compiler action already specified (%d)", s->output_type);2198 tcc_warning("-E: some compiler action already specified (%d)", s->output_type);
2199 s->output_type = TCC_OUTPUT_PREPROCESS;2199 s->output_type = TCC_OUTPUT_PREPROCESS;
2200 break;2200 break;
@@ -2251,13 +2251,13 @@ PUB_FUNC int tcc_parse_args(TCCState *s, int argc, char **argv) · 50 unmodified lines
2251 }2251 }
2252 2252
2253 if (s->output_type == 0)2253 if (s->output_type == 0)
2254 s->output_type = TCC_OUTPUT_EXE;2254 s->output_type = TCC_OUTPUT_EXE;
2255 2255
2256 if (pthread && s->output_type != TCC_OUTPUT_OBJ)2256 if (pthread && s->output_type != TCC_OUTPUT_OBJ)
2257 tcc_set_options(s, "-lpthread");2257 tcc_set_options(s, "-lpthread");
2258 2258
2259 if (s->output_type == TCC_OUTPUT_EXE)2259 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);
2261 cstr_free(&linker_arg);2261 cstr_free(&linker_arg);
2262 2262
2263 return optind;2263 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