1. 21 Oct, 2010 1 commit
    • Colin Walters's avatar
      Separate "basic" API from "embedder/module" API · 25681375
      Colin Walters authored
      Previously <gjs/gjs.h> pulled in a lot of stuff, and in particular,
      <gjs/jsapi-util.h>, which in turn required <jsapi.h>.  For a simple
      app that wants to embed GJS we should not be pulling that in.
      So <gjs/gjs.h> is now the "simple" API that actually just includes
      <gjs/context.h>, suitable for creating a context and calling eval().
      <gjs/gjs-module.h> is now equivalent to the old <gjs/gjs.h>, it
      pulls in the world.
      Also, create a corresponding .pc file, gjs-internals-1.0.pc.  This one
      includes mozjs as Requires, and adds the requisite Cflags.  For
      gjs-1.0.pc, change the Requires to simply be gobject-2.0.
      Conceptually, a gjs-devel RPM should not Require
      gobject-introspection-devel or xulrunner-devel, and a simple embedder
      program just using gjs_context_new()/gjs_context_eval() should not
      have DT_NEEDED on gobject-introspection-1.0.so or mozjs.so.
  2. 30 Sep, 2010 3 commits
  3. 01 May, 2010 2 commits
    • Havoc Pennington's avatar
      add JS_BeginRequest/JS_EndRequest calls throughout the codebase. · ccc6e7ce
      Havoc Pennington authored
      This is one step toward thread safety. Remaining work includes at least:
      * put locks on our own global state
      * JS_SuspendRequest() when blocking in native code
      * JS_SetContextThread() on load and call contexts
    • Havoc Pennington's avatar
      fix indentation, tabs, and trailing whitespace · 941791d4
      Havoc Pennington authored
      As reported by:
      FILES=`find -name "*.[hc]" -o -name "*.js" | grep -v -- '-introspection.c'`
      for F in $FILES ; do
          COUNT=`egrep '[ ]+$' $F | wc -l`
          if test x"$COUNT" != x0 ; then
              echo "$F: $COUNT trailing spaces"
          COUNT=`grep '       ' $F | wc -l`
          if test x"$COUNT" != x0 ; then
              echo "$F: $COUNT tabs"
  4. 16 Aug, 2009 1 commit
  5. 11 May, 2009 1 commit
  6. 30 Oct, 2008 1 commit
  7. 13 Oct, 2008 1 commit