History

tcc c-tyle-compliance: space between if and (

wanjochan committed 6 years ago

Commit 7eebf611 parent 89935222 files · +3 −3Browse files

Unified · Split

2 files
  1. tccelf.c +2 −2
  2. tccpe.c +1 −1
tccelf.c+2−2
@@ -1320,7 +1320,7 @@ static void add_init_array_defines(TCCState *s1, const char *section_name) · 1319 unmodified lines
13201320 #ifndef TCC_TARGET_PE
13211321 static int tcc_add_support(TCCState *s1, const char *filename)
13221322 {
1323− if(!filename || strlen(filename)==0) return 0;
1323+ if (!filename || strlen(filename)==0) return 0;
13241324 char buf[1024];
13251325 snprintf(buf, sizeof(buf), "%s/%s", s1->tcc_lib_path, filename);
13261326 return tcc_add_file(s1, buf);
@@ -2348,7 +2348,7 @@ static void tidy_section_headers(TCCState *s1, int *sec_order) · 1021 unmodified lines
23482348 for_each_elem(symtab_section, 1, sym, ElfW(Sym))
23492349 if (sym->st_shndx != SHN_UNDEF && sym->st_shndx < SHN_LORESERVE)
23502350 sym->st_shndx = backmap[sym->st_shndx];
2351− if( !s1->static_link ) {
2351+ if ( !s1->static_link ) {
23522352 for_each_elem(s1->dynsym, 1, sym, ElfW(Sym))
23532353 if (sym->st_shndx != SHN_UNDEF && sym->st_shndx < SHN_LORESERVE)
23542354 sym->st_shndx = backmap[sym->st_shndx];
tccpe.c+1−1
@@ -1855,7 +1855,7 @@ ST_FUNC void pe_add_unwind_data(unsigned start, unsigned end, unsigned stack) · 1854 unmodified lines
18551855
18561856 static void tcc_add_support(TCCState *s1, const char *filename)
18571857 {
1858− if(!filename || strlen(filename)==0) return;
1858+ if (!filename || strlen(filename)==0) return;
18591859 if (tcc_add_dll(s1, filename, 0) < 0)
18601860 tcc_error_noabort("%s not found", filename);
18611861 }

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