aboutsummaryrefslogtreecommitdiff
path: root/libtcc.h
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 /libtcc.h
parentc5959b77b4b73b37dc512b957b23fa7b855ff6a2 (diff)
downloadtinycc-f8d02417642ec58bd3da16ccdf042019e4918f52.tar.gz
tinycc-f8d02417642ec58bd3da16ccdf042019e4918f52.tar.bz2
changed tcc_get_symbol() prototype
Diffstat (limited to 'libtcc.h')
-rw-r--r--libtcc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libtcc.h b/libtcc.h
index 98fcadc..406449a 100644
--- a/libtcc.h
+++ b/libtcc.h
@@ -83,8 +83,8 @@ int tcc_run(TCCState *s, int argc, char **argv);
non zero if link error. */
int tcc_relocate(TCCState *s);
-/* return symbol value or error */
-void *tcc_get_symbol(TCCState *s, const char *name);
+/* return symbol value. return 0 if OK, -1 if symbol not found */
+int tcc_get_symbol(TCCState *s, unsigned long *pval, const char *name);
#ifdef __cplusplus
}