Bug 677079 - Part d: Move js_GetErrorMessage to jsfriendapi.h; r=jorendorff

This commit is contained in:
Ms2ger 2012-01-15 09:13:08 +01:00
Родитель 61fac06b4d
Коммит dc850b4531
16 изменённых файлов: 24 добавлений и 29 удалений

Просмотреть файл

@ -39,8 +39,6 @@
#include "base/basictypes.h"
#include "jsapi.h"
// FIXME(bug 332648): Give me a real API please!
#include "jscntxt.h"
#include "jsfriendapi.h"
#include "nsIInterfaceRequestorUtils.h"

Просмотреть файл

@ -39,7 +39,7 @@
#include "EventTarget.h"
#include "jsapi.h"
#include "jscntxt.h"
#include "jsfriendapi.h"
#include "nsTraceRefcnt.h"
#include "WorkerInlines.h"

Просмотреть файл

@ -42,7 +42,6 @@
#include "Events.h"
#include "jsapi.h"
#include "jscntxt.h"
#include "jsfriendapi.h"
#include "nsTraceRefcnt.h"

Просмотреть файл

@ -42,7 +42,6 @@
#include "Exceptions.h"
#include "jsapi.h"
#include "jscntxt.h"
#include "jsfriendapi.h"
#include "jsprf.h"

Просмотреть файл

@ -43,7 +43,6 @@
#include "jsapi.h"
#include "jsatom.h"
#include "jscntxt.h"
#include "jsfriendapi.h"
#include "nsCOMPtr.h"
#include "nsJSUtils.h"

Просмотреть файл

@ -43,7 +43,7 @@
#include "jsapi.h"
#include "jsatom.h"
#include "jscntxt.h"
#include "jsfriendapi.h"
#include "jstypedarray.h"
#include "nsJSUtils.h"

Просмотреть файл

@ -42,6 +42,7 @@
#include "jsapi.h"
#include "jscntxt.h"
#include "jsfriendapi.h"
#include "js/Vector.h"
#include "Events.h"

Просмотреть файл

@ -39,7 +39,6 @@
#include "Location.h"
#include "jsapi.h"
#include "jscntxt.h"
#include "jsfriendapi.h"
#include "nsTraceRefcnt.h"

Просмотреть файл

@ -39,7 +39,6 @@
#include "Navigator.h"
#include "jsapi.h"
#include "jscntxt.h"
#include "jsfriendapi.h"
#include "nsTraceRefcnt.h"

Просмотреть файл

@ -39,7 +39,7 @@
#include "Worker.h"
#include "jsapi.h"
#include "jscntxt.h"
#include "jsfriendapi.h"
#include "EventTarget.h"
#include "RuntimeService.h"

Просмотреть файл

@ -56,7 +56,7 @@
#include "nsIURL.h"
#include "nsIXPConnect.h"
#include "jscntxt.h"
#include "jsfriendapi.h"
#include "jsdbgapi.h"
#include "jsprf.h"
#include "js/MemoryMetrics.h"

Просмотреть файл

@ -43,7 +43,6 @@
#include "jsapi.h"
#include "jsdbgapi.h"
#include "jscntxt.h"
#include "nsTraceRefcnt.h"
#include "xpcpublic.h"

Просмотреть файл

@ -39,7 +39,6 @@
#include "XMLHttpRequest.h"
#include "jsapi.h"
#include "jscntxt.h"
#include "jsfriendapi.h"
#include "Exceptions.h"

Просмотреть файл

@ -1883,21 +1883,6 @@ js_ContextIterator(JSRuntime *rt, JSBool unlocked, JSContext **iterp);
extern JS_FRIEND_API(JSContext *)
js_NextActiveContext(JSRuntime *, JSContext *);
/*
* Report an exception, which is currently realized as a printf-style format
* string and its arguments.
*/
typedef enum JSErrNum {
#define MSG_DEF(name, number, count, exception, format) \
name = number,
#include "js.msg"
#undef MSG_DEF
JSErr_Limit
} JSErrNum;
extern JS_FRIEND_API(const JSErrorFormatString *)
js_GetErrorMessage(void *userRef, const char *locale, const uintN errorNumber);
#ifdef va_start
extern JSBool
js_ReportErrorVA(JSContext *cx, uintN flags, const char *format, va_list ap);

Просмотреть файл

@ -510,4 +510,21 @@ js_DateIsValid(JSContext *cx, JSObject* obj);
extern JS_FRIEND_API(double)
js_DateGetMsecSinceEpoch(JSContext *cx, JSObject *obj);
/* Implemented in jscntxt.cpp. */
/*
* Report an exception, which is currently realized as a printf-style format
* string and its arguments.
*/
typedef enum JSErrNum {
#define MSG_DEF(name, number, count, exception, format) \
name = number,
#include "js.msg"
#undef MSG_DEF
JSErr_Limit
} JSErrNum;
extern JS_FRIEND_API(const JSErrorFormatString *)
js_GetErrorMessage(void *userRef, const char *locale, const uintN errorNumber);
#endif /* jsfriendapi_h___ */

Просмотреть файл

@ -39,7 +39,8 @@
#include "mozilla/Util.h"
#include "jsapi.h"
#include "jscntxt.h" /* for error messages */
#include "jsatom.h"
#include "jsfriendapi.h"
#include "nsCOMPtr.h"
#include "xpcprivate.h"
#include "XPCInlines.h"