[SCM] WebKit Debian packaging branch, debian/experimental, updated. upstream/1.3.3-9427-gc2be6fc

aroben at apple.com aroben at apple.com
Wed Dec 22 15:23:56 UTC 2010


The following commit has been merged in the debian/experimental branch:
commit a7e56f128f0aa95986224d7b4761d114b95fba37
Author: aroben at apple.com <aroben at apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Tue Nov 2 19:52:09 2010 +0000

    Windows build fix after r71127
    
    MSVC isn't smart enough to figure out that the definition of the global
    nullptr variable isn't needed, so we provide one for it.
    
    Fixes <http://webkit.org/b/48862> Windows build is broken due to
    undefined symbol nullptr
    
    Reviewed by Anders Carlsson.
    
    * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def: Export nullptr.
    
    * JavaScriptCore.vcproj/WTF/WTF.vcproj: Added NullPtr.cpp and let VS
    resort the files.
    
    * wtf/NullPtr.cpp: Added.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@71155 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/JavaScriptCore/ChangeLog b/JavaScriptCore/ChangeLog
index a7f897d..7431e02 100644
--- a/JavaScriptCore/ChangeLog
+++ b/JavaScriptCore/ChangeLog
@@ -1,3 +1,22 @@
+2010-11-02  Adam Roben  <aroben at apple.com>
+
+        Windows build fix after r71127
+
+        MSVC isn't smart enough to figure out that the definition of the global
+        nullptr variable isn't needed, so we provide one for it.
+
+        Fixes <http://webkit.org/b/48862> Windows build is broken due to
+        undefined symbol nullptr
+
+        Reviewed by Anders Carlsson.
+
+        * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def: Export nullptr.
+
+        * JavaScriptCore.vcproj/WTF/WTF.vcproj: Added NullPtr.cpp and let VS
+        resort the files.
+
+        * wtf/NullPtr.cpp: Added.
+
 2010-11-02  Martin Robinson  <mrobinson at igalia.com>
 
         Reviewed by Xan Lopez.
diff --git a/JavaScriptCore/JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def b/JavaScriptCore/JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def
index 779b0bc..aa9d529 100644
--- a/JavaScriptCore/JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def
+++ b/JavaScriptCore/JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def
@@ -228,6 +228,7 @@ EXPORTS
     ?name at JSFunction@JSC@@QAEABVUString at 2@PAVExecState at 2@@Z
     ?newUninitialized at CString@WTF@@SA?AV12 at IAAPAD@Z
     ?nonInlineNaN at JSC@@YANXZ
+    ?nullptr@@3Vnullptr_t at std@@A
     ?number at UString@JSC@@SA?AV12 at H@Z
     ?number at UString@JSC@@SA?AV12 at I@Z
     ?number at UString@JSC@@SA?AV12 at N@Z
diff --git a/JavaScriptCore/JavaScriptCore.vcproj/WTF/WTF.vcproj b/JavaScriptCore/JavaScriptCore.vcproj/WTF/WTF.vcproj
index 3a53070..47b79fd 100644
--- a/JavaScriptCore/JavaScriptCore.vcproj/WTF/WTF.vcproj
+++ b/JavaScriptCore/JavaScriptCore.vcproj/WTF/WTF.vcproj
@@ -265,6 +265,22 @@
 			>
 		</File>
 		<File
+			RelativePath="..\..\wtf\text\AtomicString.cpp"
+			>
+		</File>
+		<File
+			RelativePath="..\..\wtf\text\AtomicString.h"
+			>
+		</File>
+		<File
+			RelativePath="..\..\wtf\text\AtomicStringHash.h"
+			>
+		</File>
+		<File
+			RelativePath="..\..\wtf\text\AtomicStringImpl.h"
+			>
+		</File>
+		<File
 			RelativePath="..\..\wtf\ByteArray.cpp"
 			>
 		</File>
@@ -289,6 +305,14 @@
 			>
 		</File>
 		<File
