diff options
| author | Alexandre Julliard <julliard@winehq.org> | 2023-06-24 18:20:24 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-24 18:20:24 +0200 |
| commit | 770cba7e2b46d3bbd0ce309dbc253f7a4517087a (patch) | |
| tree | b32abe8503710fba68ef11964f1226e9ac4bb96f /src/include/custommem.h | |
| parent | 8aa98d3f53600ce978a2a4a41d51f394ef312fd8 (diff) | |
| download | box64-770cba7e2b46d3bbd0ce309dbc253f7a4517087a.tar.gz box64-770cba7e2b46d3bbd0ce309dbc253f7a4517087a.zip | |
A few cosmetic fixes (#858)
* [DYNAREC] Don't include pthread.h in C files. It's already included from box64context.h. Since there's no pthread.h on Win32, including it only once avoids having to add ifdefs everywhere. * [DYNAREC] Remove some duplicate definitions of the GETG helper macros. * Declare void functions with an explicit void. To avoid 'function declaration is not a prototype' warnings when using -Wstrict-prototypes. * Avoid including bridge_private.h in files that don't need it. * Avoid defining ZYDIS_RUNTIME_ADDRESS_NONE. It's not used, and conflicts with the original Zydis headers.
Diffstat (limited to 'src/include/custommem.h')
| -rw-r--r-- | src/include/custommem.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/custommem.h b/src/include/custommem.h index e7623db2..13e73c4f 100644 --- a/src/include/custommem.h +++ b/src/include/custommem.h @@ -32,7 +32,7 @@ int setJumpTableIfRef64(void* addr, void* jmp, void* ref); // return 1 if write void setJumpTableDefault64(void* addr); void setJumpTableDefaultRef64(void* addr, void* jmp); int isJumpTableDefault64(void* addr); -uintptr_t getJumpTable64(); +uintptr_t getJumpTable64(void); uintptr_t getJumpTableAddress64(uintptr_t addr); uintptr_t getJumpAddress64(uintptr_t addr); @@ -64,7 +64,7 @@ void freeProtection(uintptr_t addr, size_t size); void refreshProtection(uintptr_t addr); uint32_t getProtection(uintptr_t addr); int getMmapped(uintptr_t addr); -void loadProtectionFromMap(); +void loadProtectionFromMap(void); #ifdef DYNAREC void protectDB(uintptr_t addr, size_t size); void unprotectDB(uintptr_t addr, size_t size, int mark); // if mark==0, the blocks are not marked as potentially dirty @@ -79,7 +79,7 @@ void* find47bitBlock(size_t size); void* find47bitBlockNearHint(void* hint, size_t size); // unlock mutex that are locked by current thread (for signal handling). Return a mask of unlock mutex -int unlockCustommemMutex(); +int unlockCustommemMutex(void); // relock the muxtex that were unlocked void relockCustommemMutex(int locks); |