Changeset 35665 in webkit for trunk/JavaScriptCore


Ignore:
Timestamp:
Aug 11, 2008, 10:21:23 AM (17 years ago)
Author:
Adam Roben
Message:

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.
Location:
trunk/JavaScriptCore
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r35663 r35665  
     12008-08-11  Adam Roben  <[email protected]>
     2
     3        Move WTF::notFound into its own header so that it can be used
     4        independently of Vector
     5
     6        Rubberstamped by Darin Adler.
     7
     8        * JavaScriptCore.vcproj/WTF/WTF.vcproj:
     9        * JavaScriptCore.xcodeproj/project.pbxproj:
     10        Added NotFound.h to the project.
     11        * wtf/NotFound.h: Added. Moved the notFound constant here...
     12        * wtf/Vector.h: ...from here.
     13
    1142008-08-11  Alexey Proskuryakov  <[email protected]>
    215
  • trunk/JavaScriptCore/JavaScriptCore.vcproj/WTF/WTF.vcproj

    r35156 r35665  
    324324                </File>
    325325                <File
     326                        RelativePath="..\..\wtf\NotFound.h"
     327                        >
     328                </File>
     329                <File
    326330                        RelativePath="..\..\wtf\Noncopyable.h"
    327331                        >
  • trunk/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj

    r35478 r35665  
    274274                BCD203E80E1718F4002C7E82 /* DatePrototype.lut.h in Headers */ = {isa = PBXBuildFile; fileRef = BCD203E70E1718F4002C7E82 /* DatePrototype.lut.h */; };
    275275                BCF605140E203EF800B9A64D /* ArgList.h in Headers */ = {isa = PBXBuildFile; fileRef = BCF605120E203EF800B9A64D /* ArgList.h */; settings = {ATTRIBUTES = (Private, ); }; };
     276                C0A272630E50A06300E96E15 /* NotFound.h in Headers */ = {isa = PBXBuildFile; fileRef = C0A2723F0E509F1E00E96E15 /* NotFound.h */; settings = {ATTRIBUTES = (Private, ); }; };
    276277                E178636D0D9BEEC300D74E75 /* InitializeThreading.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E178636C0D9BEEC300D74E75 /* InitializeThreading.cpp */; };
    277278                E18E3A590DF9278C00D90B34 /* JSGlobalData.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E18E3A570DF9278C00D90B34 /* JSGlobalData.cpp */; };
     
    699700                BCF605120E203EF800B9A64D /* ArgList.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ArgList.h; sourceTree = "<group>"; };
    700701                BCF6553B0A2048DE0038A194 /* MathExtras.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = MathExtras.h; sourceTree = "<group>"; };
     702                C0A2723F0E509F1E00E96E15 /* NotFound.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NotFound.h; sourceTree = "<group>"; };
    701703                D21202280AD4310C00ED79B6 /* DateMath.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = DateMath.cpp; sourceTree = "<group>"; };
    702704                D21202290AD4310C00ED79B6 /* DateMath.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = DateMath.h; sourceTree = "<group>"; };
     
    10511053                                E1EE798B0D6CA53D00FEA3BA /* MessageQueue.h */,
    10521054                                9303F5690991190000AD71B8 /* Noncopyable.h */,
     1055                                C0A2723F0E509F1E00E96E15 /* NotFound.h */,
    10531056                                9303F5A409911A5800AD71B8 /* OwnArrayPtr.h */,
    10541057                                9303F567099118FA00AD71B8 /* OwnPtr.h */,
     
    15101513                                95FDFA160E2299980006FB00 /* HeavyProfile.h in Headers */,
    15111514                                8613F45B0E3A433E00C948FD /* SamplingTool.h in Headers */,
     1515                                C0A272630E50A06300E96E15 /* NotFound.h in Headers */,
    15121516                        );
    15131517                        runOnlyForDeploymentPostprocessing = 0;
  • trunk/JavaScriptCore/wtf/Vector.h

    r35425 r35665  
    2626#include "FastMalloc.h"
    2727#include "Noncopyable.h"
     28#include "NotFound.h"
    2829#include "VectorTraits.h"
    2930#include <limits>
     
    3738    using std::max;
    3839   
    39     const size_t notFound = static_cast<size_t>(-1);
    40 
    4140    template <bool needsDestruction, typename T>
    4241    class VectorDestructor;
Note: See TracChangeset for help on using the changeset viewer.