+			RelativePath="..\..\wtf\text\CString.cpp"
+			>
+		</File>
+		<File
+			RelativePath="..\..\wtf\text\CString.h"
+			>
+		</File>
+		<File
 			RelativePath="..\..\wtf\CurrentTime.cpp"
 			>
 		</File>
@@ -297,23 +321,23 @@
 			>
 		</File>
 		<File
-			RelativePath="..\..\wtf\Deque.h"
+			RelativePath="..\..\wtf\DecimalNumber.cpp"
 			>
 		</File>
 		<File
-			RelativePath="..\..\wtf\dtoa.cpp"
+			RelativePath="..\..\wtf\DecimalNumber.h"
 			>
 		</File>
 		<File
-			RelativePath="..\..\wtf\dtoa.h"
+			RelativePath="..\..\wtf\Deque.h"
 			>
 		</File>
 		<File
-			RelativePath="..\..\wtf\DecimalNumber.cpp"
+			RelativePath="..\..\wtf\dtoa.cpp"
 			>
 		</File>
 		<File
-			RelativePath="..\..\wtf\DecimalNumber.h"
+			RelativePath="..\..\wtf\dtoa.h"
 			>
 		</File>
 		<File
@@ -389,23 +413,23 @@
 			>
 		</File>
 		<File
-			RelativePath="..\..\wtf\MD5.cpp"
+			RelativePath="..\..\wtf\MainThread.cpp"
 			>
 		</File>
 		<File
-			RelativePath="..\..\wtf\MD5.h"
+			RelativePath="..\..\wtf\MainThread.h"
 			>
 		</File>
 		<File
-			RelativePath="..\..\wtf\MainThread.cpp"
+			RelativePath="..\..\wtf\MathExtras.h"
 			>
 		</File>
 		<File
-			RelativePath="..\..\wtf\MainThread.h"
+			RelativePath="..\..\wtf\MD5.cpp"
 			>
 		</File>
 		<File
-			RelativePath="..\..\wtf\MathExtras.h"
+			RelativePath="..\..\wtf\MD5.h"
 			>
 		</File>
 		<File
@@ -413,11 +437,11 @@
 			>
 		</File>
 		<File
-			RelativePath="..\..\wtf\NonCopyingSort.h"
+			RelativePath="..\..\wtf\Noncopyable.h"
 			>
 		</File>
 		<File
-			RelativePath="..\..\wtf\Noncopyable.h"
+			RelativePath="..\..\wtf\NonCopyingSort.h"
 			>
 		</File>
 		<File
@@ -425,19 +449,23 @@
 			>
 		</File>
 		<File
+			RelativePath="..\..\wtf\NullPtr.cpp"
+			>
+		</File>
+		<File
 			RelativePath="..\..\wtf\OwnArrayPtr.h"
 			>
 		</File>
 		<File
-			RelativePath="..\..\wtf\OwnFastMallocPtr.h"
+			RelativePath="..\..\wtf\OwnArrayPtrCommon.h"
 			>
 		</File>
 		<File
-			RelativePath="..\..\wtf\OwnPtr.h"
+			RelativePath="..\..\wtf\OwnFastMallocPtr.h"
 			>
 		</File>
 		<File
-			RelativePath="..\..\wtf\OwnArrayPtrCommon.h"
+			RelativePath="..\..\wtf\OwnPtr.h"
 			>
 		</File>
 		<File
@@ -517,10 +545,42 @@
 			>
 		</File>
 		<File
+			RelativePath="..\..\wtf\text\StringBuffer.h"
+			>
+		</File>
+		<File
+			RelativePath="..\..\wtf\text\StringBuilder.cpp"
+			>
+		</File>
+		<File
+			RelativePath="..\..\wtf\text\StringBuilder.h"
+			>
+		</File>
+		<File
+			RelativePath="..\..\wtf\text\StringConcatenate.h"
+			>
+		</File>
+		<File
 			RelativePath="..\..\wtf\StringExtras.h"
 			>
 		</File>
 		<File
