diff --git a/mozilla/caps/src/Makefile.in b/mozilla/caps/src/Makefile.in index 91fa753e592..21a2d77ae34 100644 --- a/mozilla/caps/src/Makefile.in +++ b/mozilla/caps/src/Makefile.in @@ -51,7 +51,8 @@ EXTRA_DSO_LDOPTS = \ -L$(DIST)/bin \ -L$(DIST)/lib \ $(ZLIB_LIBS) \ - -lxp \ + -lxpcom \ + -lmozjs \ $(NSPR_LIBS) \ $(NULL) diff --git a/mozilla/caps/src/nsCodebasePrincipal.cpp b/mozilla/caps/src/nsCodebasePrincipal.cpp index f7deba4247d..1ec2db97849 100644 --- a/mozilla/caps/src/nsCodebasePrincipal.cpp +++ b/mozilla/caps/src/nsCodebasePrincipal.cpp @@ -19,7 +19,6 @@ #include "nsCodebasePrincipal.h" #include "nsIComponentManager.h" #include "nsIServiceManager.h" -#include "xp.h" #include "nsIURL.h" static NS_DEFINE_IID(kICodebasePrincipalIID, NS_ICODEBASEPRINCIPAL_IID); diff --git a/mozilla/caps/src/nsJSPrincipals.cpp b/mozilla/caps/src/nsJSPrincipals.cpp index 0827aa164bd..ab0f4ab6ebf 100644 --- a/mozilla/caps/src/nsJSPrincipals.cpp +++ b/mozilla/caps/src/nsJSPrincipals.cpp @@ -17,7 +17,6 @@ */ #include "nsCodebasePrincipal.h" #include "nsJSPrincipals.h" -#include "xp.h" #include "plstr.h" PR_STATIC_CALLBACK(void *) diff --git a/mozilla/caps/src/nsPrivilege.cpp b/mozilla/caps/src/nsPrivilege.cpp index 31ee6dae84f..5a29c633e7e 100755 --- a/mozilla/caps/src/nsPrivilege.cpp +++ b/mozilla/caps/src/nsPrivilege.cpp @@ -17,7 +17,8 @@ */ /*describes the state and duration of privileges*/ #include "nsPrivilege.h" -#include "xp.h" +#include "prlog.h" +#include "plstr.h" static NS_DEFINE_IID(kIPrivilegeIID, NS_IPRIVILEGE_IID); @@ -125,7 +126,7 @@ nsPrivilege::ToString(char * * result) privStr = "blank"; break; default: - PR_ASSERT(FALSE); + PR_ASSERT(PR_FALSE); privStr = "error"; break; } @@ -144,13 +145,13 @@ nsPrivilege::ToString(char * * result) privStr = "blank"; break; default: - PR_ASSERT(FALSE); + PR_ASSERT(PR_FALSE); privStr = "error"; break; } itsString = new char[strlen(privStr) + strlen(durStr) + 1]; - XP_STRCPY(itsString, privStr); - XP_STRCAT(itsString, durStr); + PL_strcpy(itsString, privStr); + PL_strcat(itsString, durStr); result = & itsString; return NS_OK; } diff --git a/mozilla/caps/src/nsPrivilegeManager.cpp b/mozilla/caps/src/nsPrivilegeManager.cpp index 191e07ec504..a45bdfe35ec 100755 --- a/mozilla/caps/src/nsPrivilegeManager.cpp +++ b/mozilla/caps/src/nsPrivilegeManager.cpp @@ -49,7 +49,6 @@ static JSec_Principal RDF_CreatePrincipal(nsPrincipal *prin); #endif /* ENABLE_RDF */ PR_BEGIN_EXTERN_C -#include "xp.h" #include "prefapi.h" PRBool @@ -144,31 +143,31 @@ nsPrivilegeManager::FindPrivilege(char * privStr) { PRInt16 privState; PRInt16 privDuration; - if (XP_STRCMP(privStr, "allowed in scope") == 0) { + if (PL_strcmp(privStr, "allowed in scope") == 0) { privState = nsIPrivilege::PrivilegeState_Allowed; privDuration = nsIPrivilege::PrivilegeDuration_Scope; - } else if (XP_STRCMP(privStr, "allowed in session") == 0) { + } else if (PL_strcmp(privStr, "allowed in session") == 0) { privState = nsIPrivilege::PrivilegeState_Allowed; privDuration = nsIPrivilege::PrivilegeDuration_Session; - } else if (XP_STRCMP(privStr, "allowed forever") == 0) { + } else if (PL_strcmp(privStr, "allowed forever") == 0) { privState = nsIPrivilege::PrivilegeState_Allowed; privDuration = nsIPrivilege::PrivilegeDuration_Forever; - } else if (XP_STRCMP(privStr, "forbidden forever") == 0) { + } else if (PL_strcmp(privStr, "forbidden forever") == 0) { privState = nsIPrivilege::PrivilegeState_Forbidden; privDuration = nsIPrivilege::PrivilegeDuration_Forever; - } else if (XP_STRCMP(privStr, "forbidden in session") == 0) { + } else if (PL_strcmp(privStr, "forbidden in session") == 0) { privState = nsIPrivilege::PrivilegeState_Forbidden; privDuration = nsIPrivilege::PrivilegeDuration_Session; - } else if (XP_STRCMP(privStr, "forbidden in scope") == 0) { + } else if (PL_strcmp(privStr, "forbidden in scope") == 0) { privState = nsIPrivilege::PrivilegeState_Forbidden; privDuration = nsIPrivilege::PrivilegeDuration_Scope; - } else if (XP_STRCMP(privStr, "blank forever") == 0) { + } else if (PL_strcmp(privStr, "blank forever") == 0) { privState = nsIPrivilege::PrivilegeState_Blank; privDuration = nsIPrivilege::PrivilegeDuration_Forever; - } else if (XP_STRCMP(privStr, "blank in session") == 0) { + } else if (PL_strcmp(privStr, "blank in session") == 0) { privState = nsIPrivilege::PrivilegeState_Blank; privDuration = nsIPrivilege::PrivilegeDuration_Session; - } else if (XP_STRCMP(privStr, "blank in scope") == 0) { + } else if (PL_strcmp(privStr, "blank in scope") == 0) { privState = nsIPrivilege::PrivilegeState_Blank; privDuration = nsIPrivilege::PrivilegeDuration_Scope; } else { diff --git a/mozilla/caps/src/nsTarget.cpp b/mozilla/caps/src/nsTarget.cpp index 7484944f990..a913109e073 100755 --- a/mozilla/caps/src/nsTarget.cpp +++ b/mozilla/caps/src/nsTarget.cpp @@ -22,8 +22,7 @@ #include "nsPrincipalManager.h" #include "nsUserTarget.h" #include "nsUserDialogHelper.h" -#include "xp.h" -#include "xpgetstr.h" +#include "prmem.h" #include "plhash.h" /* XXXXXXXX Begin oF HACK */ @@ -363,11 +362,11 @@ java_netscape_security_getTargetDetails(const char * charSetName, char * targetN char * targetRisk, * targetDescription; primTarget->GetDescription(& targetDescription); primTarget->GetRisk(& targetRisk); - XP_STRCAT(desc, "