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
1320#ifndef TCC_TARGET_PE1320#ifndef TCC_TARGET_PE
1321static int tcc_add_support(TCCState *s1, const char *filename)1321static int tcc_add_support(TCCState *s1, const char *filename)
1322{1322{
1323 if(!filename || strlen(filename)==0) return 0;1323 if (!filename || strlen(filename)==0) return 0;
1324 char buf[1024];1324 char buf[1024];
1325 snprintf(buf, sizeof(buf), "%s/%s", s1->tcc_lib_path, filename);1325 snprintf(buf, sizeof(buf), "%s/%s", s1->tcc_lib_path, filename);
1326 return tcc_add_file(s1, buf);1326 return tcc_add_file(s1, buf);
@@ -2348,7 +2348,7 @@ static void tidy_section_headers(TCCState *s1, int *sec_order) · 1021 unmodified lines
2348 for_each_elem(symtab_section, 1, sym, ElfW(Sym))2348 for_each_elem(symtab_section, 1, sym, ElfW(Sym))
2349 if (sym->st_shndx != SHN_UNDEF && sym->st_shndx < SHN_LORESERVE)2349 if (sym->st_shndx != SHN_UNDEF && sym->st_shndx < SHN_LORESERVE)
2350 sym->st_shndx = backmap[sym->st_shndx];2350 sym->st_shndx = backmap[sym->st_shndx];
2351 if( !s1->static_link ) {2351 if ( !s1->static_link ) {
2352 for_each_elem(s1->dynsym, 1, sym, ElfW(Sym))2352 for_each_elem(s1->dynsym, 1, sym, ElfW(Sym))
2353 if (sym->st_shndx != SHN_UNDEF && sym->st_shndx < SHN_LORESERVE)2353 if (sym->st_shndx != SHN_UNDEF && sym->st_shndx < SHN_LORESERVE)
2354 sym->st_shndx = backmap[sym->st_shndx];2354 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
1855 1855
1856static void tcc_add_support(TCCState *s1, const char *filename)1856static void tcc_add_support(TCCState *s1, const char *filename)
1857{1857{
1858 if(!filename || strlen(filename)==0) return;1858 if (!filename || strlen(filename)==0) return;
1859 if (tcc_add_dll(s1, filename, 0) < 0)1859 if (tcc_add_dll(s1, filename, 0) < 0)
1860 tcc_error_noabort("%s not found", filename);1860 tcc_error_noabort("%s not found", filename);
1861}1861}

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