mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-31 11:01:40 +00:00
Bug 456388 - Remove PR_STATIC_CALLBACK and PR_CALLBACK(_DECL) from the tree; r+sr=brendan
This commit is contained in:
parent
4802b549e0
commit
c72ef7d248
@ -102,7 +102,7 @@ class nsAccessNode: public nsIAccessNode,
|
||||
void* aUniqueID, nsIAccessNode **aAccessNode);
|
||||
static void ClearCache(nsAccessNodeHashtable& aCache);
|
||||
|
||||
static PLDHashOperator PR_CALLBACK ClearCacheEntry(const void* aKey, nsCOMPtr<nsIAccessNode>& aAccessNode, void* aUserArg);
|
||||
static PLDHashOperator ClearCacheEntry(const void* aKey, nsCOMPtr<nsIAccessNode>& aAccessNode, void* aUserArg);
|
||||
|
||||
// Static cache methods for global document cache
|
||||
static already_AddRefed<nsIAccessibleDocument> GetDocAccessibleFor(nsIDocument *aDocument);
|
||||
|
@ -138,7 +138,7 @@ nsDocAccessible::~nsDocAccessible()
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// nsDocAccessible. nsISupports
|
||||
|
||||
PR_STATIC_CALLBACK(PLDHashOperator)
|
||||
static PLDHashOperator
|
||||
ElementTraverser(const void *aKey, nsIAccessNode *aAccessNode,
|
||||
void *aUserArg)
|
||||
{
|
||||
|
@ -180,7 +180,7 @@ struct PropertyPolicy : public PLDHashEntryHdr
|
||||
SecurityLevel mSet;
|
||||
};
|
||||
|
||||
PR_STATIC_CALLBACK(PRBool)
|
||||
static PRBool
|
||||
InitPropertyPolicyEntry(PLDHashTable *table,
|
||||
PLDHashEntryHdr *entry,
|
||||
const void *key)
|
||||
@ -192,7 +192,7 @@ InitPropertyPolicyEntry(PLDHashTable *table,
|
||||
return PR_TRUE;
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(void)
|
||||
static void
|
||||
ClearPropertyPolicyEntry(PLDHashTable *table, PLDHashEntryHdr *entry)
|
||||
{
|
||||
PropertyPolicy* pp = (PropertyPolicy*)entry;
|
||||
@ -212,7 +212,7 @@ struct ClassPolicy : public PLDHashEntryHdr
|
||||
DomainPolicy* mDomainWeAreWildcardFor;
|
||||
};
|
||||
|
||||
PR_STATIC_CALLBACK(void)
|
||||
static void
|
||||
ClearClassPolicyEntry(PLDHashTable *table, PLDHashEntryHdr *entry)
|
||||
{
|
||||
ClassPolicy* cp = (ClassPolicy *)entry;
|
||||
@ -226,12 +226,12 @@ ClearClassPolicyEntry(PLDHashTable *table, PLDHashEntryHdr *entry)
|
||||
|
||||
// Note: actual impl is going to be after the DomainPolicy class definition,
|
||||
// since we need to access members of DomainPolicy in the impl
|
||||
PR_STATIC_CALLBACK(void)
|
||||
static void
|
||||
MoveClassPolicyEntry(PLDHashTable *table,
|
||||
const PLDHashEntryHdr *from,
|
||||
PLDHashEntryHdr *to);
|
||||
|
||||
PR_STATIC_CALLBACK(PRBool)
|
||||
static PRBool
|
||||
InitClassPolicyEntry(PLDHashTable *table,
|
||||
PLDHashEntryHdr *entry,
|
||||
const void *key)
|
||||
@ -344,7 +344,7 @@ private:
|
||||
|
||||
};
|
||||
|
||||
PR_STATIC_CALLBACK(void)
|
||||
static void
|
||||
MoveClassPolicyEntry(PLDHashTable *table,
|
||||
const PLDHashEntryHdr *from,
|
||||
PLDHashEntryHdr *to)
|
||||
|
@ -844,7 +844,7 @@ struct CapabilityList
|
||||
nsCString* denied;
|
||||
};
|
||||
|
||||
PR_STATIC_CALLBACK(PRBool)
|
||||
static PRBool
|
||||
AppendCapability(nsHashKey *aKey, void *aData, void *capListPtr)
|
||||
{
|
||||
CapabilityList* capList = (CapabilityList*)capListPtr;
|
||||
@ -971,7 +971,7 @@ nsPrincipal::GetPreferences(char** aPrefName, char** aID,
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(nsresult)
|
||||
static nsresult
|
||||
ReadAnnotationEntry(nsIObjectInputStream* aStream, nsHashKey** aKey,
|
||||
void** aData)
|
||||
{
|
||||
@ -993,7 +993,7 @@ ReadAnnotationEntry(nsIObjectInputStream* aStream, nsHashKey** aKey,
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(void)
|
||||
static void
|
||||
FreeAnnotationEntry(nsIObjectInputStream* aStream, nsHashKey* aKey,
|
||||
void* aData)
|
||||
{
|
||||
@ -1085,7 +1085,7 @@ nsPrincipal::Read(nsIObjectInputStream* aStream)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(nsresult)
|
||||
static nsresult
|
||||
WriteScalarValue(nsIObjectOutputStream* aStream, void* aData)
|
||||
{
|
||||
PRUint32 value = NS_PTR_TO_INT32(aData);
|
||||
|
@ -399,7 +399,7 @@ nsScriptSecurityManager::GetCxSubjectPrincipal(JSContext *cx)
|
||||
////////////////////
|
||||
|
||||
// Table of security levels
|
||||
PR_STATIC_CALLBACK(PRBool)
|
||||
static PRBool
|
||||
DeleteCapability(nsHashKey *aKey, void *aData, void* closure)
|
||||
{
|
||||
NS_Free(aData);
|
||||
@ -449,7 +449,7 @@ struct DomainEntry
|
||||
#endif
|
||||
};
|
||||
|
||||
PR_STATIC_CALLBACK(PRBool)
|
||||
static PRBool
|
||||
DeleteDomainEntry(nsHashKey *aKey, void *aData, void* closure)
|
||||
{
|
||||
DomainEntry *entry = (DomainEntry*) aData;
|
||||
@ -3897,9 +3897,9 @@ nsScriptSecurityManager::InitPrefs()
|
||||
#ifdef DEBUG_CAPS_HACKER
|
||||
|
||||
//typedef PLDHashOperator
|
||||
//(* PR_CALLBACK PLDHashEnumerator)(PLDHashTable *table, PLDHashEntryHdr *hdr,
|
||||
// PRUint32 number, void *arg);
|
||||
PR_STATIC_CALLBACK(PLDHashOperator)
|
||||
//(* PLDHashEnumerator)(PLDHashTable *table, PLDHashEntryHdr *hdr,
|
||||
// PRUint32 number, void *arg);
|
||||
static PLDHashOperator
|
||||
PrintPropertyPolicy(PLDHashTable *table, PLDHashEntryHdr *entry,
|
||||
PRUint32 number, void *arg)
|
||||
{
|
||||
@ -3925,7 +3925,7 @@ PrintPropertyPolicy(PLDHashTable *table, PLDHashEntryHdr *entry,
|
||||
return PL_DHASH_NEXT;
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(PLDHashOperator)
|
||||
static PLDHashOperator
|
||||
PrintClassPolicy(PLDHashTable *table, PLDHashEntryHdr *entry,
|
||||
PRUint32 number, void *arg)
|
||||
{
|
||||
@ -3937,8 +3937,8 @@ PrintClassPolicy(PLDHashTable *table, PLDHashEntryHdr *entry,
|
||||
}
|
||||
|
||||
// typedef PRBool
|
||||
// (*PR_CALLBACK nsHashtableEnumFunc)(nsHashKey *aKey, void *aData, void* aClosure);
|
||||
PR_STATIC_CALLBACK(PRBool)
|
||||
// (* nsHashtableEnumFunc)(nsHashKey *aKey, void *aData, void* aClosure);
|
||||
static PRBool
|
||||
PrintDomainPolicy(nsHashKey *aKey, void *aData, void* aClosure)
|
||||
{
|
||||
DomainEntry* de = (DomainEntry*)aData;
|
||||
@ -3949,7 +3949,7 @@ PrintDomainPolicy(nsHashKey *aKey, void *aData, void* aClosure)
|
||||
return PR_TRUE;
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(PRBool)
|
||||
static PRBool
|
||||
PrintCapability(nsHashKey *aKey, void *aData, void* aClosure)
|
||||
{
|
||||
char* cap = (char*)aData;
|
||||
|
@ -130,7 +130,7 @@ getUTF8StringArgument(JSContext *cx, JSObject *obj, PRUint16 argNum,
|
||||
CopyUTF16toUTF8(data, aRetval);
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(JSBool)
|
||||
static JSBool
|
||||
netscape_security_isPrivilegeEnabled(JSContext *cx, JSObject *obj, uintN argc,
|
||||
jsval *argv, jsval *rval)
|
||||
{
|
||||
@ -153,7 +153,7 @@ netscape_security_isPrivilegeEnabled(JSContext *cx, JSObject *obj, uintN argc,
|
||||
}
|
||||
|
||||
|
||||
PR_STATIC_CALLBACK(JSBool)
|
||||
static JSBool
|
||||
netscape_security_enablePrivilege(JSContext *cx, JSObject *obj, uintN argc,
|
||||
jsval *argv, jsval *rval)
|
||||
{
|
||||
@ -175,7 +175,7 @@ netscape_security_enablePrivilege(JSContext *cx, JSObject *obj, uintN argc,
|
||||
return JS_TRUE;
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(JSBool)
|
||||
static JSBool
|
||||
netscape_security_disablePrivilege(JSContext *cx, JSObject *obj, uintN argc,
|
||||
jsval *argv, jsval *rval)
|
||||
{
|
||||
@ -197,7 +197,7 @@ netscape_security_disablePrivilege(JSContext *cx, JSObject *obj, uintN argc,
|
||||
return JS_TRUE;
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(JSBool)
|
||||
static JSBool
|
||||
netscape_security_revertPrivilege(JSContext *cx, JSObject *obj, uintN argc,
|
||||
jsval *argv, jsval *rval)
|
||||
{
|
||||
@ -219,7 +219,7 @@ netscape_security_revertPrivilege(JSContext *cx, JSObject *obj, uintN argc,
|
||||
return JS_TRUE;
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(JSBool)
|
||||
static JSBool
|
||||
netscape_security_setCanEnablePrivilege(JSContext *cx, JSObject *obj, uintN argc,
|
||||
jsval *argv, jsval *rval)
|
||||
{
|
||||
@ -245,7 +245,7 @@ netscape_security_setCanEnablePrivilege(JSContext *cx, JSObject *obj, uintN argc
|
||||
return JS_TRUE;
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(JSBool)
|
||||
static JSBool
|
||||
netscape_security_invalidate(JSContext *cx, JSObject *obj, uintN argc,
|
||||
jsval *argv, jsval *rval)
|
||||
{
|
||||
@ -497,7 +497,7 @@ static const nsModuleComponentInfo capsComponentInfo[] =
|
||||
};
|
||||
|
||||
|
||||
void PR_CALLBACK
|
||||
void
|
||||
CapsModuleDtor(nsIModule* thisModules)
|
||||
{
|
||||
nsScriptSecurityManager::Shutdown();
|
||||
|
@ -1359,8 +1359,7 @@ private:
|
||||
static nsIDOMScriptObjectFactory *GetDOMScriptObjectFactory();
|
||||
|
||||
static nsresult HoldScriptObject(PRUint32 aLangID, void* aObject);
|
||||
PR_STATIC_CALLBACK(void) DropScriptObject(PRUint32 aLangID, void *aObject,
|
||||
void *aClosure);
|
||||
static void DropScriptObject(PRUint32 aLangID, void *aObject, void *aClosure);
|
||||
|
||||
static PRBool CanCallerAccess(nsIPrincipal* aSubjectPrincipal,
|
||||
nsIPrincipal* aPrincipal);
|
||||
|
@ -107,7 +107,7 @@ mozSanitizingHTMLSerializer::~mozSanitizingHTMLSerializer()
|
||||
}
|
||||
|
||||
//<copy from="xpcom/ds/nsProperties.cpp">
|
||||
PRBool PR_CALLBACK
|
||||
PRBool
|
||||
mozSanitizingHTMLSerializer::ReleaseProperties(nsHashKey* key, void* data,
|
||||
void* closure)
|
||||
{
|
||||
|
@ -65,8 +65,7 @@ class mozSanitizingHTMLSerializer : public nsIContentSerializer,
|
||||
public:
|
||||
mozSanitizingHTMLSerializer();
|
||||
virtual ~mozSanitizingHTMLSerializer();
|
||||
static PRBool PR_CALLBACK ReleaseProperties(nsHashKey* key, void* data,
|
||||
void* closure);
|
||||
static PRBool ReleaseProperties(nsHashKey* key, void* data, void* closure);
|
||||
|
||||
NS_DECL_ISUPPORTS
|
||||
|
||||
|
@ -192,14 +192,14 @@ struct ContentListHashEntry : public PLDHashEntryHdr
|
||||
nsContentList* mContentList;
|
||||
};
|
||||
|
||||
PR_STATIC_CALLBACK(PLDHashNumber)
|
||||
static PLDHashNumber
|
||||
ContentListHashtableHashKey(PLDHashTable *table, const void *key)
|
||||
{
|
||||
const nsContentListKey* list = static_cast<const nsContentListKey *>(key);
|
||||
return list->GetHash();
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(PRBool)
|
||||
static PRBool
|
||||
ContentListHashtableMatchEntry(PLDHashTable *table,
|
||||
const PLDHashEntryHdr *entry,
|
||||
const void *key)
|
||||
|
@ -242,7 +242,7 @@ public:
|
||||
nsCOMPtr<nsIEventListenerManager> mListenerManager;
|
||||
};
|
||||
|
||||
PR_STATIC_CALLBACK(PRBool)
|
||||
static PRBool
|
||||
EventListenerManagerHashInitEntry(PLDHashTable *table, PLDHashEntryHdr *entry,
|
||||
const void *key)
|
||||
{
|
||||
@ -251,7 +251,7 @@ EventListenerManagerHashInitEntry(PLDHashTable *table, PLDHashEntryHdr *entry,
|
||||
return PR_TRUE;
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(void)
|
||||
static void
|
||||
EventListenerManagerHashClearEntry(PLDHashTable *table, PLDHashEntryHdr *entry)
|
||||
{
|
||||
EventListenerManagerMapEntry *lm =
|
||||
@ -2600,7 +2600,7 @@ nsContentUtils::UnregisterPrefCallback(const char *aPref,
|
||||
sPref->UnregisterCallback(aPref, aCallback, aClosure);
|
||||
}
|
||||
|
||||
static int PR_CALLBACK
|
||||
static int
|
||||
BoolVarChanged(const char *aPref, void *aClosure)
|
||||
{
|
||||
PRBool* cache = static_cast<PRBool*>(aClosure);
|
||||
|
@ -271,7 +271,7 @@ nsUint32ToContentHashEntry::InitHashSet(HashSet** aSet)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
static PLDHashOperator PR_CALLBACK
|
||||
static PLDHashOperator
|
||||
nsUint32ToContentHashEntryVisitorCallback(nsISupportsHashKey* aEntry,
|
||||
void* aClosure)
|
||||
{
|
||||
@ -395,7 +395,7 @@ struct FireChangeArgs {
|
||||
nsIContent* mTo;
|
||||
};
|
||||
|
||||
PR_STATIC_CALLBACK(PLDHashOperator)
|
||||
static PLDHashOperator
|
||||
FireChangeEnumerator(nsIdentifierMapEntry::ChangeCallbackEntry *aEntry, void *aArg)
|
||||
{
|
||||
FireChangeArgs* args = static_cast<FireChangeArgs*>(aArg);
|
||||
@ -1452,7 +1452,7 @@ nsDocument::nsDocument(const char* aContentType)
|
||||
SetDOMStringToNull(mLastStyleSheetSet);
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(PLDHashOperator)
|
||||
static PLDHashOperator
|
||||
ClearAllBoxObjects(const void* aKey, nsPIBoxObject* aBoxObject, void* aUserArg)
|
||||
{
|
||||
if (aBoxObject) {
|
||||
@ -1616,7 +1616,7 @@ NS_IMPL_CYCLE_COLLECTING_RELEASE_AMBIGUOUS_WITH_DESTROY(nsDocument,
|
||||
nsNodeUtils::LastRelease(this))
|
||||
|
||||
|
||||
PR_STATIC_CALLBACK(PLDHashOperator)
|
||||
static PLDHashOperator
|
||||
SubDocTraverser(PLDHashTable *table, PLDHashEntryHdr *hdr, PRUint32 number,
|
||||
void *arg)
|
||||
{
|
||||
@ -1632,7 +1632,7 @@ SubDocTraverser(PLDHashTable *table, PLDHashEntryHdr *hdr, PRUint32 number,
|
||||
return PL_DHASH_NEXT;
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(PLDHashOperator)
|
||||
static PLDHashOperator
|
||||
RadioGroupsTraverser(const nsAString& aKey, nsRadioGroupStruct* aData,
|
||||
void* aClosure)
|
||||
{
|
||||
@ -1653,7 +1653,7 @@ RadioGroupsTraverser(const nsAString& aKey, nsRadioGroupStruct* aData,
|
||||
return PL_DHASH_NEXT;
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(PLDHashOperator)
|
||||
static PLDHashOperator
|
||||
BoxObjectTraverser(const void* key, nsPIBoxObject* boxObject, void* userArg)
|
||||
{
|
||||
nsCycleCollectionTraversalCallback *cb =
|
||||
@ -1676,7 +1676,7 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
PR_STATIC_CALLBACK(PLDHashOperator)
|
||||
static PLDHashOperator
|
||||
LinkMapTraverser(nsUint32ToContentHashEntry* aEntry, void* userArg)
|
||||
{
|
||||
LinkMapTraversalVisitor visitor;
|
||||
@ -1685,7 +1685,7 @@ LinkMapTraverser(nsUint32ToContentHashEntry* aEntry, void* userArg)
|
||||
return PL_DHASH_NEXT;
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(PLDHashOperator)
|
||||
static PLDHashOperator
|
||||
IdentifierMapEntryTraverse(nsIdentifierMapEntry *aEntry, void *aArg)
|
||||
{
|
||||
nsCycleCollectionTraversalCallback *cb =
|
||||
@ -2971,7 +2971,7 @@ nsDocument::GetPrimaryShell() const
|
||||
return mShellsAreHidden ? nsnull : mPresShells.SafeElementAt(0, nsnull);
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(void)
|
||||
static void
|
||||
SubDocClearEntry(PLDHashTable *table, PLDHashEntryHdr *entry)
|
||||
{
|
||||
SubDocMapEntry *e = static_cast<SubDocMapEntry *>(entry);
|
||||
@ -2983,7 +2983,7 @@ SubDocClearEntry(PLDHashTable *table, PLDHashEntryHdr *entry)
|
||||
}
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(PRBool)
|
||||
static PRBool
|
||||
SubDocInitEntry(PLDHashTable *table, PLDHashEntryHdr *entry, const void *key)
|
||||
{
|
||||
SubDocMapEntry *e =
|
||||
@ -3082,7 +3082,7 @@ nsDocument::GetSubDocumentFor(nsIContent *aContent) const
|
||||
return nsnull;
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(PLDHashOperator)
|
||||
static PLDHashOperator
|
||||
FindContentEnumerator(PLDHashTable *table, PLDHashEntryHdr *hdr,
|
||||
PRUint32 number, void *arg)
|
||||
{
|
||||
@ -5707,7 +5707,7 @@ nsDocument::SetDocumentURI(const nsAString& aDocumentURI)
|
||||
|
||||
static void BlastSubtreeToPieces(nsINode *aNode);
|
||||
|
||||
PLDHashOperator PR_CALLBACK
|
||||
PLDHashOperator
|
||||
BlastFunc(nsAttrHashKey::KeyType aKey, nsIDOMNode *aData, void* aUserArg)
|
||||
{
|
||||
nsCOMPtr<nsIAttribute> *attr =
|
||||
@ -6756,7 +6756,7 @@ struct SubDocEnumArgs
|
||||
void *data;
|
||||
};
|
||||
|
||||
PR_STATIC_CALLBACK(PLDHashOperator)
|
||||
static PLDHashOperator
|
||||
SubDocHashEnum(PLDHashTable *table, PLDHashEntryHdr *hdr,
|
||||
PRUint32 number, void *arg)
|
||||
{
|
||||
@ -6778,7 +6778,7 @@ nsDocument::EnumerateSubDocuments(nsSubDocEnumFunc aCallback, void *aData)
|
||||
}
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(PLDHashOperator)
|
||||
static PLDHashOperator
|
||||
CanCacheSubDocument(PLDHashTable *table, PLDHashEntryHdr *hdr,
|
||||
PRUint32 number, void *arg)
|
||||
{
|
||||
|
@ -136,9 +136,9 @@ PR_BEGIN_EXTERN_C
|
||||
functions. That's the only way in which they differ from
|
||||
PLHandleEventProc and PLDestroyEventProc. */
|
||||
typedef void*
|
||||
(PR_CALLBACK EventHandlerFunc)(PLEvent* self);
|
||||
(EventHandlerFunc)(PLEvent* self);
|
||||
typedef void
|
||||
(PR_CALLBACK EventDestructorFunc)(PLEvent* self);
|
||||
(EventDestructorFunc)(PLEvent* self);
|
||||
PR_END_EXTERN_C
|
||||
|
||||
/**
|
||||
|
@ -5072,8 +5072,7 @@ ParseSelectorList(nsINode* aNode,
|
||||
* the callbacks returns false, the iteration should be stopped.
|
||||
*/
|
||||
typedef PRBool
|
||||
(* PR_CALLBACK ElementMatchedCallback)(nsIContent* aMatchingElement,
|
||||
void* aClosure);
|
||||
(* ElementMatchedCallback)(nsIContent* aMatchingElement, void* aClosure);
|
||||
|
||||
// returning false means stop iteration
|
||||
static PRBool
|
||||
@ -5169,7 +5168,7 @@ TryMatchingElementsInSubtree(nsINode* aRoot,
|
||||
return continueIteration;
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(PRBool)
|
||||
static PRBool
|
||||
FindFirstMatchingElement(nsIContent* aMatchingElement,
|
||||
void* aClosure)
|
||||
{
|
||||
@ -5205,7 +5204,7 @@ nsGenericElement::doQuerySelector(nsINode* aRoot, const nsAString& aSelector,
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(PRBool)
|
||||
static PRBool
|
||||
AppendAllMatchingElements(nsIContent* aMatchingElement,
|
||||
void* aClosure)
|
||||
{
|
||||
|
@ -151,9 +151,8 @@ protected:
|
||||
void SetDocumentPrincipal(nsIPrincipal *aPrincipal);
|
||||
|
||||
private:
|
||||
static PRIntn PR_CALLBACK NodeInfoInnerKeyCompare(const void *key1,
|
||||
const void *key2);
|
||||
static PLHashNumber PR_CALLBACK GetNodeInfoInnerHashValue(const void *key);
|
||||
static PRIntn NodeInfoInnerKeyCompare(const void *key1, const void *key2);
|
||||
static PLHashNumber GetNodeInfoInnerHashValue(const void *key);
|
||||
|
||||
nsAutoRefCnt mRefCnt;
|
||||
NS_DECL_OWNINGTHREAD
|
||||
|
@ -458,7 +458,7 @@ public:
|
||||
nsCOMArray<nsINode> &mNodesWithProperties;
|
||||
};
|
||||
|
||||
PLDHashOperator PR_CALLBACK
|
||||
PLDHashOperator
|
||||
AdoptFunc(nsAttrHashKey::KeyType aKey, nsIDOMNode *aData, void* aUserArg)
|
||||
{
|
||||
nsCOMPtr<nsIAttribute> attr = do_QueryInterface(aData);
|
||||
|
@ -270,7 +270,7 @@ public:
|
||||
static void UnlinkUserData(nsINode *aNode);
|
||||
|
||||
private:
|
||||
friend PLDHashOperator PR_CALLBACK
|
||||
friend PLDHashOperator
|
||||
AdoptFunc(nsAttrHashKey::KeyType aKey, nsIDOMNode *aData, void* aUserArg);
|
||||
|
||||
/**
|
||||
|
@ -324,7 +324,7 @@ nsPropertyTable::PropertyList::~PropertyList()
|
||||
}
|
||||
|
||||
|
||||
PR_STATIC_CALLBACK(PLDHashOperator)
|
||||
static PLDHashOperator
|
||||
DestroyPropertyEnumerator(PLDHashTable *table, PLDHashEntryHdr *hdr,
|
||||
PRUint32 number, void *arg)
|
||||
{
|
||||
|
@ -182,7 +182,7 @@ nsXMLNameSpaceMap::FindPrefix(PRInt32 aNameSpaceID) const
|
||||
return nsnull;
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(PRBool) DeleteEntry(void *aElement, void *aData)
|
||||
static PRBool DeleteEntry(void *aElement, void *aData)
|
||||
{
|
||||
delete static_cast<nsNameSpaceEntry*>(aElement);
|
||||
return PR_TRUE;
|
||||
|
@ -57,7 +57,7 @@ public:
|
||||
NS_DECL_NSIDOMDATACONTAINEREVENT
|
||||
|
||||
private:
|
||||
static PLDHashOperator PR_CALLBACK
|
||||
static PLDHashOperator
|
||||
TraverseEntry(const nsAString& aKey, nsIVariant *aDataItem, void* aUserArg);
|
||||
|
||||
nsInterfaceHashtable<nsStringHashKey, nsIVariant> mData;
|
||||
|
@ -251,18 +251,18 @@ nsXMLEventsListener::HandleEvent(nsIDOMEvent* aEvent)
|
||||
|
||||
//XMLEventsManager / DocumentObserver
|
||||
|
||||
PR_STATIC_CALLBACK(PLDHashOperator) EnumAndUnregisterListener(nsISupports * aContent,
|
||||
nsCOMPtr<nsXMLEventsListener> & aListener,
|
||||
void * aData)
|
||||
static PLDHashOperator EnumAndUnregisterListener(nsISupports * aContent,
|
||||
nsCOMPtr<nsXMLEventsListener> & aListener,
|
||||
void * aData)
|
||||
{
|
||||
if (aListener)
|
||||
aListener->Unregister();
|
||||
return PL_DHASH_NEXT;
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(PLDHashOperator) EnumAndSetIncomplete(nsISupports * aContent,
|
||||
nsCOMPtr<nsXMLEventsListener> & aListener,
|
||||
void * aData)
|
||||
static PLDHashOperator EnumAndSetIncomplete(nsISupports * aContent,
|
||||
nsCOMPtr<nsXMLEventsListener> & aListener,
|
||||
void * aData)
|
||||
{
|
||||
if (aListener && aData) {
|
||||
nsCOMPtr<nsIContent> content = static_cast<nsIContent *>(aData);
|
||||
|
@ -527,7 +527,7 @@ nsHTMLFormElement::Init()
|
||||
|
||||
// nsISupports
|
||||
|
||||
PR_STATIC_CALLBACK(PLDHashOperator)
|
||||
static PLDHashOperator
|
||||
ElementTraverser(const nsAString& key, nsIDOMHTMLInputElement* element,
|
||||
void* userArg)
|
||||
{
|
||||
@ -2092,7 +2092,7 @@ nsFormControlList::FlushPendingNotifications()
|
||||
}
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(PLDHashOperator)
|
||||
static PLDHashOperator
|
||||
ControlTraverser(const nsAString& key, nsISupports* control, void* userArg)
|
||||
{
|
||||
nsCycleCollectionTraversalCallback *cb =
|
||||
|
@ -229,7 +229,7 @@ nsHTMLTableRowElement::GetSectionRowIndex(PRInt32* aValue)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(PRBool)
|
||||
static PRBool
|
||||
IsCell(nsIContent *aContent, PRInt32 aNamespaceID,
|
||||
nsIAtom* aAtom, void *aData)
|
||||
{
|
||||
|
@ -177,7 +177,7 @@ static PRBool ConvertToMidasInternalCommand(const nsAString & inCommandID,
|
||||
|
||||
static PRBool ConvertToMidasInternalCommand(const nsAString & inCommandID,
|
||||
nsACString& outCommandID);
|
||||
static int PR_CALLBACK
|
||||
static int
|
||||
MyPrefChangedCallback(const char*aPrefName, void* instance_data)
|
||||
{
|
||||
const nsAdoptingString& detector_name =
|
||||
|
@ -231,14 +231,14 @@ private:
|
||||
nsCOMPtr<nsISupports> mValue;
|
||||
};
|
||||
|
||||
PR_STATIC_CALLBACK(void)
|
||||
static void
|
||||
ClearObjectEntry(PLDHashTable* table, PLDHashEntryHdr *entry)
|
||||
{
|
||||
ObjectEntry* objEntry = static_cast<ObjectEntry*>(entry);
|
||||
objEntry->~ObjectEntry();
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(PRBool)
|
||||
static PRBool
|
||||
InitObjectEntry(PLDHashTable* table, PLDHashEntryHdr* entry, const void* key)
|
||||
{
|
||||
new (entry) ObjectEntry;
|
||||
@ -448,8 +448,8 @@ nsBindingManager::~nsBindingManager(void)
|
||||
}
|
||||
|
||||
PLDHashOperator
|
||||
PR_CALLBACK RemoveInsertionParentCB(PLDHashTable* aTable, PLDHashEntryHdr* aEntry,
|
||||
PRUint32 aNumber, void* aArg)
|
||||
RemoveInsertionParentCB(PLDHashTable* aTable, PLDHashEntryHdr* aEntry,
|
||||
PRUint32 aNumber, void* aArg)
|
||||
{
|
||||
return (static_cast<ObjectEntry*>(aEntry)->GetValue() ==
|
||||
static_cast<nsISupports*>(aArg)) ? PL_DHASH_REMOVE : PL_DHASH_NEXT;
|
||||
@ -1018,7 +1018,7 @@ struct BindingTableReadClosure
|
||||
nsBindingList mBindings;
|
||||
};
|
||||
|
||||
PR_STATIC_CALLBACK(PLDHashOperator)
|
||||
static PLDHashOperator
|
||||
AccumulateBindingsToDetach(nsISupports *aKey, nsXBLBinding *aBinding,
|
||||
void* aClosure)
|
||||
{
|
||||
@ -1109,7 +1109,7 @@ nsBindingManager::RemoveLoadingDocListener(nsIURI* aURL)
|
||||
}
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(PLDHashOperator)
|
||||
static PLDHashOperator
|
||||
MarkForDeath(nsISupports *aKey, nsXBLBinding *aBinding, void* aClosure)
|
||||
{
|
||||
if (aBinding->MarkedForDeath())
|
||||
@ -1299,7 +1299,7 @@ nsBindingManager::WalkRules(nsIStyleRuleProcessor::EnumFunc aFunc,
|
||||
|
||||
typedef nsTHashtable<nsVoidPtrHashKey> RuleProcessorSet;
|
||||
|
||||
PR_STATIC_CALLBACK(PLDHashOperator)
|
||||
static PLDHashOperator
|
||||
EnumRuleProcessors(nsISupports *aKey, nsXBLBinding *aBinding, void* aClosure)
|
||||
{
|
||||
RuleProcessorSet *set = static_cast<RuleProcessorSet*>(aClosure);
|
||||
@ -1321,7 +1321,7 @@ struct MediumFeaturesChangedData {
|
||||
PRBool *mRulesChanged;
|
||||
};
|
||||
|
||||
PR_STATIC_CALLBACK(PLDHashOperator)
|
||||
static PLDHashOperator
|
||||
EnumMediumFeaturesChanged(nsVoidPtrHashKey *aKey, void* aClosure)
|
||||
{
|
||||
nsIStyleRuleProcessor *ruleProcessor =
|
||||
|
@ -287,7 +287,7 @@ nsXBLBinding::~nsXBLBinding(void)
|
||||
NS_RELEASE(info);
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(PLDHashOperator)
|
||||
static PLDHashOperator
|
||||
TraverseKey(nsISupports* aKey, nsInsertionPointList* aData, void* aClosure)
|
||||
{
|
||||
nsCycleCollectionTraversalCallback &cb =
|
||||
@ -407,7 +407,7 @@ struct ContentListData : public EnumData {
|
||||
{}
|
||||
};
|
||||
|
||||
PR_STATIC_CALLBACK(PLDHashOperator)
|
||||
static PLDHashOperator
|
||||
BuildContentLists(nsISupports* aKey,
|
||||
nsAutoPtr<nsInsertionPointList>& aData,
|
||||
void* aClosure)
|
||||
@ -500,7 +500,7 @@ BuildContentLists(nsISupports* aKey,
|
||||
return PL_DHASH_NEXT;
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(PLDHashOperator)
|
||||
static PLDHashOperator
|
||||
RealizeDefaultContent(nsISupports* aKey,
|
||||
nsAutoPtr<nsInsertionPointList>& aData,
|
||||
void* aClosure)
|
||||
@ -561,7 +561,7 @@ RealizeDefaultContent(nsISupports* aKey,
|
||||
return PL_DHASH_NEXT;
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(PLDHashOperator)
|
||||
static PLDHashOperator
|
||||
ChangeDocumentForDefaultContent(nsISupports* aKey,
|
||||
nsAutoPtr<nsInsertionPointList>& aData,
|
||||
void* aClosure)
|
||||
|
@ -127,7 +127,7 @@ nsXBLDocGlobalObject::doCheckAccess(JSContext *cx, JSObject *obj, jsval id, PRUi
|
||||
return NS_SUCCEEDED(rv);
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(JSBool)
|
||||
static JSBool
|
||||
nsXBLDocGlobalObject_getProperty(JSContext *cx, JSObject *obj,
|
||||
jsval id, jsval *vp)
|
||||
{
|
||||
@ -135,7 +135,7 @@ nsXBLDocGlobalObject_getProperty(JSContext *cx, JSObject *obj,
|
||||
doCheckAccess(cx, obj, id, nsIXPCSecurityManager::ACCESS_GET_PROPERTY);
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(JSBool)
|
||||
static JSBool
|
||||
nsXBLDocGlobalObject_setProperty(JSContext *cx, JSObject *obj,
|
||||
jsval id, jsval *vp)
|
||||
{
|
||||
@ -143,7 +143,7 @@ nsXBLDocGlobalObject_setProperty(JSContext *cx, JSObject *obj,
|
||||
doCheckAccess(cx, obj, id, nsIXPCSecurityManager::ACCESS_SET_PROPERTY);
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(JSBool)
|
||||
static JSBool
|
||||
nsXBLDocGlobalObject_checkAccess(JSContext *cx, JSObject *obj, jsval id,
|
||||
JSAccessMode mode, jsval *vp)
|
||||
{
|
||||
@ -158,7 +158,7 @@ nsXBLDocGlobalObject_checkAccess(JSContext *cx, JSObject *obj, jsval id,
|
||||
doCheckAccess(cx, obj, id, translated);
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(void)
|
||||
static void
|
||||
nsXBLDocGlobalObject_finalize(JSContext *cx, JSObject *obj)
|
||||
{
|
||||
nsISupports *nativeThis = (nsISupports*)JS_GetPrivate(cx, obj);
|
||||
@ -172,7 +172,7 @@ nsXBLDocGlobalObject_finalize(JSContext *cx, JSObject *obj)
|
||||
NS_RELEASE(nativeThis);
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(JSBool)
|
||||
static JSBool
|
||||
nsXBLDocGlobalObject_resolve(JSContext *cx, JSObject *obj, jsval id)
|
||||
{
|
||||
JSBool did_resolve = JS_FALSE;
|
||||
@ -434,7 +434,7 @@ static PRBool IsChromeURI(nsIURI* aURI)
|
||||
|
||||
/* Implementation file */
|
||||
|
||||
static PRIntn PR_CALLBACK
|
||||
static PRIntn
|
||||
TraverseProtos(nsHashKey *aKey, void *aData, void* aClosure)
|
||||
{
|
||||
nsCycleCollectionTraversalCallback *cb =
|
||||
@ -444,7 +444,7 @@ TraverseProtos(nsHashKey *aKey, void *aData, void* aClosure)
|
||||
return kHashEnumerateNext;
|
||||
}
|
||||
|
||||
static PRIntn PR_CALLBACK
|
||||
static PRIntn
|
||||
UnlinkProtoJSObjects(nsHashKey *aKey, void *aData, void* aClosure)
|
||||
{
|
||||
nsXBLPrototypeBinding *proto = static_cast<nsXBLPrototypeBinding*>(aData);
|
||||
@ -458,7 +458,7 @@ struct ProtoTracer
|
||||
void *mClosure;
|
||||
};
|
||||
|
||||
static PRIntn PR_CALLBACK
|
||||
static PRIntn
|
||||
TraceProtos(nsHashKey *aKey, void *aData, void* aClosure)
|
||||
{
|
||||
ProtoTracer* closure = static_cast<ProtoTracer*>(aClosure);
|
||||
@ -557,7 +557,7 @@ nsXBLDocumentInfo::GetPrototypeBinding(const nsACString& aRef, nsXBLPrototypeBin
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
static PRBool PR_CALLBACK
|
||||
static PRBool
|
||||
DeletePrototypeBinding(nsHashKey* aKey, void* aData, void* aClosure)
|
||||
{
|
||||
nsXBLPrototypeBinding* binding = static_cast<nsXBLPrototypeBinding*>(aData);
|
||||
@ -592,7 +592,7 @@ nsXBLDocumentInfo::SetFirstPrototypeBinding(nsXBLPrototypeBinding* aBinding)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
PRBool PR_CALLBACK FlushScopedSkinSheets(nsHashKey* aKey, void* aData, void* aClosure)
|
||||
PRBool FlushScopedSkinSheets(nsHashKey* aKey, void* aData, void* aClosure)
|
||||
{
|
||||
nsXBLPrototypeBinding* proto = (nsXBLPrototypeBinding*)aData;
|
||||
proto->FlushSkinSheets();
|
||||
|
@ -332,7 +332,7 @@ nsXBLPrototypeBinding::Init(const nsACString& aID,
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(PRIntn)
|
||||
static PRIntn
|
||||
TraverseInsertionPoint(nsHashKey* aKey, void* aData, void* aClosure)
|
||||
{
|
||||
nsCycleCollectionTraversalCallback &cb =
|
||||
@ -345,7 +345,7 @@ TraverseInsertionPoint(nsHashKey* aKey, void* aData, void* aClosure)
|
||||
return kHashEnumerateNext;
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(PRBool)
|
||||
static PRBool
|
||||
TraverseBinding(nsHashKey *aKey, void *aData, void* aClosure)
|
||||
{
|
||||
nsCycleCollectionTraversalCallback *cb =
|
||||
@ -646,7 +646,7 @@ struct InsertionData {
|
||||
:mBinding(aBinding), mPrototype(aPrototype) {}
|
||||
};
|
||||
|
||||
PRBool PR_CALLBACK InstantiateInsertionPoint(nsHashKey* aKey, void* aData, void* aClosure)
|
||||
PRBool InstantiateInsertionPoint(nsHashKey* aKey, void* aData, void* aClosure)
|
||||
{
|
||||
nsXBLInsertionPointEntry* entry = static_cast<nsXBLInsertionPointEntry*>(aData);
|
||||
InsertionData* data = static_cast<InsertionData*>(aClosure);
|
||||
@ -946,7 +946,7 @@ struct nsXBLAttrChangeData
|
||||
};
|
||||
|
||||
// XXXbz this duplicates lots of AttributeChanged
|
||||
PRBool PR_CALLBACK SetAttrs(nsHashKey* aKey, void* aData, void* aClosure)
|
||||
PRBool SetAttrs(nsHashKey* aKey, void* aData, void* aClosure)
|
||||
{
|
||||
nsXBLAttributeEntry* entry = static_cast<nsXBLAttributeEntry*>(aData);
|
||||
nsXBLAttrChangeData* changeData = static_cast<nsXBLAttrChangeData*>(aClosure);
|
||||
@ -1012,7 +1012,7 @@ PRBool PR_CALLBACK SetAttrs(nsHashKey* aKey, void* aData, void* aClosure)
|
||||
return PR_TRUE;
|
||||
}
|
||||
|
||||
PRBool PR_CALLBACK SetAttrsNS(nsHashKey* aKey, void* aData, void* aClosure)
|
||||
PRBool SetAttrsNS(nsHashKey* aKey, void* aData, void* aClosure)
|
||||
{
|
||||
if (aData && aClosure) {
|
||||
nsPRUint32Key * key = static_cast<nsPRUint32Key*>(aKey);
|
||||
@ -1072,14 +1072,14 @@ nsXBLPrototypeBinding::ShouldBuildChildFrames() const
|
||||
return PR_TRUE;
|
||||
}
|
||||
|
||||
static PRBool PR_CALLBACK
|
||||
static PRBool
|
||||
DeleteAttributeEntry(nsHashKey* aKey, void* aData, void* aClosure)
|
||||
{
|
||||
nsXBLAttributeEntry::Destroy(static_cast<nsXBLAttributeEntry*>(aData));
|
||||
return PR_TRUE;
|
||||
}
|
||||
|
||||
static PRBool PR_CALLBACK
|
||||
static PRBool
|
||||
DeleteAttributeTable(nsHashKey* aKey, void* aData, void* aClosure)
|
||||
{
|
||||
delete static_cast<nsObjectHashtable*>(aData);
|
||||
@ -1203,7 +1203,7 @@ nsXBLPrototypeBinding::ConstructAttributeTable(nsIContent* aElement)
|
||||
}
|
||||
}
|
||||
|
||||
static PRBool PR_CALLBACK
|
||||
static PRBool
|
||||
DeleteInsertionPointEntry(nsHashKey* aKey, void* aData, void* aClosure)
|
||||
{
|
||||
static_cast<nsXBLInsertionPointEntry*>(aData)->Release();
|
||||
|
@ -158,42 +158,42 @@ txParseFromStream(istream& aInputStream, const nsAString& aUri,
|
||||
} \
|
||||
PR_END_MACRO
|
||||
|
||||
PR_STATIC_CALLBACK(void)
|
||||
static void
|
||||
startElement(void *aUserData, const XML_Char *aName, const XML_Char **aAtts)
|
||||
{
|
||||
TX_ENSURE_DATA(aUserData);
|
||||
TX_XMLPARSER(aUserData)->StartElement(aName, aAtts);
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(void)
|
||||
static void
|
||||
endElement(void *aUserData, const XML_Char* aName)
|
||||
{
|
||||
TX_ENSURE_DATA(aUserData);
|
||||
TX_XMLPARSER(aUserData)->EndElement(aName);
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(void)
|
||||
static void
|
||||
charData(void* aUserData, const XML_Char* aChars, int aLength)
|
||||
{
|
||||
TX_ENSURE_DATA(aUserData);
|
||||
TX_XMLPARSER(aUserData)->CharacterData(aChars, aLength);
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(void)
|
||||
static void
|
||||
commentHandler(void* aUserData, const XML_Char* aChars)
|
||||
{
|
||||
TX_ENSURE_DATA(aUserData);
|
||||
TX_XMLPARSER(aUserData)->Comment(aChars);
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(void)
|
||||
static void
|
||||
piHandler(void *aUserData, const XML_Char *aTarget, const XML_Char *aData)
|
||||
{
|
||||
TX_ENSURE_DATA(aUserData);
|
||||
TX_XMLPARSER(aUserData)->ProcessingInstruction(aTarget, aData);
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(int)
|
||||
static int
|
||||
externalEntityRefHandler(XML_Parser aParser,
|
||||
const XML_Char *aContext,
|
||||
const XML_Char *aBase,
|
||||
|
@ -343,7 +343,7 @@ txBufferingHandler::startElement(nsIAtom* aPrefix,
|
||||
return mBuffer->addTransaction(transaction);
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(PRBool)
|
||||
static PRBool
|
||||
deleteTransaction(void* aElement, void *aData)
|
||||
{
|
||||
delete static_cast<txOutputTransaction*>(aElement);
|
||||
@ -371,7 +371,7 @@ struct Holder
|
||||
nsAFlatString::const_char_iterator mIter;
|
||||
};
|
||||
|
||||
PR_STATIC_CALLBACK(PRBool)
|
||||
static PRBool
|
||||
flushTransaction(void* aElement, void *aData)
|
||||
{
|
||||
Holder* holder = static_cast<Holder*>(aData);
|
||||
|
@ -119,7 +119,7 @@ TX_CompileStylesheetPath(const txParsedURL& aURL, txStylesheet** aResult)
|
||||
// shortcut macro for redirection into txDriver method calls
|
||||
#define TX_DRIVER(_userData) static_cast<txDriver*>(_userData)
|
||||
|
||||
PR_STATIC_CALLBACK(void)
|
||||
static void
|
||||
startElement(void *aUserData, const XML_Char *aName, const XML_Char **aAtts)
|
||||
{
|
||||
if (!aUserData) {
|
||||
@ -129,7 +129,7 @@ startElement(void *aUserData, const XML_Char *aName, const XML_Char **aAtts)
|
||||
TX_DRIVER(aUserData)->StartElement(aName, aAtts);
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(void)
|
||||
static void
|
||||
endElement(void *aUserData, const XML_Char* aName)
|
||||
{
|
||||
if (!aUserData) {
|
||||
@ -139,7 +139,7 @@ endElement(void *aUserData, const XML_Char* aName)
|
||||
TX_DRIVER(aUserData)->EndElement(aName);
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(void)
|
||||
static void
|
||||
charData(void* aUserData, const XML_Char* aChars, int aLength)
|
||||
{
|
||||
if (!aUserData) {
|
||||
@ -149,7 +149,7 @@ charData(void* aUserData, const XML_Char* aChars, int aLength)
|
||||
TX_DRIVER(aUserData)->CharacterData(aChars, aLength);
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(int)
|
||||
static int
|
||||
externalEntityRefHandler(XML_Parser aParser,
|
||||
const XML_Char *aContext,
|
||||
const XML_Char *aBase,
|
||||
|
@ -306,7 +306,7 @@ NS_NewXULDocument(nsIXULDocument** result)
|
||||
|
||||
NS_IMPL_CYCLE_COLLECTION_CLASS(nsXULDocument)
|
||||
|
||||
static PLDHashOperator PR_CALLBACK
|
||||
static PLDHashOperator
|
||||
TraverseTemplateBuilders(nsISupports* aKey, nsIXULTemplateBuilder* aData,
|
||||
void* aContext)
|
||||
{
|
||||
@ -321,7 +321,7 @@ TraverseTemplateBuilders(nsISupports* aKey, nsIXULTemplateBuilder* aData,
|
||||
return PL_DHASH_NEXT;
|
||||
}
|
||||
|
||||
static PLDHashOperator PR_CALLBACK
|
||||
static PLDHashOperator
|
||||
TraverseObservers(nsIURI* aKey, nsIObserver* aData, void* aContext)
|
||||
{
|
||||
nsCycleCollectionTraversalCallback *cb =
|
||||
@ -647,7 +647,7 @@ nsXULDocument::OnDocumentParserError()
|
||||
return PR_TRUE;
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(void)
|
||||
static void
|
||||
ClearBroadcasterMapEntry(PLDHashTable* aTable, PLDHashEntryHdr* aEntry)
|
||||
{
|
||||
BroadcasterMapEntry* entry =
|
||||
@ -2791,7 +2791,7 @@ nsXULDocument::LoadOverlayInternal(nsIURI* aURI, PRBool aIsDynamic,
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(PLDHashOperator)
|
||||
static PLDHashOperator
|
||||
FirePendingMergeNotification(nsIURI* aKey, nsCOMPtr<nsIObserver>& aObserver, void* aClosure)
|
||||
{
|
||||
aObserver->Observe(aKey, "xul-overlay-merged", EmptyString().get());
|
||||
|
@ -71,7 +71,7 @@ static const char kDisableXULCachePref[] = "nglayout.debug.disable_xul_cache";
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
PR_STATIC_CALLBACK(int)
|
||||
static int
|
||||
DisableXULCacheChangedCallback(const char* aPref, void* aClosure)
|
||||
{
|
||||
gDisableXULCache =
|
||||
@ -270,7 +270,7 @@ nsXULPrototypeCache::GetScript(nsIURI* aURI, PRUint32 *aLangID)
|
||||
|
||||
|
||||
/* static */
|
||||
PR_STATIC_CALLBACK(PLDHashOperator)
|
||||
static PLDHashOperator
|
||||
ReleaseScriptObjectCallback(nsIURI* aKey, CacheScriptEntry &aData, void* aClosure)
|
||||
{
|
||||
nsCOMPtr<nsIScriptRuntime> rt;
|
||||
@ -328,7 +328,7 @@ nsXULPrototypeCache::PutXBLDocumentInfo(nsIXBLDocumentInfo* aDocumentInfo)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(PLDHashOperator)
|
||||
static PLDHashOperator
|
||||
FlushSkinXBL(nsIURI* aKey, nsCOMPtr<nsIXBLDocumentInfo>& aDocInfo, void* aClosure)
|
||||
{
|
||||
nsCAutoString str;
|
||||
@ -343,7 +343,7 @@ FlushSkinXBL(nsIURI* aKey, nsCOMPtr<nsIXBLDocumentInfo>& aDocInfo, void* aClosur
|
||||
return ret;
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(PLDHashOperator)
|
||||
static PLDHashOperator
|
||||
FlushSkinSheets(nsIURI* aKey, nsCOMPtr<nsICSSStyleSheet>& aSheet, void* aClosure)
|
||||
{
|
||||
nsCOMPtr<nsIURI> uri;
|
||||
@ -360,7 +360,7 @@ FlushSkinSheets(nsIURI* aKey, nsCOMPtr<nsICSSStyleSheet>& aSheet, void* aClosure
|
||||
return ret;
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(PLDHashOperator)
|
||||
static PLDHashOperator
|
||||
FlushScopedSkinStylesheets(nsIURI* aKey, nsCOMPtr<nsIXBLDocumentInfo> &aDocInfo, void* aClosure)
|
||||
{
|
||||
aDocInfo->FlushSkinStylesheets();
|
||||
@ -581,7 +581,7 @@ nsXULPrototypeCache::StartFastLoadingURI(nsIURI* aURI, PRInt32 aDirectionFlags)
|
||||
return gFastLoadService->StartMuxedDocument(aURI, urlspec.get(), aDirectionFlags);
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(int)
|
||||
static int
|
||||
FastLoadPrefChangedCallback(const char* aPref, void* aClosure)
|
||||
{
|
||||
PRBool wasEnabled = !gDisableXULFastLoad;
|
||||
|
@ -115,7 +115,7 @@ nsXULPDGlobalObject* nsXULPrototypeDocument::gSystemGlobal;
|
||||
PRUint32 nsXULPrototypeDocument::gRefCnt;
|
||||
|
||||
|
||||
void PR_CALLBACK
|
||||
void
|
||||
nsXULPDGlobalObject_finalize(JSContext *cx, JSObject *obj)
|
||||
{
|
||||
nsISupports *nativeThis = (nsISupports*)JS_GetPrivate(cx, obj);
|
||||
@ -131,7 +131,7 @@ nsXULPDGlobalObject_finalize(JSContext *cx, JSObject *obj)
|
||||
}
|
||||
|
||||
|
||||
JSBool PR_CALLBACK
|
||||
JSBool
|
||||
nsXULPDGlobalObject_resolve(JSContext *cx, JSObject *obj, jsval id)
|
||||
{
|
||||
JSBool did_resolve = JS_FALSE;
|
||||
|
@ -71,7 +71,7 @@ protected:
|
||||
|
||||
static PRBool gDisableXULCache;
|
||||
|
||||
static int PR_CALLBACK
|
||||
static int
|
||||
DisableXULCacheChangedCallback(const char* aPrefName, void* aClosure);
|
||||
|
||||
public:
|
||||
|
@ -223,7 +223,7 @@ XULSortServiceImpl::GetTemplateItemsToSort(nsIContent* aContainer,
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
int PR_CALLBACK
|
||||
int
|
||||
testSortCallback(const void *data1, const void *data2, void *privateData)
|
||||
{
|
||||
/// Note: testSortCallback is a small C callback stub for NS_QuickSort
|
||||
|
@ -88,7 +88,7 @@ nsIRDFResource* nsXULTemplateQueryProcessorRDF::kRDF_type;
|
||||
NS_IMPL_CYCLE_COLLECTION_CLASS(nsXULTemplateQueryProcessorRDF)
|
||||
NS_IMPL_CYCLE_COLLECTION_UNLINK_0(nsXULTemplateQueryProcessorRDF)
|
||||
|
||||
PR_STATIC_CALLBACK(PLDHashOperator)
|
||||
static PLDHashOperator
|
||||
BindingDependenciesTraverser(nsISupports* key,
|
||||
nsCOMArray<nsXULTemplateResultRDF>* array,
|
||||
void* userArg)
|
||||
@ -104,7 +104,7 @@ BindingDependenciesTraverser(nsISupports* key,
|
||||
return PL_DHASH_NEXT;
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(PLDHashOperator)
|
||||
static PLDHashOperator
|
||||
MemoryElementTraverser(const PRUint32& key,
|
||||
nsCOMArray<nsXULTemplateResultRDF>* array,
|
||||
void* userArg)
|
||||
@ -120,7 +120,7 @@ MemoryElementTraverser(const PRUint32& key,
|
||||
return PL_DHASH_NEXT;
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(PLDHashOperator)
|
||||
static PLDHashOperator
|
||||
RuleToBindingTraverser(nsISupports* key, RDFBindingSet* binding, void* userArg)
|
||||
{
|
||||
nsCycleCollectionTraversalCallback *cb =
|
||||
|
@ -179,7 +179,7 @@ protected:
|
||||
/**
|
||||
* A sorting callback for NS_QuickSort().
|
||||
*/
|
||||
static int PR_CALLBACK
|
||||
static int
|
||||
Compare(const void* aLeft, const void* aRight, void* aClosure);
|
||||
|
||||
/**
|
||||
|
@ -145,7 +145,7 @@ nsMorkReader::Init()
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(PLDHashOperator)
|
||||
static PLDHashOperator
|
||||
DeleteStringArray(const nsCSubstring& aKey,
|
||||
nsTArray<nsCString> *aData,
|
||||
void *aUserArg)
|
||||
@ -170,7 +170,7 @@ struct AddColumnClosure
|
||||
nsresult result;
|
||||
};
|
||||
|
||||
PR_STATIC_CALLBACK(PLDHashOperator)
|
||||
static PLDHashOperator
|
||||
AddColumn(const nsCSubstring &id, nsCString name, void *userData)
|
||||
{
|
||||
AddColumnClosure *closure = static_cast<AddColumnClosure*>(userData);
|
||||
|
@ -128,9 +128,9 @@ class NS_STACK_CLASS nsMorkReader
|
||||
// The callback can return PL_DHASH_NEXT to continue enumerating,
|
||||
// or PL_DHASH_STOP to stop.
|
||||
typedef PLDHashOperator
|
||||
(*PR_CALLBACK RowEnumerator)(const nsCSubstring &rowID,
|
||||
const nsTArray<nsCString> *values,
|
||||
void *userData);
|
||||
(* RowEnumerator)(const nsCSubstring &rowID,
|
||||
const nsTArray<nsCString> *values,
|
||||
void *userData);
|
||||
|
||||
// Initialize the importer object's data structures
|
||||
nsresult Init();
|
||||
|
@ -634,7 +634,7 @@ nsWebShell::GetInterface(const nsIID &aIID, void** aInstancePtr)
|
||||
return nsDocShell::GetInterface(aIID, aInstancePtr);
|
||||
}
|
||||
|
||||
nsEventStatus PR_CALLBACK
|
||||
nsEventStatus
|
||||
nsWebShell::HandleEvent(nsGUIEvent *aEvent)
|
||||
{
|
||||
return nsEventStatus_eIgnore;
|
||||
|
@ -100,7 +100,7 @@ public:
|
||||
|
||||
NS_IMETHOD Create();
|
||||
|
||||
static nsEventStatus PR_CALLBACK HandleEvent(nsGUIEvent *aEvent);
|
||||
static nsEventStatus HandleEvent(nsGUIEvent *aEvent);
|
||||
|
||||
// NS_IMETHOD SetURL(const PRUnichar* aURL);
|
||||
|
||||
|
@ -76,7 +76,7 @@ static PRBool gInitialized = PR_FALSE;
|
||||
|
||||
// The one time initialization for this module
|
||||
// static
|
||||
PR_STATIC_CALLBACK(nsresult)
|
||||
static nsresult
|
||||
Initialize(nsIModule* aSelf)
|
||||
{
|
||||
NS_PRECONDITION(!gInitialized, "docshell module already initialized");
|
||||
@ -92,7 +92,7 @@ Initialize(nsIModule* aSelf)
|
||||
return rv;
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(void)
|
||||
static void
|
||||
Shutdown(nsIModule* aSelf)
|
||||
{
|
||||
nsSHEntry::Shutdown();
|
||||
|
@ -139,7 +139,7 @@ nsSHEntry::nsSHEntry(const nsSHEntry &other)
|
||||
{
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(PRBool)
|
||||
static PRBool
|
||||
ClearParentPtr(nsISHEntry* aEntry, void* /* aData */)
|
||||
{
|
||||
if (aEntry) {
|
||||
|
@ -1067,7 +1067,7 @@ struct TraceData
|
||||
void* closure;
|
||||
};
|
||||
|
||||
PR_STATIC_CALLBACK(PLDHashOperator)
|
||||
static PLDHashOperator
|
||||
TraceXBLHandlers(const void* aKey, void* aData, void* aClosure)
|
||||
{
|
||||
TraceData* data = static_cast<TraceData*>(aClosure);
|
||||
@ -6932,7 +6932,7 @@ nsGlobalWindow::Observe(nsISupports* aSubject, const char* aTopic,
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(PLDHashOperator)
|
||||
static PLDHashOperator
|
||||
FirePendingStorageEvents(const nsAString& aKey, PRBool aData, void *userArg)
|
||||
{
|
||||
nsGlobalWindow *win = static_cast<nsGlobalWindow *>(userArg);
|
||||
|
@ -1135,7 +1135,7 @@ static const char js_zeal_option_str[] = JS_OPTIONS_DOT_STR "gczeal";
|
||||
static const char js_jit_content_str[] = JS_OPTIONS_DOT_STR "jit.content";
|
||||
static const char js_jit_chrome_str[] = JS_OPTIONS_DOT_STR "jit.chrome";
|
||||
|
||||
int PR_CALLBACK
|
||||
int
|
||||
nsJSContext::JSOptionChangedCallback(const char *pref, void *data)
|
||||
{
|
||||
nsJSContext *context = reinterpret_cast<nsJSContext *>(data);
|
||||
@ -3699,7 +3699,7 @@ nsJSRuntime::Startup()
|
||||
gCollation = nsnull;
|
||||
}
|
||||
|
||||
static int PR_CALLBACK
|
||||
static int
|
||||
MaxScriptRunTimePrefChangedCallback(const char *aPrefName, void *aClosure)
|
||||
{
|
||||
// Default limit on script run time to 10 seconds. 0 means let
|
||||
@ -3725,7 +3725,7 @@ MaxScriptRunTimePrefChangedCallback(const char *aPrefName, void *aClosure)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int PR_CALLBACK
|
||||
static int
|
||||
ReportAllJSExceptionsPrefChangedCallback(const char* aPrefName, void* aClosure)
|
||||
{
|
||||
PRBool reportAll = nsContentUtils::GetBoolPref(aPrefName, PR_FALSE);
|
||||
|
@ -292,7 +292,7 @@ private:
|
||||
|
||||
nsCOMPtr<nsISupports> mGlobalWrapperRef;
|
||||
|
||||
static int PR_CALLBACK JSOptionChangedCallback(const char *pref, void *data);
|
||||
static int JSOptionChangedCallback(const char *pref, void *data);
|
||||
|
||||
static JSBool DOMOperationCallback(JSContext *cx);
|
||||
};
|
||||
|
@ -68,7 +68,7 @@ public:
|
||||
};
|
||||
|
||||
|
||||
PR_STATIC_CALLBACK(PLDHashNumber)
|
||||
static PLDHashNumber
|
||||
GlobalNameHashHashKey(PLDHashTable *table, const void *key)
|
||||
{
|
||||
const nsAString *str = static_cast<const nsAString *>(key);
|
||||
@ -76,7 +76,7 @@ GlobalNameHashHashKey(PLDHashTable *table, const void *key)
|
||||
return HashString(*str);
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(PRBool)
|
||||
static PRBool
|
||||
GlobalNameHashMatchEntry(PLDHashTable *table, const PLDHashEntryHdr *entry,
|
||||
const void *key)
|
||||
{
|
||||
@ -87,7 +87,7 @@ GlobalNameHashMatchEntry(PLDHashTable *table, const PLDHashEntryHdr *entry,
|
||||
return str->Equals(e->mKey);
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(void)
|
||||
static void
|
||||
GlobalNameHashClearEntry(PLDHashTable *table, PLDHashEntryHdr *entry)
|
||||
{
|
||||
GlobalNameMapEntry *e = static_cast<GlobalNameMapEntry *>(entry);
|
||||
@ -116,7 +116,7 @@ GlobalNameHashClearEntry(PLDHashTable *table, PLDHashEntryHdr *entry)
|
||||
memset(&e->mGlobalName, 0, sizeof(nsGlobalNameStruct));
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(PRBool)
|
||||
static PRBool
|
||||
GlobalNameHashInitEntry(PLDHashTable *table, PLDHashEntryHdr *entry,
|
||||
const void *key)
|
||||
{
|
||||
@ -510,7 +510,7 @@ struct NameSetClosure {
|
||||
nsresult rv;
|
||||
};
|
||||
|
||||
PR_STATIC_CALLBACK(PLDHashOperator)
|
||||
static PLDHashOperator
|
||||
NameSetInitCallback(PLDHashTable *table, PLDHashEntryHdr *hdr,
|
||||
PRUint32 number, void *arg)
|
||||
{
|
||||
|
@ -228,7 +228,7 @@ nsDOMStorageManager::Shutdown()
|
||||
#endif
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(PLDHashOperator)
|
||||
static PLDHashOperator
|
||||
ClearStorage(nsDOMStorageEntry* aEntry, void* userArg)
|
||||
{
|
||||
aEntry->mStorage->ClearAll();
|
||||
@ -364,7 +364,7 @@ nsDOMStorageEntry::~nsDOMStorageEntry()
|
||||
{
|
||||
}
|
||||
|
||||
PLDHashOperator PR_CALLBACK
|
||||
PLDHashOperator
|
||||
SessionStorageTraverser(nsSessionStorageEntry* aEntry, void* userArg) {
|
||||
nsCycleCollectionTraversalCallback *cb =
|
||||
static_cast<nsCycleCollectionTraversalCallback*>(userArg);
|
||||
@ -510,7 +510,7 @@ private:
|
||||
ItemCounterState(); // Not to be implemented
|
||||
};
|
||||
|
||||
PR_STATIC_CALLBACK(PLDHashOperator)
|
||||
static PLDHashOperator
|
||||
ItemCounter(nsSessionStorageEntry* aEntry, void* userArg)
|
||||
{
|
||||
ItemCounterState *state = (ItemCounterState *)userArg;
|
||||
@ -558,7 +558,7 @@ private:
|
||||
IndexFinderData(); // Not to be implemented
|
||||
};
|
||||
|
||||
PR_STATIC_CALLBACK(PLDHashOperator)
|
||||
static PLDHashOperator
|
||||
IndexFinder(nsSessionStorageEntry* aEntry, void* userArg)
|
||||
{
|
||||
IndexFinderData *data = (IndexFinderData *)userArg;
|
||||
@ -931,7 +931,7 @@ nsDOMStorage::SetSecure(const nsAString& aKey, PRBool aSecure)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(PLDHashOperator)
|
||||
static PLDHashOperator
|
||||
ClearStorageItem(nsSessionStorageEntry* aEntry, void* userArg)
|
||||
{
|
||||
aEntry->mItem->SetValueInternal(EmptyString());
|
||||
@ -944,7 +944,7 @@ nsDOMStorage::ClearAll()
|
||||
mItems.EnumerateEntries(ClearStorageItem, nsnull);
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(PLDHashOperator)
|
||||
static PLDHashOperator
|
||||
CopyStorageItems(nsSessionStorageEntry* aEntry, void* userArg)
|
||||
{
|
||||
nsDOMStorage* newstorage = static_cast<nsDOMStorage*>(userArg);
|
||||
@ -984,7 +984,7 @@ struct KeysArrayBuilderStruct
|
||||
nsTArray<nsString> *keys;
|
||||
};
|
||||
|
||||
PR_STATIC_CALLBACK(PLDHashOperator)
|
||||
static PLDHashOperator
|
||||
KeysArrayBuilder(nsSessionStorageEntry* aEntry, void* userArg)
|
||||
{
|
||||
KeysArrayBuilderStruct *keystruct = (KeysArrayBuilderStruct *)userArg;
|
||||
|
@ -43,12 +43,12 @@
|
||||
|
||||
static PLHashTable *g_NodeLookupTable;
|
||||
|
||||
static PLHashNumber PR_CALLBACK HashFunction(const void *key)
|
||||
static PLHashNumber HashFunction(const void *key)
|
||||
{
|
||||
return (PRUint32) key;
|
||||
}
|
||||
|
||||
PRIntn PR_CALLBACK HashComparator(const void *v1, const void *v2)
|
||||
PRIntn HashComparator(const void *v1, const void *v2)
|
||||
{
|
||||
if (v1 == v2)
|
||||
{
|
||||
|
@ -376,7 +376,7 @@ nsScriptablePeer::ConvertVariants(VARIANT *aIn, nsIVariant **aOut)
|
||||
if (hlib)
|
||||
{
|
||||
nsIComponentManager *pManager = nsnull; // A frozen interface, even in 1.0.x
|
||||
typedef nsresult (PR_CALLBACK *Moz1XGetComponentManagerFunc)(nsIComponentManager* *result);
|
||||
typedef nsresult (*Moz1XGetComponentManagerFunc)(nsIComponentManager* *result);
|
||||
Moz1XGetComponentManagerFunc compMgr = (Moz1XGetComponentManagerFunc)
|
||||
::GetProcAddress(hlib, "NS_GetComponentManager");
|
||||
if (compMgr)
|
||||
|
@ -94,7 +94,7 @@
|
||||
|
||||
#ifdef _BUILD_STATIC_BIN
|
||||
#include "nsStaticComponent.h"
|
||||
nsresult PR_CALLBACK
|
||||
nsresult
|
||||
ph_getModuleInfo(nsStaticModuleInfo **info, PRUint32 *count);
|
||||
#endif
|
||||
|
||||
|
@ -123,7 +123,7 @@ nsWebBrowser::~nsWebBrowser()
|
||||
InternalDestroy();
|
||||
}
|
||||
|
||||
PRBool PR_CALLBACK deleteListener(void *aElement, void *aData) {
|
||||
PRBool deleteListener(void *aElement, void *aData) {
|
||||
nsWebBrowserListenerState *state = (nsWebBrowserListenerState*)aElement;
|
||||
NS_DELETEXPCOM(state);
|
||||
return PR_TRUE;
|
||||
@ -1647,7 +1647,7 @@ NS_IMETHODIMP nsWebBrowser::EnsureDocShellTreeOwner()
|
||||
}
|
||||
|
||||
/* static */
|
||||
nsEventStatus PR_CALLBACK nsWebBrowser::HandleEvent(nsGUIEvent *aEvent)
|
||||
nsEventStatus nsWebBrowser::HandleEvent(nsGUIEvent *aEvent)
|
||||
{
|
||||
nsWebBrowser *browser = nsnull;
|
||||
void *data = nsnull;
|
||||
|
@ -151,7 +151,7 @@ protected:
|
||||
NS_IMETHOD UnBindListener(nsISupports *aListener, const nsIID& aIID);
|
||||
NS_IMETHOD EnableGlobalHistory(PRBool aEnable);
|
||||
|
||||
static nsEventStatus PR_CALLBACK HandleEvent(nsGUIEvent *aEvent);
|
||||
static nsEventStatus HandleEvent(nsGUIEvent *aEvent);
|
||||
|
||||
protected:
|
||||
nsDocShellTreeOwner* mDocShellTreeOwner;
|
||||
|
@ -59,7 +59,7 @@ public:
|
||||
|
||||
protected:
|
||||
|
||||
static PRBool PR_CALLBACK HashEnum(nsHashKey *aKey, void *aData, void* aClosure);
|
||||
static PRBool HashEnum(nsHashKey *aKey, void *aData, void* aClosure);
|
||||
|
||||
nsresult Initialize();
|
||||
|
||||
|
@ -70,7 +70,7 @@ protected:
|
||||
|
||||
protected:
|
||||
|
||||
static PRBool PR_CALLBACK ClearEnumerator(nsHashKey *aKey, void *aData, void* closure);
|
||||
static PRBool ClearEnumerator(nsHashKey *aKey, void *aData, void* closure);
|
||||
|
||||
protected:
|
||||
|
||||
|
@ -70,7 +70,7 @@ nsCommandManager::~nsCommandManager()
|
||||
}
|
||||
|
||||
|
||||
PR_STATIC_CALLBACK(PLDHashOperator)
|
||||
static PLDHashOperator
|
||||
TraverseCommandObservers(const char* aKey, nsCOMArray<nsIObserver>* aObservers,
|
||||
void* aClosure)
|
||||
{
|
||||
|
@ -151,15 +151,15 @@ protected:
|
||||
|
||||
protected:
|
||||
|
||||
static PLDHashNumber PR_CALLBACK HashKey(PLDHashTable *table, const void *key);
|
||||
static PLDHashNumber HashKey(PLDHashTable *table, const void *key);
|
||||
|
||||
static PRBool PR_CALLBACK HashMatchEntry(PLDHashTable *table,
|
||||
const PLDHashEntryHdr *entry, const void *key);
|
||||
static PRBool HashMatchEntry(PLDHashTable *table,
|
||||
const PLDHashEntryHdr *entry, const void *key);
|
||||
|
||||
static void PR_CALLBACK HashMoveEntry(PLDHashTable *table, const PLDHashEntryHdr *from,
|
||||
PLDHashEntryHdr *to);
|
||||
static void HashMoveEntry(PLDHashTable *table, const PLDHashEntryHdr *from,
|
||||
PLDHashEntryHdr *to);
|
||||
|
||||
static void PR_CALLBACK HashClearEntry(PLDHashTable *table, PLDHashEntryHdr *entry);
|
||||
static void HashClearEntry(PLDHashTable *table, PLDHashEntryHdr *entry);
|
||||
|
||||
|
||||
protected:
|
||||
|
@ -2404,7 +2404,7 @@ nsWebBrowserPersist::FixRedirectedChannelEntry(nsIChannel *aNewChannel)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
PRBool PR_CALLBACK
|
||||
PRBool
|
||||
nsWebBrowserPersist::EnumFixRedirect(nsHashKey *aKey, void *aData, void* closure)
|
||||
{
|
||||
FixRedirectData *data = (FixRedirectData *) closure;
|
||||
@ -2456,7 +2456,7 @@ nsWebBrowserPersist::CalcTotalProgress()
|
||||
}
|
||||
}
|
||||
|
||||
PRBool PR_CALLBACK
|
||||
PRBool
|
||||
nsWebBrowserPersist::EnumCalcProgress(nsHashKey *aKey, void *aData, void* closure)
|
||||
{
|
||||
nsWebBrowserPersist *pthis = (nsWebBrowserPersist *) closure;
|
||||
@ -2472,7 +2472,7 @@ nsWebBrowserPersist::EnumCalcProgress(nsHashKey *aKey, void *aData, void* closur
|
||||
return PR_TRUE;
|
||||
}
|
||||
|
||||
PRBool PR_CALLBACK
|
||||
PRBool
|
||||
nsWebBrowserPersist::EnumCalcUploadProgress(nsHashKey *aKey, void *aData, void* closure)
|
||||
{
|
||||
if (aData && closure)
|
||||
@ -2485,7 +2485,7 @@ nsWebBrowserPersist::EnumCalcUploadProgress(nsHashKey *aKey, void *aData, void*
|
||||
return PR_TRUE;
|
||||
}
|
||||
|
||||
PRBool PR_CALLBACK
|
||||
PRBool
|
||||
nsWebBrowserPersist::EnumCountURIsToPersist(nsHashKey *aKey, void *aData, void* closure)
|
||||
{
|
||||
URIData *data = (URIData *) aData;
|
||||
@ -2497,7 +2497,7 @@ nsWebBrowserPersist::EnumCountURIsToPersist(nsHashKey *aKey, void *aData, void*
|
||||
return PR_TRUE;
|
||||
}
|
||||
|
||||
PRBool PR_CALLBACK
|
||||
PRBool
|
||||
nsWebBrowserPersist::EnumPersistURIs(nsHashKey *aKey, void *aData, void* closure)
|
||||
{
|
||||
URIData *data = (URIData *) aData;
|
||||
@ -2548,7 +2548,7 @@ nsWebBrowserPersist::EnumPersistURIs(nsHashKey *aKey, void *aData, void* closure
|
||||
return PR_TRUE;
|
||||
}
|
||||
|
||||
PRBool PR_CALLBACK
|
||||
PRBool
|
||||
nsWebBrowserPersist::EnumCleanupOutputMap(nsHashKey *aKey, void *aData, void* closure)
|
||||
{
|
||||
nsCOMPtr<nsISupports> keyPtr;
|
||||
@ -2567,7 +2567,7 @@ nsWebBrowserPersist::EnumCleanupOutputMap(nsHashKey *aKey, void *aData, void* cl
|
||||
}
|
||||
|
||||
|
||||
PRBool PR_CALLBACK
|
||||
PRBool
|
||||
nsWebBrowserPersist::EnumCleanupURIMap(nsHashKey *aKey, void *aData, void* closure)
|
||||
{
|
||||
URIData *data = (URIData *) aData;
|
||||
@ -2579,7 +2579,7 @@ nsWebBrowserPersist::EnumCleanupURIMap(nsHashKey *aKey, void *aData, void* closu
|
||||
}
|
||||
|
||||
|
||||
PRBool PR_CALLBACK
|
||||
PRBool
|
||||
nsWebBrowserPersist::EnumCleanupUploadList(nsHashKey *aKey, void *aData, void* closure)
|
||||
{
|
||||
nsCOMPtr<nsISupports> keyPtr;
|
||||
|
@ -186,21 +186,21 @@ private:
|
||||
void SetApplyConversionIfNeeded(nsIChannel *aChannel);
|
||||
|
||||
// Hash table enumerators
|
||||
static PRBool PR_CALLBACK EnumPersistURIs(
|
||||
static PRBool EnumPersistURIs(
|
||||
nsHashKey *aKey, void *aData, void* closure);
|
||||
static PRBool PR_CALLBACK EnumCleanupURIMap(
|
||||
static PRBool EnumCleanupURIMap(
|
||||
nsHashKey *aKey, void *aData, void* closure);
|
||||
static PRBool PR_CALLBACK EnumCleanupOutputMap(
|
||||
static PRBool EnumCleanupOutputMap(
|
||||
nsHashKey *aKey, void *aData, void* closure);
|
||||
static PRBool PR_CALLBACK EnumCleanupUploadList(
|
||||
static PRBool EnumCleanupUploadList(
|
||||
nsHashKey *aKey, void *aData, void* closure);
|
||||
static PRBool PR_CALLBACK EnumCalcProgress(
|
||||
static PRBool EnumCalcProgress(
|
||||
nsHashKey *aKey, void *aData, void* closure);
|
||||
static PRBool PR_CALLBACK EnumCalcUploadProgress(
|
||||
static PRBool EnumCalcUploadProgress(
|
||||
nsHashKey *aKey, void *aData, void* closure);
|
||||
static PRBool PR_CALLBACK EnumFixRedirect(
|
||||
static PRBool EnumFixRedirect(
|
||||
nsHashKey *aKey, void *aData, void* closure);
|
||||
static PRBool PR_CALLBACK EnumCountURIsToPersist(
|
||||
static PRBool EnumCountURIsToPersist(
|
||||
nsHashKey *aKey, void *aData, void* closure);
|
||||
|
||||
nsCOMPtr<nsIURI> mCurrentDataPath;
|
||||
|
@ -73,7 +73,7 @@ static NS_METHOD nsAccessProxyRegistrationProc(nsIComponentManager *aCompMgr,
|
||||
|
||||
NS_GENERIC_FACTORY_SINGLETON_CONSTRUCTOR(nsAccessProxy,nsAccessProxy::GetInstance)
|
||||
|
||||
static void PR_CALLBACK AccessProxyModuleDtor(nsIModule* self)
|
||||
static void AccessProxyModuleDtor(nsIModule* self)
|
||||
{
|
||||
nsAccessProxy::ReleaseInstance();
|
||||
}
|
||||
|
@ -260,7 +260,7 @@ static nsModuleComponentInfo components[] = {
|
||||
PRLogModuleInfo *gNegotiateLog;
|
||||
|
||||
// setup nspr logging ...
|
||||
PR_STATIC_CALLBACK(nsresult)
|
||||
static nsresult
|
||||
InitNegotiateAuth(nsIModule *self)
|
||||
{
|
||||
gNegotiateLog = PR_NewLogModule("negotiateauth");
|
||||
@ -270,7 +270,7 @@ InitNegotiateAuth(nsIModule *self)
|
||||
#define InitNegotiateAuth nsnull
|
||||
#endif
|
||||
|
||||
PR_STATIC_CALLBACK(void)
|
||||
static void
|
||||
DestroyNegotiateAuth(nsIModule *self)
|
||||
{
|
||||
nsAuthGSSAPI::Shutdown();
|
||||
|
@ -546,7 +546,7 @@ struct nsGetEnumeratorData
|
||||
const nsTArray<nsCString> *types;
|
||||
};
|
||||
|
||||
PR_STATIC_CALLBACK(PLDHashOperator)
|
||||
static PLDHashOperator
|
||||
AddPermissionsToList(nsHostEntry *entry, void *arg)
|
||||
{
|
||||
nsGetEnumeratorData *data = static_cast<nsGetEnumeratorData *>(arg);
|
||||
|
@ -450,7 +450,7 @@ nsLoadCollector::OnAttach()
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
/* static */ PLDHashOperator PR_CALLBACK
|
||||
/* static */ PLDHashOperator
|
||||
nsLoadCollector::RemoveDocumentFromMap(const nsIDocument *document,
|
||||
DocumentEntry &entry, void *userData)
|
||||
{
|
||||
|
@ -102,7 +102,7 @@ class nsLoadCollector : public nsIMetricsCollector,
|
||||
~nsLoadCollector();
|
||||
|
||||
// Callback for removing a document observer and map entry
|
||||
static PLDHashOperator PR_CALLBACK
|
||||
static PLDHashOperator
|
||||
RemoveDocumentFromMap(const nsIDocument *document,
|
||||
DocumentEntry &entry, void *userData);
|
||||
|
||||
|
@ -414,7 +414,7 @@ nsMetricsConfig::ClearEvents()
|
||||
mEventSet.Clear();
|
||||
}
|
||||
|
||||
/* static */ PLDHashOperator PR_CALLBACK
|
||||
/* static */ PLDHashOperator
|
||||
nsMetricsConfig::CopyKey(nsStringHashKey *entry, void *userData)
|
||||
{
|
||||
static_cast<nsTArray<nsString> *>(userData)->
|
||||
|
@ -152,8 +152,7 @@ private:
|
||||
void ProcessConfigChild(nsIDOMElement *elem);
|
||||
void ProcessCollectorElement(nsIDOMElement *elem);
|
||||
|
||||
static PLDHashOperator PR_CALLBACK CopyKey(nsStringHashKey *key,
|
||||
void *userData);
|
||||
static PLDHashOperator CopyKey(nsStringHashKey *key, void *userData);
|
||||
|
||||
nsTHashtable<nsStringHashKey> mEventSet;
|
||||
nsDataHashtable<nsStringHashKey,nsString> mNSURIToPrefixMap;
|
||||
|
@ -204,7 +204,7 @@ nsMetricsService::nsMetricsService()
|
||||
sMetricsService = this;
|
||||
}
|
||||
|
||||
/* static */ PLDHashOperator PR_CALLBACK
|
||||
/* static */ PLDHashOperator
|
||||
nsMetricsService::DetachCollector(const nsAString &key,
|
||||
nsIMetricsCollector *value, void *userData)
|
||||
{
|
||||
@ -773,7 +773,7 @@ struct DisabledCollectorsClosure
|
||||
nsTArray< nsCOMPtr<nsIMetricsCollector> > disabledCollectors;
|
||||
};
|
||||
|
||||
/* static */ PLDHashOperator PR_CALLBACK
|
||||
/* static */ PLDHashOperator
|
||||
nsMetricsService::PruneDisabledCollectors(const nsAString &key,
|
||||
nsCOMPtr<nsIMetricsCollector> &value,
|
||||
void *userData)
|
||||
@ -797,7 +797,7 @@ nsMetricsService::PruneDisabledCollectors(const nsAString &key,
|
||||
return PL_DHASH_REMOVE;
|
||||
}
|
||||
|
||||
/* static */ PLDHashOperator PR_CALLBACK
|
||||
/* static */ PLDHashOperator
|
||||
nsMetricsService::NotifyNewLog(const nsAString &key,
|
||||
nsIMetricsCollector *value, void *userData)
|
||||
{
|
||||
|
@ -220,16 +220,16 @@ private:
|
||||
// Generates a random interval, in seconds, between 12 and 36 hours.
|
||||
PRInt32 GetRandomUploadInterval();
|
||||
|
||||
static PLDHashOperator PR_CALLBACK
|
||||
static PLDHashOperator
|
||||
PruneDisabledCollectors(const nsAString &key,
|
||||
nsCOMPtr<nsIMetricsCollector> &value,
|
||||
void *userData);
|
||||
|
||||
static PLDHashOperator PR_CALLBACK
|
||||
static PLDHashOperator
|
||||
DetachCollector(const nsAString &key,
|
||||
nsIMetricsCollector *value, void *userData);
|
||||
|
||||
static PLDHashOperator PR_CALLBACK
|
||||
static PLDHashOperator
|
||||
NotifyNewLog(const nsAString &key,
|
||||
nsIMetricsCollector *value, void *userData);
|
||||
|
||||
|
@ -60,7 +60,7 @@ NS_IMPL_ISUPPORTS3(nsUICommandCollector, nsIObserver, nsIDOMEventListener,
|
||||
nsIMetricsCollector)
|
||||
|
||||
/* static */
|
||||
PLDHashOperator PR_CALLBACK nsUICommandCollector::AddCommandEventListener(
|
||||
PLDHashOperator nsUICommandCollector::AddCommandEventListener(
|
||||
const nsIDOMWindow* key, PRUint32 windowID, void* userArg)
|
||||
{
|
||||
nsCOMPtr<nsIDOMEventTarget> windowTarget =
|
||||
@ -77,7 +77,7 @@ const nsIDOMWindow* key, PRUint32 windowID, void* userArg)
|
||||
}
|
||||
|
||||
/* static */
|
||||
PLDHashOperator PR_CALLBACK nsUICommandCollector::RemoveCommandEventListener(
|
||||
PLDHashOperator nsUICommandCollector::RemoveCommandEventListener(
|
||||
const nsIDOMWindow* key, PRUint32 windowID, void* userArg)
|
||||
{
|
||||
nsCOMPtr<nsIDOMEventTarget> windowTarget =
|
||||
|
@ -60,10 +60,10 @@ class nsUICommandCollector : public nsIObserver,
|
||||
NS_DECL_NSIDOMEVENTLISTENER
|
||||
NS_DECL_NSIMETRICSCOLLECTOR
|
||||
|
||||
static PLDHashOperator PR_CALLBACK AddCommandEventListener(
|
||||
static PLDHashOperator AddCommandEventListener(
|
||||
const nsIDOMWindow* key, PRUint32 windowID, void* userArg);
|
||||
|
||||
static PLDHashOperator PR_CALLBACK RemoveCommandEventListener(
|
||||
static PLDHashOperator RemoveCommandEventListener(
|
||||
const nsIDOMWindow* key, PRUint32 windowID, void* userArg);
|
||||
|
||||
nsUICommandCollector();
|
||||
|
@ -209,7 +209,7 @@ struct SysPrefCallbackData {
|
||||
PRUint32 prefAtom;
|
||||
};
|
||||
|
||||
PRBool PR_CALLBACK
|
||||
PRBool
|
||||
sysPrefDeleteObserver(void *aElement, void *aData) {
|
||||
SysPrefCallbackData *pElement =
|
||||
static_cast<SysPrefCallbackData *>(aElement);
|
||||
@ -586,7 +586,7 @@ static const PrefNamePair sPrefNameMapping[] = {
|
||||
{nsnull, nsnull},
|
||||
};
|
||||
|
||||
PRBool PR_CALLBACK
|
||||
PRBool
|
||||
gconfDeleteObserver(void *aElement, void *aData) {
|
||||
nsMemory::Free(aElement);
|
||||
return PR_TRUE;
|
||||
|
@ -155,7 +155,7 @@ NS_IMETHODIMP mozPersonalDictionary::Load()
|
||||
// A little helper function to add the key to the list.
|
||||
// This is not threadsafe, and only safe if the consumer does not
|
||||
// modify the list.
|
||||
PR_STATIC_CALLBACK(PLDHashOperator)
|
||||
static PLDHashOperator
|
||||
AddHostToStringArray(nsUniCharEntry *aEntry, void *aArg)
|
||||
{
|
||||
static_cast<nsStringArray*>(aArg)->AppendString(nsDependentString(aEntry->GetKey()));
|
||||
|
@ -70,7 +70,7 @@ DeviceContextImpl::DeviceContextImpl()
|
||||
#endif
|
||||
}
|
||||
|
||||
static PRBool PR_CALLBACK DeleteValue(nsHashKey* aKey, void* aValue, void* closure)
|
||||
static PRBool DeleteValue(nsHashKey* aKey, void* aValue, void* closure)
|
||||
{
|
||||
delete ((nsString*)aValue);
|
||||
return PR_TRUE;
|
||||
|
@ -137,13 +137,13 @@ static const nsModuleComponentInfo components[] =
|
||||
gfxImageFrameConstructor },
|
||||
};
|
||||
|
||||
PR_STATIC_CALLBACK(nsresult)
|
||||
static nsresult
|
||||
nsThebesGfxModuleCtor(nsIModule *self)
|
||||
{
|
||||
return gfxPlatform::Init();
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(void)
|
||||
static void
|
||||
nsThebesGfxModuleDtor(nsIModule *self)
|
||||
{
|
||||
nsThebesDeviceContext::Shutdown();
|
||||
|
@ -252,7 +252,7 @@ nsPoint *pointlist;
|
||||
* Main Handler
|
||||
*--------------------------------------------------------------------------------
|
||||
*/
|
||||
nsEventStatus PR_CALLBACK HandleEvent(nsGUIEvent *aEvent)
|
||||
nsEventStatus HandleEvent(nsGUIEvent *aEvent)
|
||||
{
|
||||
nsEventStatus result = nsEventStatus_eIgnore;
|
||||
|
||||
|
@ -123,29 +123,29 @@ private:
|
||||
const NEWTEXTMETRICEXW *nmetrics,
|
||||
DWORD fontType, LPARAM data);
|
||||
|
||||
static PLDHashOperator PR_CALLBACK FontGetStylesProc(nsStringHashKey::KeyType aKey,
|
||||
nsRefPtr<FontFamily>& aFontFamily,
|
||||
void* userArg);
|
||||
static PLDHashOperator FontGetStylesProc(nsStringHashKey::KeyType aKey,
|
||||
nsRefPtr<FontFamily>& aFontFamily,
|
||||
void* userArg);
|
||||
|
||||
static PLDHashOperator PR_CALLBACK FontGetCMapDataProc(nsStringHashKey::KeyType aKey,
|
||||
nsRefPtr<FontFamily>& aFontFamily,
|
||||
void* userArg);
|
||||
static PLDHashOperator FontGetCMapDataProc(nsStringHashKey::KeyType aKey,
|
||||
nsRefPtr<FontFamily>& aFontFamily,
|
||||
void* userArg);
|
||||
|
||||
static int CALLBACK FontResolveProc(const ENUMLOGFONTEXW *lpelfe,
|
||||
const NEWTEXTMETRICEXW *metrics,
|
||||
DWORD fontType, LPARAM data);
|
||||
|
||||
static PLDHashOperator PR_CALLBACK HashEnumFunc(nsStringHashKey::KeyType aKey,
|
||||
nsRefPtr<FontFamily>& aData,
|
||||
void* userArg);
|
||||
static PLDHashOperator HashEnumFunc(nsStringHashKey::KeyType aKey,
|
||||
nsRefPtr<FontFamily>& aData,
|
||||
void* userArg);
|
||||
|
||||
static PLDHashOperator PR_CALLBACK FindFontForCharProc(nsStringHashKey::KeyType aKey,
|
||||
nsRefPtr<FontFamily>& aFontFamily,
|
||||
void* userArg);
|
||||
static PLDHashOperator FindFontForCharProc(nsStringHashKey::KeyType aKey,
|
||||
nsRefPtr<FontFamily>& aFontFamily,
|
||||
void* userArg);
|
||||
|
||||
virtual cmsHPROFILE GetPlatformCMSOutputProfile();
|
||||
|
||||
static int PR_CALLBACK PrefChangedCallback(const char*, void*);
|
||||
static int PrefChangedCallback(const char*, void*);
|
||||
|
||||
// gfxFontInfoLoader overrides, used to load in font cmaps
|
||||
virtual void InitLoader();
|
||||
|
@ -230,9 +230,9 @@ public:
|
||||
gfxFontEntry* MakePlatformFont(const gfxFontEntry *aProxyEntry, const gfxDownloadedFontData* aFontData);
|
||||
|
||||
private:
|
||||
static PLDHashOperator PR_CALLBACK FindFontForCharProc(nsStringHashKey::KeyType aKey,
|
||||
nsRefPtr<MacOSFamilyEntry>& aFamilyEntry,
|
||||
void* userArg);
|
||||
static PLDHashOperator FindFontForCharProc(nsStringHashKey::KeyType aKey,
|
||||
nsRefPtr<MacOSFamilyEntry>& aFamilyEntry,
|
||||
void* userArg);
|
||||
|
||||
static gfxQuartzFontCache *sSharedFontCache;
|
||||
|
||||
@ -260,15 +260,15 @@ private:
|
||||
// explicitly set font traits for all faces to fixed-pitch
|
||||
void SetFixedPitch(const nsAString& aFamilyName);
|
||||
|
||||
static PLDHashOperator PR_CALLBACK InitOtherFamilyNamesProc(nsStringHashKey::KeyType aKey,
|
||||
nsRefPtr<MacOSFamilyEntry>& aFamilyEntry,
|
||||
void* userArg);
|
||||
static PLDHashOperator InitOtherFamilyNamesProc(nsStringHashKey::KeyType aKey,
|
||||
nsRefPtr<MacOSFamilyEntry>& aFamilyEntry,
|
||||
void* userArg);
|
||||
|
||||
void GenerateFontListKey(const nsAString& aKeyName, nsAString& aResult);
|
||||
static void ATSNotification(ATSFontNotificationInfoRef aInfo, void* aUserArg);
|
||||
static int PR_CALLBACK PrefChangedCallback(const char *aPrefName, void *closure);
|
||||
static int PrefChangedCallback(const char *aPrefName, void *closure);
|
||||
|
||||
static PLDHashOperator PR_CALLBACK
|
||||
static PLDHashOperator
|
||||
HashEnumFuncForFamilies(nsStringHashKey::KeyType aKey,
|
||||
nsRefPtr<MacOSFamilyEntry>& aFamilyEntry,
|
||||
void* aUserArg);
|
||||
|
@ -185,7 +185,7 @@ protected:
|
||||
nsTHashtable<CacheHashEntry> mCache;
|
||||
|
||||
#ifdef DEBUG
|
||||
static PLDHashOperator PR_CALLBACK CacheDumpEntry(CacheHashEntry* aEntry, void* userArg);
|
||||
static PLDHashOperator CacheDumpEntry(CacheHashEntry* aEntry, void* userArg);
|
||||
#endif
|
||||
};
|
||||
|
||||
@ -767,7 +767,7 @@ TextRunWordCache::CacheHashEntry::HashKey(const KeyTypePointer aKey)
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
PLDHashOperator PR_CALLBACK
|
||||
PLDHashOperator
|
||||
TextRunWordCache::CacheDumpEntry(CacheHashEntry* aEntry, void* userArg)
|
||||
{
|
||||
FILE* output = static_cast<FILE*>(userArg);
|
||||
|
@ -75,7 +75,7 @@ BuildKeyNameFromFontName(nsAString &aName)
|
||||
ToLowerCase(aName);
|
||||
}
|
||||
|
||||
int PR_CALLBACK
|
||||
int
|
||||
gfxWindowsPlatform::PrefChangedCallback(const char *aPrefName, void *closure)
|
||||
{
|
||||
// XXX this could be made to only clear out the cache for the prefs that were changed
|
||||
@ -154,7 +154,7 @@ struct FontListData {
|
||||
nsStringArray& mStringArray;
|
||||
};
|
||||
|
||||
PLDHashOperator PR_CALLBACK
|
||||
PLDHashOperator
|
||||
gfxWindowsPlatform::HashEnumFunc(nsStringHashKey::KeyType aKey,
|
||||
nsRefPtr<FontFamily>& aFontFamily,
|
||||
void* userArg)
|
||||
@ -284,9 +284,9 @@ struct FontFamilyListData {
|
||||
: mFamilyArray(aFamilyArray)
|
||||
{}
|
||||
|
||||
static PLDHashOperator PR_CALLBACK AppendFamily(nsStringHashKey::KeyType aKey,
|
||||
nsRefPtr<FontFamily>& aFamilyEntry,
|
||||
void *aUserArg)
|
||||
static PLDHashOperator AppendFamily(nsStringHashKey::KeyType aKey,
|
||||
nsRefPtr<FontFamily>& aFamilyEntry,
|
||||
void *aUserArg)
|
||||
{
|
||||
FontFamilyListData *data = (FontFamilyListData*)aUserArg;
|
||||
data->mFamilyArray.AppendElement(aFamilyEntry);
|
||||
@ -443,7 +443,7 @@ struct FontSearch {
|
||||
nsRefPtr<FontEntry> bestMatch;
|
||||
};
|
||||
|
||||
PLDHashOperator PR_CALLBACK
|
||||
PLDHashOperator
|
||||
gfxWindowsPlatform::FindFontForCharProc(nsStringHashKey::KeyType aKey,
|
||||
nsRefPtr<FontFamily>& aFontFamily,
|
||||
void* userArg)
|
||||
|
@ -75,10 +75,10 @@ protected:
|
||||
|
||||
NS_IMETHOD AddCategory(const nsAString& category, const nsAString& value);
|
||||
|
||||
static PLHashNumber PR_CALLBACK Hash_HashFunction(const void* key);
|
||||
static PRIntn PR_CALLBACK Hash_CompareNSString(const void* s1, const void* s2);
|
||||
static PRIntn PR_CALLBACK Hash_EnumerateDelete(PLHashEntry *he, PRIntn hashIndex, void *arg);
|
||||
static PRIntn PR_CALLBACK Hash_EnumerateCopy(PLHashEntry *he, PRIntn hashIndex, void *arg);
|
||||
static PLHashNumber Hash_HashFunction(const void* key);
|
||||
static PRIntn Hash_CompareNSString(const void* s1, const void* s2);
|
||||
static PRIntn Hash_EnumerateDelete(PLHashEntry *he, PRIntn hashIndex, void *arg);
|
||||
static PRIntn Hash_EnumerateCopy(PLHashEntry *he, PRIntn hashIndex, void *arg);
|
||||
|
||||
PLHashTable* fHashtable;
|
||||
PRUint32 fCategoryCount;
|
||||
|
@ -300,7 +300,7 @@ ConnWrite(ipcConnectionState *s)
|
||||
return rv;
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(void)
|
||||
static void
|
||||
ConnThread(void *arg)
|
||||
{
|
||||
PRInt32 num;
|
||||
|
@ -175,13 +175,13 @@ static const nsModuleComponentInfo components[] = {
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
PR_STATIC_CALLBACK(nsresult)
|
||||
static nsresult
|
||||
ipcdclient_init(nsIModule *module)
|
||||
{
|
||||
return IPC_Init();
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(void)
|
||||
static void
|
||||
ipcdclient_shutdown(nsIModule *module)
|
||||
{
|
||||
IPC_Shutdown();
|
||||
|
@ -986,7 +986,7 @@ end:
|
||||
|
||||
/* ------------------------------------------------------------------------- */
|
||||
|
||||
PR_STATIC_CALLBACK(PLDHashOperator)
|
||||
static PLDHashOperator
|
||||
EnumerateTargetMapAndNotify(const nsID &aKey,
|
||||
ipcTargetData *aData,
|
||||
void *aClosure)
|
||||
|
@ -1330,7 +1330,7 @@ SetupPeerInstance(PRUint32 aPeerID, DConnectSetup *aMsg, PRUint32 aMsgLen,
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
PR_STATIC_CALLBACK(PLDHashOperator)
|
||||
static PLDHashOperator
|
||||
DestroyDConnectInstance(const void *key,
|
||||
DConnectInstance *wrapper,
|
||||
void *userArg)
|
||||
|
@ -84,25 +84,25 @@ struct ipcLockContext
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
PR_STATIC_CALLBACK(void *)
|
||||
static void *
|
||||
ipcLockModule_AllocTable(void *pool, PRSize size)
|
||||
{
|
||||
return malloc(size);
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(void)
|
||||
static void
|
||||
ipcLockModule_FreeTable(void *pool, void *item)
|
||||
{
|
||||
free(item);
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(PLHashEntry *)
|
||||
static PLHashEntry *
|
||||
ipcLockModule_AllocEntry(void *pool, const void *key)
|
||||
{
|
||||
return (PLHashEntry *) malloc(sizeof(PLHashEntry));
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(void)
|
||||
static void
|
||||
ipcLockModule_FreeEntry(void *pool, PLHashEntry *he, PRUintn flag)
|
||||
{
|
||||
PL_strfree((char *) he->key);
|
||||
@ -226,7 +226,7 @@ ipcLockModule_ReleaseLock(PRUint32 cid, const char *key)
|
||||
PL_HashTableRemove(gLockTable, key);
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(PRIntn)
|
||||
static PRIntn
|
||||
ipcLockModule_ReleaseByCID(PLHashEntry *he, PRIntn i, void *arg)
|
||||
{
|
||||
PRUint32 cid = *(PRUint32 *) arg;
|
||||
|
@ -99,7 +99,7 @@ static void RandomSleep(PRUint32 fromMS, PRUint32 toMS)
|
||||
|
||||
static ipcILockService *gLockService;
|
||||
|
||||
PR_STATIC_CALLBACK(void) TestThread(void *arg)
|
||||
static void TestThread(void *arg)
|
||||
{
|
||||
const char *lockName = (const char *) arg;
|
||||
|
||||
|
@ -216,7 +216,7 @@ typedef unsigned int JDIMENSION;
|
||||
#include "prtypes.h"
|
||||
|
||||
/* a function called through method pointers: */
|
||||
#define METHODDEF(type) static type PR_CALLBACK
|
||||
#define METHODDEF(type) static type
|
||||
/* a function used only in its module: */
|
||||
#define LOCAL(type) static type
|
||||
|
||||
|
@ -139,7 +139,7 @@ _scriptObFromJSDScriptPtr( ExecEnv* ee, JSDScript* jsdscript )
|
||||
|
||||
/***************************************************************************/
|
||||
|
||||
void PR_CALLBACK
|
||||
void
|
||||
_scriptHook( JSDContext* jsdc,
|
||||
JSDScript* jsdscript,
|
||||
JSBool creating,
|
||||
@ -221,7 +221,7 @@ _scriptHook( JSDContext* jsdc,
|
||||
}
|
||||
|
||||
/***************************************************************************/
|
||||
PRUintn PR_CALLBACK
|
||||
PRUintn
|
||||
_executionHook( JSDContext* jsdc,
|
||||
JSDThreadState* jsdstate,
|
||||
PRUintn type,
|
||||
@ -340,7 +340,7 @@ _executionHook( JSDContext* jsdc,
|
||||
return JSD_HOOK_RETURN_CONTINUE;
|
||||
}
|
||||
|
||||
PRUintn PR_CALLBACK
|
||||
PRUintn
|
||||
_errorReporter( JSDContext* jsdc,
|
||||
JSContext* cx,
|
||||
const char* message,
|
||||
|
@ -229,7 +229,7 @@ NowCalibrate()
|
||||
#define LASTLOCK_SPINCOUNT 4096
|
||||
|
||||
#ifdef JS_THREADSAFE
|
||||
static PRStatus PR_CALLBACK
|
||||
static PRStatus
|
||||
NowInit(void)
|
||||
{
|
||||
memset(&calibration, 0, sizeof(calibration));
|
||||
|
@ -328,7 +328,7 @@ void XPCJSRuntime::TraceJS(JSTracer* trc, void* data)
|
||||
}
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(void)
|
||||
static void
|
||||
TraceJSObject(PRUint32 aLangID, void *aScriptThing, void *aClosure)
|
||||
{
|
||||
if(aLangID == nsIProgrammingLanguage::JAVASCRIPT)
|
||||
|
@ -108,7 +108,7 @@ static const nsModuleComponentInfo components[] = {
|
||||
#endif
|
||||
};
|
||||
|
||||
PR_STATIC_CALLBACK(nsresult)
|
||||
static nsresult
|
||||
xpcModuleCtor(nsIModule* self)
|
||||
{
|
||||
nsXPConnect::InitStatics();
|
||||
@ -125,7 +125,7 @@ xpcModuleCtor(nsIModule* self)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(void)
|
||||
static void
|
||||
xpcModuleDtor(nsIModule* self)
|
||||
{
|
||||
// Release our singletons
|
||||
|
@ -534,7 +534,7 @@ XPCPerThreadData::~XPCPerThreadData()
|
||||
}
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(void)
|
||||
static void
|
||||
xpc_ThreadDataDtorCB(void* ptr)
|
||||
{
|
||||
XPCPerThreadData* data = (XPCPerThreadData*) ptr;
|
||||
|
@ -13199,7 +13199,7 @@ nsCSSFrameConstructor::RestyleForRemove(nsIContent* aContainer,
|
||||
}
|
||||
|
||||
|
||||
PR_STATIC_CALLBACK(PLDHashOperator)
|
||||
static PLDHashOperator
|
||||
CollectRestyles(nsISupports* aContent,
|
||||
nsCSSFrameConstructor::RestyleData& aData,
|
||||
void* aRestyleArrayPtr)
|
||||
|
@ -75,7 +75,7 @@ struct nsFindFrameHint
|
||||
nsFindFrameHint() : mPrimaryFrameForPrevSibling(nsnull) { }
|
||||
};
|
||||
|
||||
typedef void (PR_CALLBACK nsLazyFrameConstructionCallback)
|
||||
typedef void (nsLazyFrameConstructionCallback)
|
||||
(nsIContent* aContent, nsIFrame* aFrame, void* aArg);
|
||||
|
||||
class nsFrameConstructorState;
|
||||
|
@ -285,7 +285,7 @@ nsCounterManager::CounterListFor(const nsSubstring& aCounterName)
|
||||
return counterList;
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(PLDHashOperator)
|
||||
static PLDHashOperator
|
||||
RecalcDirtyLists(const nsAString& aKey, nsCounterList* aList, void* aClosure)
|
||||
{
|
||||
if (aList->IsDirty())
|
||||
@ -310,7 +310,7 @@ struct DestroyNodesData {
|
||||
PRBool mDestroyedAny;
|
||||
};
|
||||
|
||||
PR_STATIC_CALLBACK(PLDHashOperator)
|
||||
static PLDHashOperator
|
||||
DestroyNodesInList(const nsAString& aKey, nsCounterList* aList, void* aClosure)
|
||||
{
|
||||
DestroyNodesData *data = static_cast<DestroyNodesData*>(aClosure);
|
||||
@ -330,7 +330,7 @@ nsCounterManager::DestroyNodesFor(nsIFrame *aFrame)
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
PR_STATIC_CALLBACK(PLDHashOperator)
|
||||
static PLDHashOperator
|
||||
DumpList(const nsAString& aKey, nsCounterList* aList, void* aClosure)
|
||||
{
|
||||
printf("Counter named \"%s\":\n", NS_ConvertUTF16toUTF8(aKey).get());
|
||||
|
@ -2067,7 +2067,7 @@ DocumentViewerImpl::RequestWindowClose(PRBool* aCanClose)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(PRBool)
|
||||
static PRBool
|
||||
AppendAgentSheet(nsIStyleSheet *aSheet, void *aData)
|
||||
{
|
||||
nsStyleSet *styleSet = static_cast<nsStyleSet*>(aData);
|
||||
@ -2075,7 +2075,7 @@ AppendAgentSheet(nsIStyleSheet *aSheet, void *aData)
|
||||
return PR_TRUE;
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(PRBool)
|
||||
static PRBool
|
||||
PrependUserSheet(nsIStyleSheet *aSheet, void *aData)
|
||||
{
|
||||
nsStyleSet *styleSet = static_cast<nsStyleSet*>(aData);
|
||||
|
@ -126,7 +126,7 @@ struct PlaceholderMapEntry : public PLDHashEntryHdr {
|
||||
nsPlaceholderFrame *placeholderFrame;
|
||||
};
|
||||
|
||||
PR_STATIC_CALLBACK(PRBool)
|
||||
static PRBool
|
||||
PlaceholderMapMatchEntry(PLDHashTable *table, const PLDHashEntryHdr *hdr,
|
||||
const void *key)
|
||||
{
|
||||
@ -163,7 +163,7 @@ struct PrimaryFrameMapEntry : public PLDHashEntryHdr {
|
||||
// These ops should be used if/when we switch back to a 2-word entry.
|
||||
// See comment in |PrimaryFrameMapEntry| above.
|
||||
#if 0
|
||||
PR_STATIC_CALLBACK(PRBool)
|
||||
static PRBool
|
||||
PrimaryFrameMapMatchEntry(PLDHashTable *table, const PLDHashEntryHdr *hdr,
|
||||
const void *key)
|
||||
{
|
||||
@ -521,7 +521,7 @@ nsFrameManager::UnregisterPlaceholderFrame(nsPlaceholderFrame* aPlaceholderFrame
|
||||
}
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(PLDHashOperator)
|
||||
static PLDHashOperator
|
||||
UnregisterPlaceholders(PLDHashTable* table, PLDHashEntryHdr* hdr,
|
||||
PRUint32 number, void* arg)
|
||||
{
|
||||
@ -1828,7 +1828,7 @@ nsFrameManagerBase::UndisplayedMap::RemoveNodesFor(nsIContent* aParentContent)
|
||||
}
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(PRIntn)
|
||||
static PRIntn
|
||||
RemoveUndisplayedEntry(PLHashEntry* he, PRIntn i, void* arg)
|
||||
{
|
||||
UndisplayedNode* node = (UndisplayedNode*)(he->value);
|
||||
|
@ -39,7 +39,7 @@
|
||||
#define nsIFocusEventSuppressor_h___
|
||||
#include "nsISupports.h"
|
||||
|
||||
typedef void (*PR_CALLBACK nsFocusEventSuppressorCallback)(PRBool aSuppress);
|
||||
typedef void (* nsFocusEventSuppressorCallback)(PRBool aSuppress);
|
||||
|
||||
#define NS_NSIFOCUSEVENTSUPPRESSORSERVICE_IID \
|
||||
{ 0x8aae5cee, 0x59ab, 0x42d4, \
|
||||
|
@ -111,7 +111,7 @@ MakeColorPref(const char *colstr)
|
||||
return colorref;
|
||||
}
|
||||
|
||||
int PR_CALLBACK
|
||||
int
|
||||
nsPresContext::PrefChangedCallback(const char* aPrefName, void* instance_data)
|
||||
{
|
||||
nsPresContext* presContext = (nsPresContext*)instance_data;
|
||||
@ -149,7 +149,7 @@ IsVisualCharset(const nsCString& aCharset)
|
||||
#endif // IBMBIDI
|
||||
|
||||
|
||||
PR_STATIC_CALLBACK(PLDHashOperator)
|
||||
static PLDHashOperator
|
||||
destroy_loads(const void * aKey, nsCOMPtr<nsImageLoader>& aData, void* closure)
|
||||
{
|
||||
aData->Destroy();
|
||||
@ -298,7 +298,7 @@ NS_INTERFACE_MAP_END
|
||||
NS_IMPL_CYCLE_COLLECTING_ADDREF(nsPresContext)
|
||||
NS_IMPL_CYCLE_COLLECTING_RELEASE(nsPresContext)
|
||||
|
||||
PR_STATIC_CALLBACK(PLDHashOperator)
|
||||
static PLDHashOperator
|
||||
TraverseImageLoader(const void * aKey, nsCOMPtr<nsImageLoader>& aData,
|
||||
void* aClosure)
|
||||
{
|
||||
@ -1027,7 +1027,7 @@ static void SetImgAnimModeOnImgReq(imgIRequest* aImgReq, PRUint16 aMode)
|
||||
}
|
||||
|
||||
// Enumeration call back for HashTable
|
||||
PR_STATIC_CALLBACK(PLDHashOperator)
|
||||
static PLDHashOperator
|
||||
set_animation_mode(const void * aKey, nsCOMPtr<nsImageLoader>& aData, void* closure)
|
||||
{
|
||||
imgIRequest* imgReq = aData->GetRequest();
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user