Changeset 60787 in webkit


Ignore:
Timestamp:
Jun 7, 2010 10:34:10 AM (14 years ago)
Author:
eric@webkit.org
Message:

2010-06-07 Kwang Yul Seo <skyul@company100.net>

Reviewed by Eric Seidel.

[BREWMP] Add more types to OwnPtr
https://bugs.webkit.org/show_bug.cgi?id=39667

Add ISSL and ISocket to the list of OwnPtr-ed type.

  • wtf/OwnPtrCommon.h:
  • wtf/brew/OwnPtrBrew.cpp: (WTF::deleteOwnedPtr):
Location:
trunk/JavaScriptCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r60773 r60787  
     12010-06-07  Kwang Yul Seo  <skyul@company100.net>
     2
     3        Reviewed by Eric Seidel.
     4
     5        [BREWMP] Add more types to OwnPtr
     6        https://bugs.webkit.org/show_bug.cgi?id=39667
     7
     8        Add ISSL and ISocket to the list of OwnPtr-ed type.
     9
     10        * wtf/OwnPtrCommon.h:
     11        * wtf/brew/OwnPtrBrew.cpp:
     12        (WTF::deleteOwnedPtr):
     13
    1142010-06-07  Benjamin Poulain  <benjamin.poulain@nokia.com>
    215
  • trunk/JavaScriptCore/wtf/OwnPtrCommon.h

    r55621 r60787  
    4242// Forward delcarations at this point avoid the need to include BREW includes
    4343// in WTF headers.
     44typedef struct _ISocket ISocket;
    4445typedef struct _IFileMgr IFileMgr;
    4546typedef struct _IFile IFile;
    4647typedef struct IBitmap IBitmap;
     48typedef struct ISSL ISSL;
    4749#endif
    4850
     
    7072    void deleteOwnedPtr(IFile*);
    7173    void deleteOwnedPtr(IBitmap*);
     74    void deleteOwnedPtr(ISSL*);
     75    void deleteOwnedPtr(ISocket*);
    7276#endif
    7377
  • trunk/JavaScriptCore/wtf/brew/OwnPtrBrew.cpp

    r58164 r60787  
    2929#include <AEEBitmap.h>
    3030#include <AEEFile.h>
     31#include <AEENet.h>
     32#include <AEESSL.h>
    3133#include <AEEStdLib.h>
    3234
     
    5153}
    5254
     55void deleteOwnedPtr(ISSL* ptr)
     56{
     57    if (ptr)
     58        ISSL_Release(ptr);
    5359}
     60
     61void deleteOwnedPtr(ISocket* ptr)
     62{
     63    if (ptr)
     64        ISOCKET_Release(ptr);
     65}
     66
     67}
Note: See TracChangeset for help on using the changeset viewer.