Subj : Re: latest stable SpiderMonkey source version To : netscape.public.mozilla.jseng From : Shanti Rao Date : Mon Apr 04 2005 09:05 pm Klaus Drobec wrote: > hi all. > I'm involved in a project that will include the SpiderMonkey engine for > script support. I have two requirements that might not be too common: > > I) Build the engine as a static lib > II) Use Borland's bcc32 compiler > > I got the js-1.5-rc6a tarball and - as suspected - there are no #ifdefs > for either my compiler or a static lib build. > > I'll be adjusting the code to conditionally support bcc32 and a static > build and play nice with all the other configuration options and I'd > like to submit these changes for incorporation into the Mozilla codebase. > I've done this before. The standard tarball works, with a few modifications. Check my notes on https://bugzilla.mozilla.org/show_bug.cgi?id=59195 -- for some reason (like I was the only person compiling SM with BCC), we never bothered to check these back into the main code. Here's my changes.txt file: The following changes have been made to SpiderMonkey: 1. Add parenthesis around ambiguous shift operators. 2. Insert before jsobj.c#2503 lasbobj = obj = cx->fp->scopeChain; if (obj) 3. Disable __declspec(dllimport) in jstypes.h 4. Replace JSLL_INIT macros in prmjtime.c and jslong.c Download my source code from jsdb.org if you want to compare. Shanti Shanti .