OSSP CVS Repository

ossp - History for /ossp-pkg/js/src/js.c
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Directory]  [Show Milestones

DateVersion Description
2006-Aug-03 15:19    1.7    Check-in [5635]: Add optional Dynamic Shared Object (DSO) support (see src/jsdso.[ch]). This comes in two flavors:

1. Provide two public C API functions... JSBool JS_DSOLoad (JSContext *cx, int *id, const char *filename); JSBool JS_DSOUnload (JSContext *cx, int id); ...as an ultra-thin wrapper around the POSIX dlopen(3) API. It especially mimics the BSD RTLD behaviour of calling pre-defined functions (mandatory "js_DSO_load" and optional "js_DSO_unload") inside the DSO after/before the dlopen/dlclose calls. This allows the DSOs to perform their init/shutdown actions.

2. Provide a small JavaScript global object "DSO" which binds the two public DSO C API functions into the JavaScript language as "DSO.load" and "DSO.unload". The "DSO" object can be created by the friend C API function js_InitDSOClass(). This function is used by the command-linne interface "js" by default.

As a result the OSSP Mozilla JavaScript engine is now able to dynamically load C extensions similar to what other programming languages provide since a longer time. By rse. (diff)

2006-Aug-03 14:41    1.6    Check-in [5634]: Be more clean and replace weak "#if JS_HAS_FILE_OBJECT" constructs with the stronger "#if defined(JS_HAS_FILE_OBJECT) && (JS_HAS_FILE_OBJECT - 0)" as the JS_HAS_FILE_OBJECT can be not defined at all (in contrast to other JS_HAS_XXXX defines which are all listed in src/jsconfig.h) By rse. (diff)
2006-Aug-03 14:30    1.5    Check-in [5633]: Fix a bunch of compiler warnings. By rse. (diff)
2006-Jul-30 10:00    1.4    Check-in [5546]: Add support for Windows CygWin and MinGW environments. By rse. (diff)
2006-Jul-24 20:38    1.3    Check-in [5512]: Resolve conflicts after import of new upstream version: Mozilla JavaScript (SpiderMonkey) 1.6 as of 2006-07-24 By rse. (diff)
2006-Jul-23 20:34    1.2    Check-in [5510]: o Install all src/js*.h headers during "make install" to allow applications to at least optionally poke around in the internals. This also allows an application to call js_InitFileClass() from <jsfile.h> without us having to really call this function in the standard API function JS_InitStandardClasses().

o Change the default of the --with-file/--without from --without-file to --with-file (enable the File object by default), but activate it only in the CLI (where it doesn't hurt and where it is actually really required to get something useful running there in practice) but explicitly NOT in JS_InitStandardClasses() (as this is what would hurt the security in applications which assume that JS_InitStandardClasses() initialized only really the standard classes). By rse.

2006-Apr-04 16:09    1.1.1.2    Check-in [5602]: Import new upstream version: Mozilla JavaScript (SpiderMonkey) 1.6 as of 2006-07-24 By rse. (diff)
2006-Jan-06 17:49    1.1    Check-in [5601]: Import new upstream version: Mozilla JavaScript 1.6-1.5.0.5-20060722 By rse.
2006-Jan-06 17:49    1.1.1.1    Check-in [5601]: Import new upstream version: Mozilla JavaScript 1.6-1.5.0.5-20060722 By rse.

CVSTrac 2.0.1