On Tue, Aug 20, 2013 at 11:19 AM, Jeff Walden <jwalden+...@mit.edu> wrote:
> On 08/20/2013 09:01 AM, Boris Zbarsky wrote:
>> DOMJSClass.h only needs various forward-declarations, mostly.  The 
>> exceptions are:
>>
>> 2)  It needs the definition of JSClass, for a member of the DOMJSClass 
>> struct and the DOMIfaceAndProtoJSClass struct.  Unfortunately, this is 
>> defined in jsapi.h and defining the DOMJSClass struct is the main point of 
>> this header file.
>
> We can/should add js/public/Class.h and move all the class gunk into that.  I 
> think the only dependencies of JSClass are various JSCLASS_* macros and the 
> function typedefs, and those only depend on the rooting types and JSAPI 
> structs that we can forward-declare.

There's a bunch of stuff in jsapi.h that will need to be moved into
Class.h, but it's quite doable and on my short-term todo list.  I
might be able to remove jsfriendapi.h's dependency on jsapi.h as a
result of this as well.

Nick
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to