+			RelativePath="..\..\wtf\text\StringHash.h"
+			>
+		</File>
+		<File
+			RelativePath="..\..\wtf\text\StringImpl.cpp"
+			>
+		</File>
+		<File
+			RelativePath="..\..\wtf\text\StringImpl.h"
+			>
+		</File>
+		<File
+			RelativePath="..\..\wtf\text\StringStatics.cpp"
+			>
+		</File>
+		<File
 			RelativePath="..\..\wtf\TCPackedCache.h"
 			>
 		</File>
@@ -541,6 +601,10 @@
 			>
 		</File>
 		<File
+			RelativePath="..\..\wtf\text\TextPosition.h"
+			>
+		</File>
+		<File
 			RelativePath="..\..\wtf\Threading.cpp"
 			>
 		</File>
@@ -589,74 +653,6 @@
 			>
 		</File>
 		<File
- 			RelativePath="..\..\wtf\text\AtomicString.cpp"
- 			>
- 		</File>
- 		<File
- 			RelativePath="..\..\wtf\text\AtomicString.h"
- 			>
- 		</File>
- 		<File
- 			RelativePath="..\..\wtf\text\AtomicStringHash.h"
- 			>
- 		</File>
- 		<File
- 			RelativePath="..\..\wtf\text\AtomicStringImpl.h"
- 			>
- 		</File>
-		<File
- 			RelativePath="..\..\wtf\text\CString.cpp"
- 			>
- 		</File>
- 		<File
- 			RelativePath="..\..\wtf\text\CString.h"
- 			>
- 		</File>
-		<File
- 			RelativePath="..\..\wtf\text\StringStatics.cpp"
- 			>
- 		</File>
- 		<File
- 			RelativePath="..\..\wtf\text\StringBuffer.h"
- 			>
- 		</File>
- 		<File
- 			RelativePath="..\..\wtf\text\StringBuilder.cpp"
- 			>
- 		</File>
- 		<File
- 			RelativePath="..\..\wtf\text\StringBuilder.h"
- 			>
- 		</File>
- 		<File
- 			RelativePath="..\..\wtf\text\StringConcatenate.h"
- 			>
- 		</File>
- 		<File
- 			RelativePath="..\..\wtf\text\StringHash.h"
- 			>
- 		</File>
-		<File
- 			RelativePath="..\..\wtf\text\StringImpl.cpp"
- 			>
- 		</File>
- 		<File
- 			RelativePath="..\..\wtf\text\StringImpl.h"
- 			>
- 		</File>
- 		<File
- 			RelativePath="..\..\wtf\text\TextPosition.h"
- 			>
- 		</File>
-		<File
- 			RelativePath="..\..\wtf\text\WTFString.cpp"
- 			>
- 		</File>
- 		<File
- 			RelativePath="..\..\wtf\text\WTFString.h"
- 			>
- 		</File>
- 		<File
 			RelativePath="..\..\wtf\unicode\UTF8.cpp"
 			>
 		</File>
@@ -677,6 +673,14 @@
 			>
 		</File>
 		<File
+			RelativePath="..\..\wtf\text\WTFString.cpp"
+			>
+		</File>
+		<File
+			RelativePath="..\..\wtf\text\WTFString.h"
+			>
+		</File>
+		<File
 			RelativePath="..\..\wtf\WTFThreadData.cpp"
 			>
 		</File>
diff --git a/JavaScriptCore/wtf/NullPtr.cpp b/JavaScriptCore/wtf/NullPtr.cpp
new file mode 100644
index 0000000..e7d94b2
--- /dev/null
+++ b/JavaScriptCore/wtf/NullPtr.cpp
@@ -0,0 +1,33 @@
+/*
+
+Copyright (C) 2010 Apple Inc. All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+1.  Redistributions of source code must retain the above copyright
+    notice, this list of conditions and the following disclaimer.
+2.  Redistributions in binary form must reproduce the above copyright
+    notice, this list of conditions and the following disclaimer in the
+    documentation and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND ANY
+EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+*/
+
+#include "NullPtr.h"
+
+#if !__has_feature(cxx_nullptr)
+
+std::nullptr_t nullptr;
+
+#endif

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list