diff options
| author | grischka <grischka> | 2009-04-16 21:50:43 +0200 |
|---|---|---|
| committer | grischka <grischka> | 2009-04-18 15:08:02 +0200 |
| commit | b1697be6917ecf16013d8467329bccff6a9e5b9f (patch) | |
| tree | f6f07ee593d0978149d85c8a967a89c8515ed482 /libtcc.h | |
| parent | 795f67428e7863353d7c466c211d8fcbb9e8c988 (diff) | |
| download | tinycc-b1697be6917ecf16013d8467329bccff6a9e5b9f.tar.gz tinycc-b1697be6917ecf16013d8467329bccff6a9e5b9f.tar.bz2 | |
change tcc_add/get_symbol to use void*
Diffstat (limited to 'libtcc.h')
| -rw-r--r-- | libtcc.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -74,7 +74,7 @@ int tcc_add_library_path(TCCState *s, const char *pathname); int tcc_add_library(TCCState *s, const char *libraryname); /* add a symbol to the compiled program */ -int tcc_add_symbol(TCCState *s, const char *name, unsigned long val); +int tcc_add_symbol(TCCState *s, const char *name, void *val); /* output an executable, library or object file. DO NOT call tcc_relocate() before. */ @@ -89,8 +89,8 @@ int tcc_run(TCCState *s, int argc, char **argv); returns -1 on error and required size if ptr is NULL */ int tcc_relocate(TCCState *s1, void *ptr); -/* return symbol value. return 0 if OK, -1 if symbol not found */ -int tcc_get_symbol(TCCState *s, unsigned long *pval, const char *name); +/* return symbol value or NULL if not found */ +void *tcc_get_symbol(TCCState *s, const char *name); #ifdef __cplusplus } |
