Title: [113571] trunk/Source
Revision
113571
Author
[email protected]
Date
2012-04-09 03:49:40 -0700 (Mon, 09 Apr 2012)

Log Message

Remove HAVE_STDINT_H
https://bugs.webkit.org/show_bug.cgi?id=83434

Reviewed by Kentaro Hara.

HAVE_STDINT_H is defined with 1 all the time and we us stdint.h without HAVE(STDINT_H) already.

Source/_javascript_Core:

* config.h:

Source/WTF:

* config.h:
* wtf/FastMalloc.cpp:
* wtf/TCPageMap.h:
* wtf/TCSpinLock.h:
* wtf/TCSystemAlloc.cpp:

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (113570 => 113571)


--- trunk/Source/_javascript_Core/ChangeLog	2012-04-09 10:45:15 UTC (rev 113570)
+++ trunk/Source/_javascript_Core/ChangeLog	2012-04-09 10:49:40 UTC (rev 113571)
@@ -1,3 +1,14 @@
+2012-04-09  Patrick Gansterer  <[email protected]>
+
+        Remove HAVE_STDINT_H
+        https://bugs.webkit.org/show_bug.cgi?id=83434
+
+        Reviewed by Kentaro Hara.
+
+        HAVE_STDINT_H is defined with 1 all the time and we us stdint.h without HAVE(STDINT_H) already.
+
+        * config.h:
+
 2012-04-08  Filip Pizlo  <[email protected]>
 
         DFG should not load the property storage if it is inline.

Modified: trunk/Source/_javascript_Core/config.h (113570 => 113571)


--- trunk/Source/_javascript_Core/config.h	2012-04-09 10:45:15 UTC (rev 113570)
+++ trunk/Source/_javascript_Core/config.h	2012-04-09 10:49:40 UTC (rev 113571)
@@ -69,9 +69,6 @@
 #define HAVE_PTHREAD_NP_H 1
 #endif
 
-/* FIXME: if all platforms have these, do they really need #defines? */
-#define HAVE_STDINT_H 1
-
 #define WTF_CHANGES 1
 
 #ifdef __cplusplus

Modified: trunk/Source/WTF/ChangeLog (113570 => 113571)


--- trunk/Source/WTF/ChangeLog	2012-04-09 10:45:15 UTC (rev 113570)
+++ trunk/Source/WTF/ChangeLog	2012-04-09 10:49:40 UTC (rev 113571)
@@ -1,3 +1,18 @@
+2012-04-09  Patrick Gansterer  <[email protected]>
+
+        Remove HAVE_STDINT_H
+        https://bugs.webkit.org/show_bug.cgi?id=83434
+
+        Reviewed by Kentaro Hara.
+
+        HAVE_STDINT_H is defined with 1 all the time and we us stdint.h without HAVE(STDINT_H) already.
+
+        * config.h:
+        * wtf/FastMalloc.cpp:
+        * wtf/TCPageMap.h:
+        * wtf/TCSpinLock.h:
+        * wtf/TCSystemAlloc.cpp:
+
 2012-04-06  Benjamin Poulain  <[email protected]>
 
         Get rid of the useless flag PREEMPT_GEOLOCATION_PERMISSION

Modified: trunk/Source/WTF/config.h (113570 => 113571)


--- trunk/Source/WTF/config.h	2012-04-09 10:45:15 UTC (rev 113570)
+++ trunk/Source/WTF/config.h	2012-04-09 10:49:40 UTC (rev 113571)
@@ -62,9 +62,6 @@
 #define HAVE_PTHREAD_NP_H 1
 #endif
 
-/* FIXME: if all platforms have these, do they really need #defines? */
-#define HAVE_STDINT_H 1
-
 #define WTF_CHANGES 1
 
 #ifdef __cplusplus

Modified: trunk/Source/WTF/wtf/FastMalloc.cpp (113570 => 113571)


--- trunk/Source/WTF/wtf/FastMalloc.cpp	2012-04-09 10:45:15 UTC (rev 113570)
+++ trunk/Source/WTF/wtf/FastMalloc.cpp	2012-04-09 10:49:40 UTC (rev 113571)
@@ -405,14 +405,6 @@
 
 #else // FORCE_SYSTEM_MALLOC
 
-#if HAVE(STDINT_H)
-#include <stdint.h>
-#elif HAVE(INTTYPES_H)
-#include <inttypes.h>
-#else
-#include <sys/types.h>
-#endif
-
 #include "AlwaysInline.h"
 #include "Assertions.h"
 #include "TCPackedCache.h"
@@ -424,6 +416,7 @@
 #include <pthread.h>
 #include <stdarg.h>
 #include <stddef.h>
+#include <stdint.h>
 #include <stdio.h>
 #if HAVE(ERRNO_H)
 #include <errno.h>

Modified: trunk/Source/WTF/wtf/TCPageMap.h (113570 => 113571)


--- trunk/Source/WTF/wtf/TCPageMap.h	2012-04-09 10:45:15 UTC (rev 113570)
+++ trunk/Source/WTF/wtf/TCPageMap.h	2012-04-09 10:49:40 UTC (rev 113571)
@@ -45,14 +45,7 @@
 #ifndef TCMALLOC_PAGEMAP_H__
 #define TCMALLOC_PAGEMAP_H__
 
-#if HAVE(STDINT_H)
 #include <stdint.h>
-#elif HAVE(INTTYPES_H)
-#include <inttypes.h>
-#else
-#include <sys/types.h>
-#endif
-
 #include <string.h>
 #include <wtf/Assertions.h>
 

Modified: trunk/Source/WTF/wtf/TCSpinLock.h (113570 => 113571)


--- trunk/Source/WTF/wtf/TCSpinLock.h	2012-04-09 10:45:15 UTC (rev 113570)
+++ trunk/Source/WTF/wtf/TCSpinLock.h	2012-04-09 10:49:40 UTC (rev 113571)
@@ -36,16 +36,9 @@
 
 #if (CPU(X86) || CPU(X86_64) || CPU(PPC)) && (COMPILER(GCC) || COMPILER(MSVC))
 
+#include <stdint.h>
 #include <time.h>       /* For nanosleep() */
 
-#if HAVE(STDINT_H)
-#include <stdint.h>
-#elif HAVE(INTTYPES_H)
-#include <inttypes.h>
-#else
-#include <sys/types.h>
-#endif
-
 #if OS(WINDOWS)
 #ifndef WIN32_LEAN_AND_MEAN
 #define WIN32_LEAN_AND_MEAN

Modified: trunk/Source/WTF/wtf/TCSystemAlloc.cpp (113570 => 113571)


--- trunk/Source/WTF/wtf/TCSystemAlloc.cpp	2012-04-09 10:45:15 UTC (rev 113570)
+++ trunk/Source/WTF/wtf/TCSystemAlloc.cpp	2012-04-09 10:49:40 UTC (rev 113571)
@@ -34,19 +34,12 @@
 #if !(defined(USE_SYSTEM_MALLOC) && USE_SYSTEM_MALLOC)
 #include "TCSystemAlloc.h"
 
-#include <algorithm>
 #include "Assertions.h"
 #include "TCSpinLock.h"
 #include "UnusedParam.h"
 #include "VMTags.h"
-
-#if HAVE(STDINT_H)
+#include <algorithm>
 #include <stdint.h>
-#elif HAVE(INTTYPES_H)
-#include <inttypes.h>
-#else
-#include <sys/types.h>
-#endif
 
 #if OS(WINDOWS)
 #include "windows.h"
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to