Comments (11)
Ping ?
Original comment by [email protected]
on 21 Jul 2012 at 1:46
from npapi-sdk.
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.
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.
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.
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.
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.
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.
_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.
Ping ?
Original comment by [email protected]
on 31 Jul 2012 at 6:46
from npapi-sdk.
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.
Committed.
Original comment by [email protected]
on 13 Aug 2012 at 7:05
- Changed state: Fixed
from npapi-sdk.
Related Issues (20)
- Please add NPAPI_VERSION_REVISION to provide true API version number HOT 2
- add support for NPNVdocumentOrigin HOT 2
- Samples unix-basic BasicPlugin not working HOT 7
- NP_GetPluginVersion has incorrect const-ness HOT 1
- NP_VERSION_MINOR must be increased HOT 1
- Using npapi sdk in browser code. NP_* functions HOT 5
- Const correctness of some functions' arguments HOT 2
- [patch] Can ndata be const void *? Is it used anywhere? HOT 1
- NP_* function declarations are declared with calling convention incompatible with NP_*Func types HOT 3
- Code review request HOT 2
- add support for Asynchronous Drawing Models (Bitmap and Windows Accelerated) HOT 7
- Patch for /trunk/samples/mac-basic/Info.plist HOT 1
- Under MinGW bool and uintptr_t are unknown type names HOT 3
- OpenGL.h include in npapi.h on mac is problematic for some users HOT 4
- Plugin compiles but plugin error when loaded
- Need a tutorial or sample code to develop NPAPI Plugin for Safari5.1 from scratch HOT 1
- add a pkgconfig template HOT 6
- Add a simple autotools buildsystem HOT 9
- rev5 breaks API compatibility for plugins HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from npapi-sdk.