mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 19:33:18 +00:00
ugh, back out this fix until mac links against raptorbase
This commit is contained in:
parent
ab34197005
commit
6de5845c13
@ -63,7 +63,8 @@
|
||||
#include "xpassert.h"
|
||||
#include "xp_str.h"
|
||||
|
||||
#include "nsQuickSort.h"
|
||||
/* WHS TEMPORARY */
|
||||
#define XP_QSORT qsort
|
||||
|
||||
#if defined(XP_MAC) && defined (__MWERKS__)
|
||||
/* Can't get the xp people to fix warnings... */
|
||||
@ -934,7 +935,7 @@ pref_savePref(PRHashEntry *he, int i, void *arg)
|
||||
}
|
||||
|
||||
PR_IMPLEMENT(int)
|
||||
pref_CompareStrings (const void *v1, const void *v2, void *data)
|
||||
pref_CompareStrings (const void *v1, const void *v2)
|
||||
{
|
||||
char *s1 = *(char**) v1;
|
||||
char *s2 = *(char**) v2;
|
||||
@ -1015,7 +1016,7 @@ PREF_SavePrefFileWith(const char *filename, PRHashEnumerator heSaveProc)
|
||||
PR_HashTableEnumerateEntries(m_HashTable, heSaveProc, valueArray);
|
||||
|
||||
/* Sort the preferences to make a readable file on disk */
|
||||
nsQuickSort(valueArray, m_HashTable->nentries, sizeof(char*), pref_CompareStrings, NULL);
|
||||
XP_QSORT(valueArray, m_HashTable->nentries, sizeof(char*), pref_CompareStrings);
|
||||
for (valueIdx = 0; valueIdx < m_HashTable->nentries; valueIdx++)
|
||||
{
|
||||
if (valueArray[valueIdx])
|
||||
|
@ -63,7 +63,8 @@
|
||||
#include "xpassert.h"
|
||||
#include "xp_str.h"
|
||||
|
||||
#include "nsQuickSort.h"
|
||||
/* WHS TEMPORARY */
|
||||
#define XP_QSORT qsort
|
||||
|
||||
#if defined(XP_MAC) && defined (__MWERKS__)
|
||||
/* Can't get the xp people to fix warnings... */
|
||||
@ -934,7 +935,7 @@ pref_savePref(PRHashEntry *he, int i, void *arg)
|
||||
}
|
||||
|
||||
PR_IMPLEMENT(int)
|
||||
pref_CompareStrings (const void *v1, const void *v2, void *data)
|
||||
pref_CompareStrings (const void *v1, const void *v2)
|
||||
{
|
||||
char *s1 = *(char**) v1;
|
||||
char *s2 = *(char**) v2;
|
||||
@ -1015,7 +1016,7 @@ PREF_SavePrefFileWith(const char *filename, PRHashEnumerator heSaveProc)
|
||||
PR_HashTableEnumerateEntries(m_HashTable, heSaveProc, valueArray);
|
||||
|
||||
/* Sort the preferences to make a readable file on disk */
|
||||
nsQuickSort(valueArray, m_HashTable->nentries, sizeof(char*), pref_CompareStrings, NULL);
|
||||
XP_QSORT(valueArray, m_HashTable->nentries, sizeof(char*), pref_CompareStrings);
|
||||
for (valueIdx = 0; valueIdx < m_HashTable->nentries; valueIdx++)
|
||||
{
|
||||
if (valueArray[valueIdx])
|
||||
|
Loading…
Reference in New Issue
Block a user