1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-25 15:32:28 +01:00

Make binaries compilable on non-hemorrhage-edge releases. Add binaries subrepo.

This commit is contained in:
Kris Maglione
2011-09-23 16:40:56 -04:00
parent e1db34990b
commit 39ceae4f92
7 changed files with 79 additions and 42 deletions

View File

@@ -35,8 +35,6 @@
*
* ***** END LICENSE BLOCK ***** */
#define JS_XDRScript JS_XDRScriptObject
#include "mozJSLoaderUtils.h"
#include "nsAutoPtr.h"
@@ -55,7 +53,7 @@ using namespace mozilla::scache;
static nsresult
ReadScriptFromStream(JSContext *cx, nsIObjectInputStream *stream,
JSScript **script)
JSScriptType **script)
{
*script = nsnull;
@@ -110,7 +108,7 @@ ReadScriptFromStream(JSContext *cx, nsIObjectInputStream *stream,
}
static nsresult
WriteScriptToStream(JSContext *cx, JSScript *script,
WriteScriptToStream(JSContext *cx, JSScriptType *script,
nsIObjectOutputStream *stream)
{
JSXDRState *xdr = JS_XDRNewMem(cx, JSXDR_ENCODE);
@@ -152,7 +150,7 @@ WriteScriptToStream(JSContext *cx, JSScript *script,
}
nsresult
ReadCachedScript(nsIStartupCache* cache, nsACString &uri, JSContext *cx, JSScript **script)
ReadCachedScript(nsIStartupCache* cache, nsACString &uri, JSContext *cx, JSScriptType **script)
{
nsresult rv;
@@ -173,7 +171,7 @@ ReadCachedScript(nsIStartupCache* cache, nsACString &uri, JSContext *cx, JSScrip
}
nsresult
WriteCachedScript(nsIStartupCache* cache, nsACString &uri, JSContext *cx, JSScript *script)
WriteCachedScript(nsIStartupCache* cache, nsACString &uri, JSContext *cx, JSScriptType *script)
{
nsresult rv;