зеркало из https://github.com/mozilla/pjs.git
for bug 112708, sr=dveditz, r=bnesse convert prefapi.c to C++
This commit is contained in:
Родитель
05b0232a3b
Коммит
4c15d86e01
|
@ -44,13 +44,12 @@ REQUIRES = xpcom \
|
|||
|
||||
include $(topsrcdir)/config/config.mk
|
||||
|
||||
CSRCS = prefapi.c
|
||||
|
||||
CPPSRCS = nsPref.cpp \
|
||||
nsPrefBranch.cpp \
|
||||
nsPrefService.cpp \
|
||||
nsPrefsFactory.cpp \
|
||||
nsAutoConfig.cpp \
|
||||
prefapi.cpp \
|
||||
$(NULL)
|
||||
|
||||
PREF_JS_EXPORTS = \
|
||||
|
|
|
@ -69,7 +69,7 @@ struct PrefCallbackData {
|
|||
static NS_DEFINE_CID(kSecurityManagerCID, NS_SCRIPTSECURITYMANAGER_CID);
|
||||
|
||||
// Prototypes
|
||||
extern "C" PrefResult pref_UnlockPref(const char *key);
|
||||
extern PrefResult pref_UnlockPref(const char *key);
|
||||
PR_STATIC_CALLBACK(PRIntn) pref_enumChild(PLHashEntry *he, int i, void *arg);
|
||||
static int PR_CALLBACK NotifyObserver(const char *newpref, void *data);
|
||||
|
||||
|
|
|
@ -780,7 +780,7 @@ extern "C" JSBool pref_InitInitialObjects()
|
|||
}
|
||||
|
||||
|
||||
extern "C" JSRuntime* PREF_GetJSRuntime()
|
||||
extern JSRuntime* PREF_GetJSRuntime()
|
||||
{
|
||||
nsresult rv;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче