NS_WITH_SERVICE(nsIPref, prefs, NS_PREF_CONTRACTID, &rv); if (NS_SUCCEEDED(rv)) {  prefs->GetBoolPref(kDisableXULCachePref, &gDisableXULCache); prefs->RegisterCallback(kDisableXULCachePref, DisableXULCacheChangedCallback, nsnull); }
nsXULContentUtils::Init(){    if (gRefCnt++ == 0) {        nsresult rv = CallGetService(kRDFServiceCID, &gRDF);        if (NS_FAILED(rv)) {            return rv;        }#define XUL_RESOURCE(ident, uri)                              \  PR_BEGIN_MACRO                                              \   rv = gRDF->GetResource(NS_LITERAL_CSTRING(uri), &(ident)); \   if (NS_FAILED(rv)) return rv;                              \  PR_END_MACRO#define XUL_LITERAL(ident, val)                                   \  PR_BEGIN_MACRO                                                  \   rv = gRDF->GetLiteral(NS_LITERAL_STRING(val).get(), &(ident)); \   if (NS_FAILED(rv)) return rv;                                  \  PR_END_MACRO#include "nsXULResourceList.h"#undef XUL_RESOURCE#undef XUL_LITERAL        rv = CallCreateInstance(kDateTimeFormatCID, &gFormat);        if (NS_FAILED(rv)) {            return rv;        }    }    return NS_OK;}