Subj : Re: API docs To : netscape.public.mozilla.jseng From : Sterling Bates Date : Thu Apr 15 2004 06:16 pm This is a multi-part message in MIME format. --------------080100020308060006030801 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit (Keeping things within this thread.) I've updated the XML file for the structs, and I've attached the diff. Let me know if I'm heading in the right direction, and what I should do differently. Thanks, Sterling --------------080100020308060006030801 Content-Type: text/plain; name="diff.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="diff.txt" 964c964 < JS_NewRuntime(maxbytes); --- > JS_NewRuntime(uint32 maxbytes); 979c979 < JS_DestroyRuntime(rt); --- > JS_DestroyRuntime(JSRuntime *rt); 1023c1023 < char *name; --- > const char *name; 1041c1041,1042 < prword spare[2]; --- > JSMarkOp mark; > JSReserveSlotsOp reserveSlots; 1086c1087 < Pointer to the constructor for the object that represents this class
--- > Pointer to the constructor for the object that represents this class.
1094,1095c1095,1099 < < Reserved for future use.
--- > > See http://lxr.mozilla.org/mozilla/source/js/src/jspubtd.h#308
> > > See http://lxr.mozilla.org/mozilla/source/js/src/jspubtd.h#308
1141c1145,1150 < prword spare[2]; --- > JSSetObjectSlotOp setProto; > JSSetObjectSlotOp setParent; > JSMarkOp mark; > JSFinalizeOp clear; > JSGetRequiredSlotOp getRequiredSlot; > JSSetRequiredSlotOp setRequiredSlot; 1197,1198c1206,1222 < < Reserved for future use.
--- > > See http://lxr.mozilla.org/mozilla/source/js/src/jspubtd.h#464
> > > See http://lxr.mozilla.org/mozilla/source/js/src/jspubtd.h#464
> > > See http://lxr.mozilla.org/mozilla/source/js/src/jspubtd.h#308
> > > See http://lxr.mozilla.org/mozilla/source/js/src/jspubtd.h#239
> > > See http://lxr.mozilla.org/mozilla/source/js/src/jspubtd.h#473
> > > See http://lxr.mozilla.org/mozilla/source/js/src/jspubtd.h#473
1360c1384 < typedef struct JSPrincipals { --- > struct JSPrincipals { 1362,1368c1386,1390 < void *(*getPrincipalArray)(JSContext *cx, < struct JSPrincipals *); < JSBool (*globalPrivilegesEnabled)(JSContext *cx, < struct JSPrincipals *); < uintN refcount; < void (*destroy)(JSContext *cx, struct JSPrincipals *); < } JSPrincipals; --- > void *(* JS_DLL_CALLBACK getPrincipalArray)(JSContext *cx, JSPrincipals *); > JSBool (* JS_DLL_CALLBACK globalPrivilegesEnabled)(JSContext *cx, JSPrincipals *); > jsrefcount refcount; > void (* JS_DLL_CALLBACK destroy)(JSContext *cx, struct JSPrincipals *); > }; 1378c1400 < --- > 1412a1435,1438 > uintN flags; > uintN errorNumber; > const jschar *ucmessage; > const jschar **messageArgs; 1431a1458,1473 > > Error description attributes. The default is 0. This property may be any of the following attributes OR'd:
> JSREPORT_ERROR (default)
> JSREPORT_WARNING
> JSREPORT_EXCEPTION
> JSREPORT_STRICT
> > > The error number. See http://lxr.mozilla.org/mozilla/source/js/src/js.msg
> > > Unicode error message.
> > > Pointer to the arguments for the error message *ucmessage.
> 4647c4689 < jsint *lengthp); --- > jsuint *lengthp); 5242c5284 < If it successfully creates properties for all the functions specified in the array, JS_DefineFunctions returns JS_TRUE. Otherwise it returns JS_FALSE.

--- > JS_DefineFunctions always returns JS_TRUE, indicating it has created all functions specified in the array.

--------------080100020308060006030801-- .