From 3ad3168125ecb1910e6e241dc9056bccb57e9d0a Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Tue, 20 Apr 2010 15:49:34 +0200 Subject: Clean changes introduced by 47abdbd * Replace the save/load_buffer_state by a dynarray approach: - Filename and libname are added to a dynarray when first encountered - Load repeatedly the files in the dynarray until no new undefined symbol are encountered * Replace snprintf by sprintf in libname_to_filename * Use tcc_fileextension in filename_to_libname * Introduce a tcc_strcpy_part fonction to copy only a subset of a string * Move new_undef_syms declaration from tcc.h to tccelf.c --- tcc.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'tcc.h') diff --git a/tcc.h b/tcc.h index 13cf314..66ac779 100644 --- a/tcc.h +++ b/tcc.h @@ -225,8 +225,6 @@ typedef struct Sym { struct Sym *prev_tok; /* previous symbol for this token */ } Sym; -static int new_undef_sym = 0; /* Is there a new undefined sym since last new_undef_sym() */ - /* section definition */ /* XXX: use directly ELF structure for parameters ? */ /* special flag to indicate that the section should not be linked to -- cgit v1.3.1