Bug 677079 - Part c: Stop installing jsdate.h; r=Waldo

This commit is contained in:
Ms2ger 2012-01-15 09:13:07 +01:00
parent aec664aa8d
commit 8f9952cbfe
6 changed files with 15 additions and 14 deletions

View File

@ -39,7 +39,7 @@
#include "Key.h" #include "Key.h"
#include "nsIStreamBufferAccess.h" #include "nsIStreamBufferAccess.h"
#include "jsdate.h" #include "jsfriendapi.h"
#include "nsAlgorithm.h" #include "nsAlgorithm.h"
#include "nsContentUtils.h" #include "nsContentUtils.h"
#include "nsJSUtils.h" #include "nsJSUtils.h"

View File

@ -39,7 +39,7 @@
#include "SmsMessage.h" #include "SmsMessage.h"
#include "nsIDOMClassInfo.h" #include "nsIDOMClassInfo.h"
#include "jsapi.h" // For OBJECT_TO_JSVAL and JS_NewDateObjectMsec #include "jsapi.h" // For OBJECT_TO_JSVAL and JS_NewDateObjectMsec
#include "jsdate.h" // For js_DateGetMsecSinceEpoch #include "jsfriendapi.h" // For js_DateGetMsecSinceEpoch
#include "Constants.h" #include "Constants.h"
DOMCI_DATA(MozSmsMessage, mozilla::dom::sms::SmsMessage) DOMCI_DATA(MozSmsMessage, mozilla::dom::sms::SmsMessage)

View File

@ -196,7 +196,6 @@ INSTALLED_HEADERS = \
jscntxt.h \ jscntxt.h \
jscompat.h \ jscompat.h \
jscrashreport.h \ jscrashreport.h \
jsdate.h \
jsdbgapi.h \ jsdbgapi.h \
jsdhash.h \ jsdhash.h \
jsfriendapi.h \ jsfriendapi.h \

View File

@ -77,13 +77,6 @@ extern JS_FRIEND_API(JSObject*)
js_NewDateObject(JSContext* cx, int year, int mon, int mday, js_NewDateObject(JSContext* cx, int year, int mon, int mday,
int hour, int min, int sec); int hour, int min, int sec);
/*
* Detect whether the internal date value is NaN. (Because failure is
* out-of-band for js_DateGet*)
*/
extern JS_FRIEND_API(JSBool)
js_DateIsValid(JSContext *cx, JSObject* obj);
extern JS_FRIEND_API(int) extern JS_FRIEND_API(int)
js_DateGetYear(JSContext *cx, JSObject* obj); js_DateGetYear(JSContext *cx, JSObject* obj);
@ -102,9 +95,6 @@ js_DateGetMinutes(JSContext *cx, JSObject* obj);
extern JS_FRIEND_API(int) extern JS_FRIEND_API(int)
js_DateGetSeconds(JSContext *cx, JSObject* obj); js_DateGetSeconds(JSContext *cx, JSObject* obj);
extern JS_FRIEND_API(jsdouble)
js_DateGetMsecSinceEpoch(JSContext *cx, JSObject *obj);
typedef uint32_t JSIntervalTime; typedef uint32_t JSIntervalTime;
extern JS_FRIEND_API(JSIntervalTime) extern JS_FRIEND_API(JSIntervalTime)

View File

@ -498,4 +498,16 @@ js_GetClassPrototype(JSContext *cx, JSObject *scope, JSProtoKey protoKey,
#endif #endif
/* Implemented in jsdate.cpp. */
/*
* Detect whether the internal date value is NaN. (Because failure is
* out-of-band for js_DateGet*)
*/
extern JS_FRIEND_API(JSBool)
js_DateIsValid(JSContext *cx, JSObject* obj);
extern JS_FRIEND_API(double)
js_DateGetMsecSinceEpoch(JSContext *cx, JSObject *obj);
#endif /* jsfriendapi_h___ */ #endif /* jsfriendapi_h___ */

View File

@ -41,7 +41,7 @@
#include "sqlite3.h" #include "sqlite3.h"
#include "jsapi.h" #include "jsapi.h"
#include "jsdate.h" #include "jsfriendapi.h"
#include "nsPrintfCString.h" #include "nsPrintfCString.h"
#include "nsString.h" #include "nsString.h"