Giter VIP home page Giter VIP logo

Comments (11)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
Ping ?

Original comment by [email protected] on 21 Jul 2012 at 1:46

from npapi-sdk.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
Why don't you use NP_LOADDS again instead of defining a new macro, NP_CALLBACK?

Original comment by [email protected] on 23 Jul 2012 at 8:48

from npapi-sdk.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
NP_CALLBACK is already being used in mozilla/dom/plugins/nsNPAPIPlugin.h and 
nsNPAPIPlugin.cpp.

And I moved it from nsNPAPIPlugin.h

Original comment by [email protected] on 24 Jul 2012 at 3:25

from npapi-sdk.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
Please just use NP_LOADDS. We don't need to worry about what nsNPAPIPlugin does 
here, no need for NP_CALLBACK.

Original comment by [email protected] on 24 Jul 2012 at 5:11

from npapi-sdk.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
Ok, I've replaced NP_CALLBACK with NP_LOADDS.

If so, we should change nsNPAPIPlugin accordingly to this, later ?

Original comment by [email protected] on 25 Jul 2012 at 1:54

Attachments:

from npapi-sdk.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
I'm happy with this patch, let's get a look from Stuart Morgan as well though. 
Stuart?

No need to change the Mozilla code here.

Original comment by [email protected] on 25 Jul 2012 at 1:49

from npapi-sdk.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
I'm not at all familiar with OS/2; what does _System do, and what's the compile 
error this fixes?

Original comment by stuart.morgan on 26 Jul 2012 at 8:00

from npapi-sdk.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
_System is the calling convention used for a DLL entry.

And this patch fixes the following case.

----- call.cpp
typedef int (*fnTest)( int, int );

int _System test( int a, int b )
{
    return a + b;
}

int main( void )
{
    fnTest fn = test;

    return fn(10, 10);
}
-----

g++ -c call.cpp generates the following error.

-----
call.cpp: In function 'int main()':
call.cpp:10: error: invalid conversion from 'int (*)(int, int)' to 'int 
(*)(int, int)'
-----

Original comment by [email protected] on 27 Jul 2012 at 4:34

from npapi-sdk.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
Ping ?

Original comment by [email protected] on 31 Jul 2012 at 6:46

from npapi-sdk.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
LGTM (although I'm wondering why in all the time the OS/2 define has been 
there, this has never come up before).

As a side note, yay gcc for it's oh-so-helpful error messages.

Original comment by stuart.morgan on 12 Aug 2012 at 6:32

from npapi-sdk.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
Committed.

Original comment by [email protected] on 13 Aug 2012 at 7:05

  • Changed state: Fixed

from npapi-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.