mirror of
git://repo.or.cz/tinycc.git
synced 2026-07-03 01:48:41 +08:00
tcc c-tyle-compliance: space between if and (
This commit is contained in:
parent
89935229a7
commit
7eebf614dc
4
tccelf.c
4
tccelf.c
@ -1320,7 +1320,7 @@ static void add_init_array_defines(TCCState *s1, const char *section_name)
|
|||||||
#ifndef TCC_TARGET_PE
|
#ifndef TCC_TARGET_PE
|
||||||
static int tcc_add_support(TCCState *s1, const char *filename)
|
static int tcc_add_support(TCCState *s1, const char *filename)
|
||||||
{
|
{
|
||||||
if(!filename || strlen(filename)==0) return 0;
|
if (!filename || strlen(filename)==0) return 0;
|
||||||
char buf[1024];
|
char buf[1024];
|
||||||
snprintf(buf, sizeof(buf), "%s/%s", s1->tcc_lib_path, filename);
|
snprintf(buf, sizeof(buf), "%s/%s", s1->tcc_lib_path, filename);
|
||||||
return tcc_add_file(s1, buf);
|
return tcc_add_file(s1, buf);
|
||||||
@ -2348,7 +2348,7 @@ static void tidy_section_headers(TCCState *s1, int *sec_order)
|
|||||||
for_each_elem(symtab_section, 1, sym, ElfW(Sym))
|
for_each_elem(symtab_section, 1, sym, ElfW(Sym))
|
||||||
if (sym->st_shndx != SHN_UNDEF && sym->st_shndx < SHN_LORESERVE)
|
if (sym->st_shndx != SHN_UNDEF && sym->st_shndx < SHN_LORESERVE)
|
||||||
sym->st_shndx = backmap[sym->st_shndx];
|
sym->st_shndx = backmap[sym->st_shndx];
|
||||||
if( !s1->static_link ) {
|
if ( !s1->static_link ) {
|
||||||
for_each_elem(s1->dynsym, 1, sym, ElfW(Sym))
|
for_each_elem(s1->dynsym, 1, sym, ElfW(Sym))
|
||||||
if (sym->st_shndx != SHN_UNDEF && sym->st_shndx < SHN_LORESERVE)
|
if (sym->st_shndx != SHN_UNDEF && sym->st_shndx < SHN_LORESERVE)
|
||||||
sym->st_shndx = backmap[sym->st_shndx];
|
sym->st_shndx = backmap[sym->st_shndx];
|
||||||
|
|||||||
2
tccpe.c
2
tccpe.c
@ -1855,7 +1855,7 @@ ST_FUNC void pe_add_unwind_data(unsigned start, unsigned end, unsigned stack)
|
|||||||
|
|
||||||
static void tcc_add_support(TCCState *s1, const char *filename)
|
static void tcc_add_support(TCCState *s1, const char *filename)
|
||||||
{
|
{
|
||||||
if(!filename || strlen(filename)==0) return;
|
if (!filename || strlen(filename)==0) return;
|
||||||
if (tcc_add_dll(s1, filename, 0) < 0)
|
if (tcc_add_dll(s1, filename, 0) < 0)
|
||||||
tcc_error_noabort("%s not found", filename);
|
tcc_error_noabort("%s not found", filename);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user