RPM Package Manager, CVS Repository
  http://rpm5.org/cvs/
  ____________________________________________________________________________

  Server: rpm5.org                         Name:   Jeff Johnson
  Root:   /v/rpm/cvs                       Email:  j...@rpm5.org
  Module: rpm                              Date:   20-Apr-2009 00:27:42
  Branch: HEAD                             Handle: 2009041922274101

  Modified files:
    rpm                     CHANGES
    rpm/rpmio               rpmjs.c

  Log:
    - js: wire up the File class.

  Summary:
    Revision    Changes     Path
    1.2953      +1  -0      rpm/CHANGES
    1.9         +7  -0      rpm/rpmio/rpmjs.c
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: rpm/CHANGES
  ============================================================================
  $ cvs diff -u -r1.2952 -r1.2953 CHANGES
  --- rpm/CHANGES       19 Apr 2009 22:07:02 -0000      1.2952
  +++ rpm/CHANGES       19 Apr 2009 22:27:41 -0000      1.2953
  @@ -1,5 +1,6 @@
   
   5.2a4 -> 5.2b1:
  +    - jbj: js: wire up the File class.
       - jbj: js: replace NSPR with rpmio in the File class.
       - jbj: js: stub in the File class before ripping NSPR (SpiderMonkey).
       - jbj: js: add toy uuid.{generate,describe} object and methods.
  @@ .
  patch -p0 <<'@@ .'
  Index: rpm/rpmio/rpmjs.c
  ============================================================================
  $ cvs diff -u -r1.8 -r1.9 rpmjs.c
  --- rpm/rpmio/rpmjs.c 19 Apr 2009 16:21:07 -0000      1.8
  +++ rpm/rpmio/rpmjs.c 19 Apr 2009 22:27:42 -0000      1.9
  @@ -8,6 +8,7 @@
   
   #ifdef       WITH_JS
   #define      XP_UNIX 1
  +#define      JS_HAS_FILE_OBJECT      1
   #include "jsstddef.h"
   #include "jstypes.h"
   #include "jsarena.h"
  @@ -27,6 +28,9 @@
   #include "jsparse.h"
   #include "jsscope.h"
   #include "jsscript.h"
  +#ifdef       JS_HAS_FILE_OBJECT
  +#include "rpmjsio.h"
  +#endif
   #endif
   #define _RPMJS_INTERNAL
   #include "rpmjs.h"
  @@ -623,6 +627,9 @@
   
       glob = JS_NewObject(cx, &global_class, NULL, NULL);
       xx = JS_InitStandardClasses(cx, glob);
  +#ifdef       JS_HAS_FILE_OBJECT
  +    xx = js_InitFileClass(cx, glob);
  +#endif
       xx = JS_DefineFunctions(cx, glob, shell_functions);
       js->glob = glob;
   
  @@ .
______________________________________________________________________
RPM Package Manager                                    http://rpm5.org
CVS Sources Repository                                rpm-cvs@rpm5.org

Reply via email to