Unified · Split
| @@ -1527,7 +1527,7 @@ ST_FUNC void pe_add_unwind_data(unsigned start, unsigned end, unsigned stack); · 1526 unmodified lines | ||
| 1527 | 1527 | ST_FUNC void *dlopen(const char *filename, int flag); |
| 1528 | 1528 | ST_FUNC void dlclose(void *p); |
| 1529 | 1529 | ST_FUNC const char *dlerror(void); |
| 1530 | −ST_FUNC void *dlsym(int flag, const char *symbol); | |
| 1530 | +ST_FUNC void *dlsym(void *handle, const char *symbol); | |
| 1531 | 1531 | #endif |
| 1532 | 1532 | #ifdef CONFIG_TCC_BACKTRACE |
| 1533 | 1533 | ST_DATA int rt_num_callers; |
| @@ -275,10 +275,9 @@ static void set_pages_executable(void *ptr, unsigned long length) · 274 unmodified lines | ||
| 275 | 275 | static void *win64_add_function_table(TCCState *s1) |
| 276 | 276 | { |
| 277 | 277 | void *p = NULL; |
| 278 | − int r; | |
| 279 | 278 | if (s1->uw_pdata) { |
| 280 | 279 | p = (void*)s1->uw_pdata->sh_addr; |
| 281 | − r = RtlAddFunctionTable( | |
| 280 | + RtlAddFunctionTable( | |
| 282 | 281 | (RUNTIME_FUNCTION*)p, |
| 283 | 282 | s1->uw_pdata->data_offset / sizeof (RUNTIME_FUNCTION), |
| 284 | 283 | text_section->sh_addr |
| @@ -798,7 +797,7 @@ static TCCSyms tcc_syms[] = { · 513 unmodified lines | ||
| 798 | 797 | { NULL, NULL }, |
| 799 | 798 | }; |
| 800 | 799 | |
| 801 | −ST_FUNC void *dlsym(int flag, const char *symbol) | |
| 800 | +ST_FUNC void *dlsym(void *handle, const char *symbol) | |
| 802 | 801 | { |
| 803 | 802 | TCCSyms *p; |
| 804 | 803 | p = tcc_syms; |