Skip to content
Snippets Groups Projects
Commit 1776d17a authored by deuce's avatar deuce
Browse files

Remove use of JSScript

parent 6728b7ca
No related branches found
No related tags found
No related merge requests found
...@@ -18,7 +18,7 @@ struct cache_data { ...@@ -18,7 +18,7 @@ struct cache_data {
ulong runcount; /* Number of times this script has been used */ ulong runcount; /* Number of times this script has been used */
time_t lastrun; /* Time script was last ran */ time_t lastrun; /* Time script was last ran */
time_t laststat; /* Time of last call to stat() */ time_t laststat; /* Time of last call to stat() */
JSScript *script; JSObject *script;
int running; /* Count of currently running scripts */ int running; /* Count of currently running scripts */
int expired; /* TRUE if last stat() makes this as stale and int expired; /* TRUE if last stat() makes this as stale and
* running was non-zero */ * running was non-zero */
...@@ -43,7 +43,7 @@ extern "C" { ...@@ -43,7 +43,7 @@ extern "C" {
* Compiles it and adds to the cache if not. * Compiles it and adds to the cache if not.
* Increments running value. * Increments running value.
*/ */
JSScript *js_get_compiled_script(JSContext *cx, char *filename); JSObject *js_get_compiled_script(JSContext *cx, char *filename);
/* /*
* Starts the caching thread. The caching thread periodically * Starts the caching thread. The caching thread periodically
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment