Subj : Re: SpiderMonkey on Mac/Codewarrior To : netscape.public.mozilla.jseng From : Shanti Rao Date : Wed Aug 11 2004 10:08 am Hi Bruce, See http://bugzilla.mozilla.org/show_bug.cgi?id=59195 I haven't used codewarrior in a long time, but, looking through my code, the other things you may need to do is #include #include #include #include #include #include #include #include Depending on what their math library implements, you may have to add to jsmath.c: #define fd_atan2 atan2 #define fd_pow pow double fd_copysign (double a, double b) { if ((a>0 && b<0) || (a<0 && b>0)) return -a; return a; } Good luck, Shanti > I just came across SpiderMonkey and it looks like it would fill some feature > requests I've had. I do have a couple of questions. > > Are there instructions on building a project from scratch? I'd like to make > a Codewarrior cross-platform project (OS X and Win32) and nothing seems > available. I have the source code from rc6a, but will I need to make a > header with definitions to make it compile the way I want? > > Also, is this embedding SpiderMonkey 'trivial'? The docs may it seem quite > reasonable, although a lot of work publishing C++ classes I want available > to Javascript. > > Thanks, > > Bruce Wheaton > .