Changeset 113798 in webkit
- Timestamp:
- Apr 10, 2012 6:09:07 PM (12 years ago)
- Location:
- trunk/Source
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r113796 r113798 1 2012-04-10 Patrick Gansterer <paroga@webkit.org> 2 3 Cleanup wtf/Platform.h and config.h files 4 https://bugs.webkit.org/show_bug.cgi?id=83431 5 6 Reviewed by Eric Seidel. 7 8 The ENABLE() and USE() macros take care about the case when the flag 9 isn't defined. So there is no need to define anything with 0. 10 11 Also move duplicated code from the config.h files to Platform.h and 12 merge a few preprocessor commands to make the file more readable. 13 14 * config.h: 15 1 16 2012-04-10 Filip Pizlo <fpizlo@apple.com> 2 17 -
trunk/Source/JavaScriptCore/config.h
r113571 r113798 62 62 #endif 63 63 64 #if OS(UNIX) || OS(WINDOWS)65 #define WTF_USE_OS_RANDOMNESS 166 #endif67 68 #if (OS(FREEBSD) || OS(OPENBSD)) && !defined(__GLIBC__)69 #define HAVE_PTHREAD_NP_H 170 #endif71 72 64 #define WTF_CHANGES 1 73 65 -
trunk/Source/WTF/ChangeLog
r113796 r113798 1 2012-04-10 Patrick Gansterer <paroga@webkit.org> 2 3 Cleanup wtf/Platform.h and config.h files 4 https://bugs.webkit.org/show_bug.cgi?id=83431 5 6 Reviewed by Eric Seidel. 7 8 The ENABLE() and USE() macros take care about the case when the flag 9 isn't defined. So there is no need to define anything with 0. 10 11 Also move duplicated code from the config.h files to Platform.h and 12 merge a few preprocessor commands to make the file more readable. 13 14 * config.h: 15 * wtf/Platform.h: 16 1 17 2012-04-10 Filip Pizlo <fpizlo@apple.com> 2 18 -
trunk/Source/WTF/config.h
r113571 r113798 55 55 #endif 56 56 57 #if OS(UNIX) || OS(WINDOWS)58 #define WTF_USE_OS_RANDOMNESS 159 #endif60 61 #if (OS(FREEBSD) || OS(OPENBSD)) && !defined(__GLIBC__)62 #define HAVE_PTHREAD_NP_H 163 #endif64 65 57 #define WTF_CHANGES 1 66 58 … … 83 75 #define SKIP_STATIC_CONSTRUCTORS_ON_GCC 1 84 76 #endif 85 86 #if PLATFORM(CHROMIUM)87 #if !defined(WTF_USE_V8)88 #define WTF_USE_V8 189 #endif90 #endif /* PLATFORM(CHROMIUM) */91 92 #if !defined(WTF_USE_V8)93 #define WTF_USE_V8 094 #endif /* !defined(WTF_USE_V8) */95 96 /* Using V8 implies not using JSC and vice versa */97 #define WTF_USE_JSC !WTF_USE_V8 -
trunk/Source/WTF/wtf/Platform.h
r113505 r113798 448 448 #define WTF_PLATFORM_IOS 1 449 449 #define WTF_PLATFORM_IOS_SIMULATOR 1 450 #else451 #define WTF_PLATFORM_IOS_SIMULATOR 0452 #endif453 454 #if !defined(WTF_PLATFORM_IOS)455 #define WTF_PLATFORM_IOS 0456 450 #endif 457 451 … … 479 473 #elif OS(ANDROID) 480 474 #define WTF_USE_SKIA 1 481 #define WTF_USE_GLES2_RENDERING 0482 475 #else 483 476 #define WTF_USE_SKIA 1 … … 577 570 #if PLATFORM(QT) && OS(DARWIN) 578 571 #define WTF_USE_CF 1 579 #define HAVE_DISPATCH_H 1580 572 #endif 581 573 … … 587 579 #define ENABLE_CONTEXT_MENUS 0 588 580 #define ENABLE_DRAG_SUPPORT 0 589 #define ENABLE_DATA_TRANSFER_ITEMS 0590 #define ENABLE_FTPDIR 1591 581 #define ENABLE_GEOLOCATION 1 592 582 #define ENABLE_ICONDATABASE 0 … … 600 590 #define HAVE_PTHREAD_RWLOCK 1 601 591 #define HAVE_READLINE 1 602 #define HAVE_RUNLOOP_TIMER 0603 592 #define WTF_USE_CF 1 604 593 #define WTF_USE_CFNETWORK 1 … … 620 609 #if PLATFORM(WIN) && !OS(WINCE) 621 610 #define WTF_USE_CF 1 622 #define WTF_USE_PTHREADS 0623 611 #endif 624 612 … … 672 660 #if OS(UNIX) 673 661 #define HAVE_SIGNAL_H 1 662 #define WTF_USE_OS_RANDOMNESS 1 663 #endif 664 665 #if (OS(FREEBSD) || OS(OPENBSD)) && !defined(__GLIBC__) 666 #define HAVE_PTHREAD_NP_H 1 674 667 #endif 675 668 … … 727 720 #elif OS(WINDOWS) 728 721 729 #if OS(WINCE) 730 #define HAVE_ERRNO_H 0 731 #else 722 #if !OS(WINCE) 732 723 #define HAVE_SYS_TIMEB_H 1 733 724 #define HAVE_ALIGNED_MALLOC 1 … … 735 726 #endif 736 727 #define HAVE_VIRTUALALLOC 1 728 #define WTF_USE_OS_RANDOMNESS 1 737 729 738 730 #elif OS(QNX) … … 751 743 752 744 #define HAVE_ERRNO_H 1 753 #define HAVE_LANGINFO_H 0754 745 #define HAVE_NMAP 1 755 746 #define HAVE_SBRK 1 … … 782 773 #endif 783 774 784 /* fastMalloc match validation allows for runtime verification that785 new is matched by delete, fastMalloc is matched by fastFree, etc. */786 #if !defined(ENABLE_FAST_MALLOC_MATCH_VALIDATION)787 #define ENABLE_FAST_MALLOC_MATCH_VALIDATION 0788 #endif789 790 775 #if !defined(ENABLE_ICONDATABASE) 791 776 #define ENABLE_ICONDATABASE 1 … … 812 797 #endif 813 798 814 #if !defined(ENABLE_DATA_TRANSFER_ITEMS)815 #define ENABLE_DATA_TRANSFER_ITEMS 0816 #endif817 818 #if !defined(ENABLE_DASHBOARD_SUPPORT)819 #define ENABLE_DASHBOARD_SUPPORT 0820 #endif821 822 799 #if !defined(ENABLE_INSPECTOR) 823 800 #define ENABLE_INSPECTOR 1 824 801 #endif 825 802 826 #if !defined(ENABLE_JAVA_BRIDGE)827 #define ENABLE_JAVA_BRIDGE 0828 #endif829 830 803 #if !defined(ENABLE_NETSCAPE_PLUGIN_API) 831 804 #define ENABLE_NETSCAPE_PLUGIN_API 1 832 #endif833 834 #if !defined(ENABLE_NETSCAPE_PLUGIN_METADATA_CACHE)835 #define ENABLE_NETSCAPE_PLUGIN_METADATA_CACHE 0836 #endif837 838 #if !defined(ENABLE_PURGEABLE_MEMORY)839 #define ENABLE_PURGEABLE_MEMORY 0840 #endif841 842 #if !defined(WTF_USE_PLUGIN_HOST_PROCESS)843 #define WTF_USE_PLUGIN_HOST_PROCESS 0844 #endif845 846 #if !defined(ENABLE_ORIENTATION_EVENTS)847 #define ENABLE_ORIENTATION_EVENTS 0848 #endif849 850 #if !defined(ENABLE_OPCODE_STATS)851 #define ENABLE_OPCODE_STATS 0852 805 #endif 853 806 … … 869 822 #endif 870 823 871 #if !defined(ENABLE_GEOLOCATION) 872 #define ENABLE_GEOLOCATION 0 873 #endif 874 875 #if !defined(ENABLE_VIEWPORT) 876 #define ENABLE_VIEWPORT 0 877 #endif 878 879 #if !defined(ENABLE_NOTIFICATIONS) 880 #define ENABLE_NOTIFICATIONS 0 881 #endif 882 883 #if PLATFORM(IOS) 884 #define ENABLE_TEXT_CARET 0 885 #endif 886 887 #if !defined(ENABLE_TEXT_CARET) 824 #if !defined(ENABLE_TEXT_CARET) && !PLATFORM(IOS) 888 825 #define ENABLE_TEXT_CARET 1 889 #endif890 891 #if !defined(ENABLE_FULLSCREEN_API)892 #define ENABLE_FULLSCREEN_API 0893 #endif894 895 #if !defined(ENABLE_POINTER_LOCK)896 #define ENABLE_POINTER_LOCK 0897 826 #endif 898 827 … … 910 839 #endif /* !defined(WTF_USE_JSVALUE64) && !defined(WTF_USE_JSVALUE32_64) */ 911 840 912 #if !defined(ENABLE_REPAINT_THROTTLING)913 #define ENABLE_REPAINT_THROTTLING 0914 #endif915 916 841 /* Disable the JIT on versions of GCC prior to 4.1 */ 917 842 #if !defined(ENABLE_JIT) && COMPILER(GCC) && !GCC_VERSION_AT_LEAST(4, 1, 0) … … 922 847 #if !defined(ENABLE_JIT) && OS(WINDOWS) && CPU(X86_64) 923 848 #define ENABLE_JIT 0 849 #endif 850 851 #if !defined(ENABLE_JIT) && CPU(SH4) && PLATFORM(QT) 852 #define ENABLE_JIT 1 924 853 #endif 925 854 … … 980 909 #endif 981 910 982 #if CPU(SH4) && PLATFORM(QT)983 #define ENABLE_JIT 1984 #endif985 986 911 /* Configure the JIT */ 987 912 #if CPU(X86) && COMPILER(MSVC) … … 1005 930 1006 931 /* Yet Another Regex Runtime - turned on by default for JIT enabled ports. */ 1007 #if PLATFORM(CHROMIUM) 1008 #define ENABLE_YARR_JIT 0 1009 1010 #elif ENABLE(JIT) && !defined(ENABLE_YARR_JIT) 932 #if !defined(ENABLE_YARR_JIT) && ENABLE(JIT) && !PLATFORM(CHROMIUM) 1011 933 #define ENABLE_YARR_JIT 1 1012 934 … … 1031 953 #if !defined(ENABLE_PAN_SCROLLING) && OS(WINDOWS) 1032 954 #define ENABLE_PAN_SCROLLING 1 1033 #endif1034 1035 #if !defined(ENABLE_SMOOTH_SCROLLING)1036 #define ENABLE_SMOOTH_SCROLLING 01037 #endif1038 1039 #if !defined(ENABLE_WEB_ARCHIVE)1040 #define ENABLE_WEB_ARCHIVE 01041 955 #endif 1042 956 … … 1070 984 #endif 1071 985 1072 #if !defined(ENABLE_CSS_SHADERS)1073 #if PLATFORM(MAC) || PLATFORM(IOS)1074 #define ENABLE_CSS_SHADERS 01075 #endif1076 #endif1077 1078 986 /* Compositing on the UI-process in WebKit2 */ 1079 987 #if PLATFORM(QT) … … 1129 1037 to WTF causes many ports to break, and so this way we can address the build 1130 1038 breakages one port at a time. */ 1131 #if PLATFORM(MAC) || PLATFORM(QT) || PLATFORM(WX)1039 #if !defined(WTF_USE_EXPORT_MACROS) && (PLATFORM(MAC) || PLATFORM(QT) || PLATFORM(WX)) 1132 1040 #define WTF_USE_EXPORT_MACROS 1 1133 #else1134 #define WTF_USE_EXPORT_MACROS 01135 1041 #endif 1136 1042 … … 1147 1053 #endif 1148 1054 1149 #ifndef NDEBUG 1150 #ifndef ENABLE_GC_VALIDATION 1055 #if !defined(ENABLE_GC_VALIDATION) && !defined(NDEBUG) 1151 1056 #define ENABLE_GC_VALIDATION 1 1152 #endif1153 1057 #endif 1154 1058 … … 1177 1081 #endif 1178 1082 1179 #if PLATFORM(CHROMIUM) 1180 #if !defined(WTF_USE_V8) 1083 #if !defined(WTF_USE_V8) && PLATFORM(CHROMIUM) 1181 1084 #define WTF_USE_V8 1 1182 1085 #endif 1183 #endif /* PLATFORM(CHROMIUM) */ 1184 1185 #if !defined(WTF_USE_V8) 1186 #define WTF_USE_V8 0 1187 #endif /* !defined(WTF_USE_V8) */ 1188 1189 /* Using V8 implies not using JSC and vice versa */ 1190 #define WTF_USE_JSC !WTF_USE_V8 1086 1087 /* Not using V8 implies using JSC and vice versa */ 1088 #if !USE(V8) 1089 #define WTF_USE_JSC 1 1090 #endif 1191 1091 1192 1092 #if ENABLE(NOTIFICATIONS) && PLATFORM(MAC) … … 1194 1094 #endif 1195 1095 1196 #if !defined(WTF_USE_WTFURL)1197 #define WTF_USE_WTFURL 01198 #endif1199 1200 1096 #if !defined(WTF_USE_ZLIB) && !PLATFORM(QT) 1201 1097 #define WTF_USE_ZLIB 1 -
trunk/Source/WebCore/ChangeLog
r113795 r113798 1 2012-04-10 Patrick Gansterer <paroga@webkit.org> 2 3 Cleanup wtf/Platform.h and config.h files 4 https://bugs.webkit.org/show_bug.cgi?id=83431 5 6 Reviewed by Eric Seidel. 7 8 The ENABLE() and USE() macros take care about the case when the flag 9 isn't defined. So there is no need to define anything with 0. 10 11 Also move duplicated code from the config.h files to Platform.h and 12 merge a few preprocessor commands to make the file more readable. 13 14 * config.h: 15 1 16 2012-04-10 Adam Barth <abarth@webkit.org> 2 17 -
trunk/Source/WebCore/config.h
r112275 r113798 123 123 #endif // PLATFORM(MAC) 124 124 125 #if OS(UNIX) || OS(WINDOWS)126 #define WTF_USE_OS_RANDOMNESS 1127 #endif128 129 125 #if PLATFORM(CHROMIUM) 130 126
Note: See TracChangeset
for help on using the changeset viewer.