Fix over-including dependencies, and relocate ID_TO_VALUE to avoid over-including (r=mrbkap, bustage fix).

git-svn-id: svn://10.0.0.236/trunk@247059 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
brendan%mozilla.org 2008-03-04 23:58:10 +00:00
parent a82601388a
commit 899886b9de
4 changed files with 5 additions and 3 deletions

View File

@ -74,6 +74,8 @@
#define OBJECT_TO_JSID(obj) ((jsid)OBJECT_TO_JSVAL(obj))
#define OBJECT_JSVAL_TO_JSID(v) ((jsid)v)
#define ID_TO_VALUE(id) ((jsval)(id))
/*
* Convenience constants.
*/

View File

@ -365,8 +365,6 @@ js_NewScope(JSContext *cx, jsrefcount nrefs, JSObjectOps *ops, JSClass *clasp,
extern void
js_DestroyScope(JSContext *cx, JSScope *scope);
#define ID_TO_VALUE(id) ((jsval)(id))
extern JS_FRIEND_API(JSScopeProperty **)
js_SearchScope(JSScope *scope, jsid id, JSBool adding);

View File

@ -40,8 +40,9 @@
#include "xpcprivate.h"
#include "XPCNativeWrapper.h"
#include "jsdbgapi.h"
#include "XPCWrapper.h"
#include "jsdbgapi.h"
#include "jsscope.h"
JS_STATIC_DLL_CALLBACK(JSBool)
XPC_NW_AddProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp);

View File

@ -41,6 +41,7 @@
* ***** END LICENSE BLOCK ***** */
#include "XPCWrapper.h"
#include "jsscope.h"
const PRUint32
XPCWrapper::sWrappedObjSlot = 1;