changed tcc_get_symbol() prototype

This commit is contained in:
bellard
2003-07-20 19:19:58 +00:00
parent c5959b77b4
commit f8d0241764
4 changed files with 24 additions and 12 deletions

7
tcc.c
View File

@ -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