aboutsummaryrefslogtreecommitdiff
path: root/tcc.c
diff options
context:
space:
mode:
authorbellard <bellard>2003-07-20 19:19:58 +0000
committerbellard <bellard>2003-07-20 19:19:58 +0000
commitf8d02417642ec58bd3da16ccdf042019e4918f52 (patch)
tree256dc8bd4b214da40d39de2862d9bfc511659b84 /tcc.c
parentc5959b77b4b73b37dc512b957b23fa7b855ff6a2 (diff)
downloadtinycc-f8d02417642ec58bd3da16ccdf042019e4918f52.tar.gz
tinycc-f8d02417642ec58bd3da16ccdf042019e4918f52.tar.bz2
changed tcc_get_symbol() prototype
Diffstat (limited to 'tcc.c')
-rw-r--r--tcc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/tcc.c b/tcc.c
index aa3bc83..68bf046 100644
--- a/tcc.c
+++ b/tcc.c
@@ -9115,7 +9115,7 @@ int tcc_run(TCCState *s1, int argc, char **argv)
if (tcc_relocate(s1) < 0)
return -1;
- prog_main = tcc_get_symbol(s1, "main");
+ prog_main = tcc_get_symbol_err(s1, "main");
if (do_debug) {
#ifdef WIN32
@@ -9140,10 +9140,11 @@ int tcc_run(TCCState *s1, int argc, char **argv)
void (*bound_init)(void);
/* set error function */
- rt_bound_error_msg = (void *)tcc_get_symbol(s1, "__bound_error_msg");
+ rt_bound_error_msg = (void *)tcc_get_symbol_err(s1,
+ "__bound_error_msg");
/* XXX: use .init section so that it also work in binary ? */
- bound_init = (void *)tcc_get_symbol(s1, "__bound_init");
+ bound_init = (void *)tcc_get_symbol_err(s1, "__bound_init");
bound_init();
}
#endif