public
Description: A mirror of QtWebKit
Homepage: http://trac.webkit.org/projects/webkit/wiki/QtWebKit
Clone URL: git://github.com/tronical/qtwebkit.git
Move WTF::notFound into its own header so that it can be used 
independently of Vector

JavaScriptCore:

        Move WTF::notFound into its own header so that it can be used
        independently of Vector

        Rubberstamped by Darin Adler.

        * JavaScriptCore.vcproj/WTF/WTF.vcproj:
        * JavaScriptCore.xcodeproj/project.pbxproj:
        Added NotFound.h to the project.
        * wtf/NotFound.h: Added. Moved the notFound constant here...
        * wtf/Vector.h: ...from here.

WebCore:

        Add a ForwardingHeader for wtf/NotFound.h

        Rubberstamped by Darin Adler.

        * ForwardingHeaders/wtf/NotFound.h: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@35665 
268f45cc-cd09-0410-ab3c-d52691b4dbfc
aroben@apple.com (author)
Mon Aug 11 10:21:23 -0700 2008
commit  3eae862b7c84e3a64585149469d6badf6bdae5b7
tree    2d045390421a1c7414b43563900652f07b14f8b6
parent  2f5bdf0a52eb26bc1c148e82c157eed15abfb95c
...
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
0
@@ -1,3 +1,16 @@
0
+2008-08-11 Adam Roben <aroben@apple.com>
0
+
0
+ Move WTF::notFound into its own header so that it can be used
0
+ independently of Vector
0
+
0
+ Rubberstamped by Darin Adler.
0
+
0
+ * JavaScriptCore.vcproj/WTF/WTF.vcproj:
0
+ * JavaScriptCore.xcodeproj/project.pbxproj:
0
+ Added NotFound.h to the project.
0
+ * wtf/NotFound.h: Added. Moved the notFound constant here...
0
+ * wtf/Vector.h: ...from here.
0
+
0
 2008-08-11 Alexey Proskuryakov <ap@webkit.org>
0
 
0
         Reviewed by Mark Rowe.
...
323
324
325
 
 
 
 
326
327
328
...
323
324
325
326
327
328
329
330
331
332
0
@@ -323,6 +323,10 @@
0
       >
0
     </File>
0
     <File
0
+ RelativePath="..\..\wtf\NotFound.h"
0
+ >
0
+ </File>
0
+ <File
0
       RelativePath="..\..\wtf\Noncopyable.h"
0
       >
0
     </File>
...
273
274
275
 
276
277
278
...
698
699
700
 
701
702
703
...
1050
1051
1052
 
1053
1054
1055
...
1509
1510
1511
 
1512
1513
1514
...
273
274
275
276
277
278
279
...
699
700
701
702
703
704
705
...
1052
1053
1054
1055
1056
1057
1058
...
1512
1513
1514
1515
1516
1517
1518
0
@@ -273,6 +273,7 @@
0
     BCD2034C0E17135E002C7E82 /* DatePrototype.h in Headers */ = {isa = PBXBuildFile; fileRef = BCD203480E17135E002C7E82 /* DatePrototype.h */; };
0
     BCD203E80E1718F4002C7E82 /* DatePrototype.lut.h in Headers */ = {isa = PBXBuildFile; fileRef = BCD203E70E1718F4002C7E82 /* DatePrototype.lut.h */; };
0
     BCF605140E203EF800B9A64D /* ArgList.h in Headers */ = {isa = PBXBuildFile; fileRef = BCF605120E203EF800B9A64D /* ArgList.h */; settings = {ATTRIBUTES = (Private, ); }; };
0
+ C0A272630E50A06300E96E15 /* NotFound.h in Headers */ = {isa = PBXBuildFile; fileRef = C0A2723F0E509F1E00E96E15 /* NotFound.h */; settings = {ATTRIBUTES = (Private, ); }; };
0
     E178636D0D9BEEC300D74E75 /* InitializeThreading.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E178636C0D9BEEC300D74E75 /* InitializeThreading.cpp */; };
