Commit b5e193f8 authored by andersca's avatar andersca

Reviewed by Geoff.

        * DumpRenderTree/TestNetscapePlugIn.subproj/TestObject.c:
        (testAllocate):
        (testEnumerate):
        Add casts.
        
        * DumpRenderTree/TestNetscapePlugIn.subproj/TestObject.h:
        Don't use #import, use #include.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@20619 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 9421e408
2007-03-30 Anders Carlsson <andersca@apple.com>
Reviewed by Geoff.
* DumpRenderTree/TestNetscapePlugIn.subproj/TestObject.c:
(testAllocate):
(testEnumerate):
Add casts.
* DumpRenderTree/TestNetscapePlugIn.subproj/TestObject.h:
Don't use #import, use #include.
2007-03-30 Anders Carlsson <andersca@apple.com>
Reviewed by Alexey.
......
......@@ -31,8 +31,8 @@
OTHERWISE, EVEN IF APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#import "TestObject.h"
#import "PluginObject.h"
#include "TestObject.h"
#include "PluginObject.h"
static bool testEnumerate(NPObject *npobj, NPIdentifier **value, uint32_t *count);
static bool testHasProperty(NPObject *obj, NPIdentifier name);
......@@ -76,7 +76,7 @@ static void initializeIdentifiers(void)
static NPObject *testAllocate(NPP npp, NPClass *theClass)
{
NPObject *newInstance = malloc(sizeof(NPObject));
NPObject *newInstance = (NPObject*)malloc(sizeof(NPObject));
if (!identifiersInitialized) {
identifiersInitialized = true;
......@@ -106,7 +106,7 @@ static bool testEnumerate(NPObject *npobj, NPIdentifier **value, uint32_t *count
{
*count = NUM_TEST_IDENTIFIERS;
*value = browser->memalloc(NUM_TEST_IDENTIFIERS * sizeof(NPIdentifier));
*value = (NPIdentifier*)browser->memalloc(NUM_TEST_IDENTIFIERS * sizeof(NPIdentifier));
memcpy(*value, testIdentifiers, sizeof(NPIdentifier) * NUM_TEST_IDENTIFIERS);
return true;
......
......@@ -31,7 +31,7 @@
OTHERWISE, EVEN IF APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#import <WebKit/npapi.h>
#import <WebKit/npruntime.h>
#include <WebKit/npapi.h>
#include <WebKit/npruntime.h>
NPClass *getTestClass(void);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment