mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-22 12:04:38 +00:00
Made NS_InitFooClass() accessable outside of JSDOM.DLL.
This commit is contained in:
parent
36a32da4b2
commit
0ad841ff91
@ -1336,7 +1336,7 @@ static const char *kInitClassBeginStr =
|
||||
"\n\n//\n"
|
||||
"// %s class initialization\n"
|
||||
"//\n"
|
||||
"nsresult NS_Init%sClass(nsIScriptContext *aContext, void **aPrototype)\n"
|
||||
"extern \"C\" NS_DOM nsresult NS_Init%sClass(nsIScriptContext *aContext, void **aPrototype)\n"
|
||||
"{\n"
|
||||
" JSContext *jscontext = (JSContext *)aContext->GetNativeContext();\n"
|
||||
" JSObject *proto = nsnull;\n"
|
||||
|
@ -82,7 +82,7 @@ static const char *kFactoryClassDeclBeginStr =
|
||||
static const char *kConstructorDeclStr = " NS_IMETHOD CreateInstance(%snsIDOM%s **aReturn)=0;\n";
|
||||
static const char *kFactoryClassDeclEndStr = "\n};\n\n";
|
||||
static const char *kGlobalInitClassStr = "extern nsresult NS_Init%sClass(nsIScriptContext *aContext, nsIScriptGlobalObject *aGlobal);\n\n";
|
||||
static const char *kInitClassStr = "extern nsresult NS_Init%sClass(nsIScriptContext *aContext, void **aPrototype);\n\n";
|
||||
static const char *kInitClassStr = "extern \"C\" NS_DOM nsresult NS_Init%sClass(nsIScriptContext *aContext, void **aPrototype);\n\n";
|
||||
static const char *kNewObjStr = "extern \"C\" NS_DOM nsresult NS_NewScript%s(nsIScriptContext *aContext, nsISupports *aSupports, nsISupports *aParent, void **aReturn);\n\n";
|
||||
static const char *kMethodDeclMacroStr = "\n#define NS_DECL_IDOM%s \\\n";
|
||||
static const char *kMethodForwardMacroStr = "\n#define NS_FORWARD_IDOM%s(_to) \\\n";
|
||||
|
Loading…
x
Reference in New Issue
Block a user