0
     E18E3A590DF9278C00D90B34 /* JSGlobalData.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E18E3A570DF9278C00D90B34 /* JSGlobalData.cpp */; };
0
     E1A862A90D7EBB76001EC6AA /* CollatorICU.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E1A862A80D7EBB76001EC6AA /* CollatorICU.cpp */; settings = {COMPILER_FLAGS = "-fno-strict-aliasing"; }; };
0
@@ -698,6 +699,7 @@
0
     BCF605110E203EF800B9A64D /* ArgList.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ArgList.cpp; sourceTree = "<group>"; };
0
     BCF605120E203EF800B9A64D /* ArgList.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ArgList.h; sourceTree = "<group>"; };
0
     BCF6553B0A2048DE0038A194 /* MathExtras.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = MathExtras.h; sourceTree = "<group>"; };
0
+ C0A2723F0E509F1E00E96E15 /* NotFound.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NotFound.h; sourceTree = "<group>"; };
0
     D21202280AD4310C00ED79B6 /* DateMath.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = DateMath.cpp; sourceTree = "<group>"; };
0
     D21202290AD4310C00ED79B6 /* DateMath.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = DateMath.h; sourceTree = "<group>"; };
0
     E11D51750B2E798D0056C188 /* StringExtras.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = StringExtras.h; sourceTree = "<group>"; };
0
@@ -1050,6 +1052,7 @@
0
         BCF6553B0A2048DE0038A194 /* MathExtras.h */,
0
         E1EE798B0D6CA53D00FEA3BA /* MessageQueue.h */,
0
         9303F5690991190000AD71B8 /* Noncopyable.h */,
0
+ C0A2723F0E509F1E00E96E15 /* NotFound.h */,
0
         9303F5A409911A5800AD71B8 /* OwnArrayPtr.h */,
0
         9303F567099118FA00AD71B8 /* OwnPtr.h */,
0
         6580F795094070560082C219 /* PassRefPtr.h */,
0
@@ -1509,6 +1512,7 @@
0
         BCF605140E203EF800B9A64D /* ArgList.h in Headers */,
0
         95FDFA160E2299980006FB00 /* HeavyProfile.h in Headers */,
0
         8613F45B0E3A433E00C948FD /* SamplingTool.h in Headers */,
0
+ C0A272630E50A06300E96E15 /* NotFound.h in Headers */,
0
       );
0
       runOnlyForDeploymentPostprocessing = 0;
0
     };
...
25
26
27
 
28
29
30
...
36
37
38
39
40
41
42
43
...
25
26
27
28
29
30
31
...
37
38
39
 
 
40
41
42
0
@@ -25,6 +25,7 @@
0
 #include "Assertions.h"
0
 #include "FastMalloc.h"
0
 #include "Noncopyable.h"
0
+#include "NotFound.h"
0
 #include "VectorTraits.h"
0
 #include <limits>
0
 #include <stdlib.h>
0
@@ -36,8 +37,6 @@ namespace WTF {
0
     using std::min;
0
     using std::max;
0
     
0
- const size_t notFound = static_cast<size_t>(-1);
0
-
0
     template <bool needsDestruction, typename T>
0
     class VectorDestructor;
0
 
...
 
 
 
 
 
 
 
 
1
2
3
...
1
2
3
4
5
6
7
8
9
10
11
0
@@ -1,3 +1,11 @@
0
+2008-08-11 Adam Roben <aroben@apple.com>
0
+
0
+ Add a ForwardingHeader for wtf/NotFound.h
0
+
0
+ Rubberstamped by Darin Adler.
0
+
0
+ * ForwardingHeaders/wtf/NotFound.h: Added.
0
+
0
 2008-08-11 Timothy Hatcher <timothy@apple.com>
0
 
0
         Fixes a bug where error bubbles in JavaScript resources would

Comments

    No one has commented yet.