History

tcc/lib: reduce number of files

271 insertions(+), 292 deletions(-), -21 lines, -5 files Also: - tccdefs.h: WIN32: less (no) __builtins - libtcc.c: simply ignore -arch

grischka committed 5 years ago

Commit 675046b1 parent e53816016 files · +271 −292Browse files

Showing the changes to include (1 of 16 files). Show all

Unified · Split

include/tccdefs.h+6−0
@@ -222,6 +222,7 @@ · 221 unmodified lines
222222 #else
223223 # define __RENAME(X) __asm__(X)
224224 #endif
225+
225226 #ifdef __BOUNDS_CHECKING_ON
226227 # define __BUILTINBC(ret,name,params) ret __builtin_##name params __RENAME("__bound_"#name);
227228 # define __BOUND(ret,name,params) ret name params __RENAME("__bound_"#name);
@@ -229,8 +230,13 @@ · 1 unmodified line
229230 # define __BUILTINBC(ret,name,params) ret __builtin_##name params __RENAME(#name);
230231 # define __BOUND(ret,name,params)
231232 #endif
233+#ifdef _WIN32
234+ #define __BOTH __BOUND
235+ #define __BUILTIN(ret,name,params)
236+#else
232237 #define __BOTH(ret,name,params) __BUILTINBC(ret,name,params)__BOUND(ret,name,params)
233238 #define __BUILTIN(ret,name,params) ret __builtin_##name params __RENAME(#name);
239+#endif
234240
235241 __BOTH(void*, memcpy, (void *, const void*, __SIZE_TYPE__))
236242 __BOTH(void*, memmove, (void *, const void*, __SIZE_TYPE__))

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t