From 8bbde91f62291cb0383c2406ae6123be903c944b Mon Sep 17 00:00:00 2001 From: grischka Date: Sat, 19 Dec 2009 22:11:12 +0100 Subject: tcc_relocate: revert to 0.9.24 behavior --- libtcc.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'libtcc.h') diff --git a/libtcc.h b/libtcc.h index 96070e2..ada20c2 100644 --- a/libtcc.h +++ b/libtcc.h @@ -90,10 +90,9 @@ LIBTCCAPI int tcc_output_file(TCCState *s, const char *filename); tcc_relocate() before. */ LIBTCCAPI int tcc_run(TCCState *s, int argc, char **argv); -/* copy code into memory passed in by the caller and do all relocations - (needed before using tcc_get_symbol()). - returns -1 on error and required size if ptr is NULL */ -LIBTCCAPI int tcc_relocate(TCCState *s1, void *ptr); +/* Do all relocations (needed before using tcc_get_symbol()) + Returns -1 on error. */ +LIBTCCAPI int tcc_relocate(TCCState *s1); /* return symbol value or NULL if not found */ LIBTCCAPI void *tcc_get_symbol(TCCState *s, const char *name); -- cgit v1.3.1