From f98c2306a0857ad3f8800f91e0554a27adc7f675 Mon Sep 17 00:00:00 2001 From: grischka Date: Wed, 18 Apr 2012 18:48:26 +0200 Subject: libtcc: tcc_get_symbol uses the TCCState parameter This allows using tcc_get_symbol on some other than the current TCCState. (Suggested by David Mertens) --- tcc.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tcc.h') diff --git a/tcc.h b/tcc.h index 3e297a1..95d5030 100644 --- a/tcc.h +++ b/tcc.h @@ -527,6 +527,9 @@ struct TCCState { /* exported dynamic symbol section */ Section *dynsym; + /* copy of the gobal symtab_section variable */ + Section *symtab; + int nostdinc; /* if true, no standard headers are added */ int nostdlib; /* if true, no standard libraries are added */ int nocommon; /* if true, do not use common symbols for .bss data */ -- cgit v1.3.1