зеркало из https://github.com/mozilla/pjs.git
r=mstoltz, sr=brendan Fix some calling convention - PR_ to JS_
This commit is contained in:
Родитель
5d7be274db
Коммит
1e48cea7cc
|
@ -24,19 +24,19 @@
|
||||||
#include "plstr.h"
|
#include "plstr.h"
|
||||||
#include "nsXPIDLString.h"
|
#include "nsXPIDLString.h"
|
||||||
|
|
||||||
PR_STATIC_CALLBACK(void *)
|
JS_STATIC_DLL_CALLBACK(void *)
|
||||||
nsGetPrincipalArray(JSContext *cx, struct JSPrincipals *prin)
|
nsGetPrincipalArray(JSContext *cx, struct JSPrincipals *prin)
|
||||||
{
|
{
|
||||||
return nsnull;
|
return nsnull;
|
||||||
}
|
}
|
||||||
|
|
||||||
PR_STATIC_CALLBACK(JSBool)
|
JS_STATIC_DLL_CALLBACK(JSBool)
|
||||||
nsGlobalPrivilegesEnabled(JSContext *cx , struct JSPrincipals *jsprin)
|
nsGlobalPrivilegesEnabled(JSContext *cx , struct JSPrincipals *jsprin)
|
||||||
{
|
{
|
||||||
return JS_TRUE;
|
return JS_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
PR_STATIC_CALLBACK(void)
|
JS_STATIC_DLL_CALLBACK(void)
|
||||||
nsDestroyJSPrincipals(JSContext *cx, struct JSPrincipals *jsprin) {
|
nsDestroyJSPrincipals(JSContext *cx, struct JSPrincipals *jsprin) {
|
||||||
nsJSPrincipals *nsjsprin = (nsJSPrincipals *)jsprin;
|
nsJSPrincipals *nsjsprin = (nsJSPrincipals *)jsprin;
|
||||||
// We need to destroy the nsIPrincipal. We'll do this by adding
|
// We need to destroy the nsIPrincipal. We'll do this by adding
|
||||||
|
|
|
@ -181,7 +181,7 @@ getStringArgument(JSContext *cx, JSObject *obj, PRUint16 argNum, uintN argc, jsv
|
||||||
return JS_GetStringBytes(str);
|
return JS_GetStringBytes(str);
|
||||||
}
|
}
|
||||||
|
|
||||||
PR_STATIC_CALLBACK(JSBool)
|
JS_STATIC_DLL_CALLBACK(JSBool)
|
||||||
netscape_security_isPrivilegeEnabled(JSContext *cx, JSObject *obj, uintN argc,
|
netscape_security_isPrivilegeEnabled(JSContext *cx, JSObject *obj, uintN argc,
|
||||||
jsval *argv, jsval *rval)
|
jsval *argv, jsval *rval)
|
||||||
{
|
{
|
||||||
|
@ -203,7 +203,7 @@ netscape_security_isPrivilegeEnabled(JSContext *cx, JSObject *obj, uintN argc,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
PR_STATIC_CALLBACK(JSBool)
|
JS_STATIC_DLL_CALLBACK(JSBool)
|
||||||
netscape_security_enablePrivilege(JSContext *cx, JSObject *obj, uintN argc,
|
netscape_security_enablePrivilege(JSContext *cx, JSObject *obj, uintN argc,
|
||||||
jsval *argv, jsval *rval)
|
jsval *argv, jsval *rval)
|
||||||
{
|
{
|
||||||
|
@ -221,7 +221,7 @@ netscape_security_enablePrivilege(JSContext *cx, JSObject *obj, uintN argc,
|
||||||
return JS_TRUE;
|
return JS_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
PR_STATIC_CALLBACK(JSBool)
|
JS_STATIC_DLL_CALLBACK(JSBool)
|
||||||
netscape_security_disablePrivilege(JSContext *cx, JSObject *obj, uintN argc,
|
netscape_security_disablePrivilege(JSContext *cx, JSObject *obj, uintN argc,
|
||||||
jsval *argv, jsval *rval)
|
jsval *argv, jsval *rval)
|
||||||
{
|
{
|
||||||
|
@ -239,7 +239,7 @@ netscape_security_disablePrivilege(JSContext *cx, JSObject *obj, uintN argc,
|
||||||
return JS_TRUE;
|
return JS_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
PR_STATIC_CALLBACK(JSBool)
|
JS_STATIC_DLL_CALLBACK(JSBool)
|
||||||
netscape_security_revertPrivilege(JSContext *cx, JSObject *obj, uintN argc,
|
netscape_security_revertPrivilege(JSContext *cx, JSObject *obj, uintN argc,
|
||||||
jsval *argv, jsval *rval)
|
jsval *argv, jsval *rval)
|
||||||
{
|
{
|
||||||
|
@ -257,7 +257,7 @@ netscape_security_revertPrivilege(JSContext *cx, JSObject *obj, uintN argc,
|
||||||
return JS_TRUE;
|
return JS_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
PR_STATIC_CALLBACK(JSBool)
|
JS_STATIC_DLL_CALLBACK(JSBool)
|
||||||
netscape_security_setCanEnablePrivilege(JSContext *cx, JSObject *obj, uintN argc,
|
netscape_security_setCanEnablePrivilege(JSContext *cx, JSObject *obj, uintN argc,
|
||||||
jsval *argv, jsval *rval)
|
jsval *argv, jsval *rval)
|
||||||
{
|
{
|
||||||
|
@ -278,7 +278,7 @@ netscape_security_setCanEnablePrivilege(JSContext *cx, JSObject *obj, uintN argc
|
||||||
return JS_TRUE;
|
return JS_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
PR_STATIC_CALLBACK(JSBool)
|
JS_STATIC_DLL_CALLBACK(JSBool)
|
||||||
netscape_security_invalidate(JSContext *cx, JSObject *obj, uintN argc,
|
netscape_security_invalidate(JSContext *cx, JSObject *obj, uintN argc,
|
||||||
jsval *argv, jsval *rval)
|
jsval *argv, jsval *rval)
|
||||||
{
|
{
|
||||||
|
|
Загрузка…
Ссылка в новой задаче