2005-09-15 09:58:31 -04:00
|
|
|
#ifndef EL__ECMASCRIPT_SPIDERMONKEY_H
|
|
|
|
#define EL__ECMASCRIPT_SPIDERMONKEY_H
|
|
|
|
|
|
|
|
struct ecmascript_interpreter;
|
|
|
|
struct string;
|
|
|
|
|
|
|
|
void *spidermonkey_get_interpreter(struct ecmascript_interpreter *interpreter);
|
|
|
|
void spidermonkey_put_interpreter(struct ecmascript_interpreter *interpreter);
|
|
|
|
|
2006-01-27 06:07:45 -05:00
|
|
|
void spidermonkey_eval(struct ecmascript_interpreter *interpreter, struct string *code, struct string *ret);
|
2005-09-15 09:58:31 -04:00
|
|
|
unsigned char *spidermonkey_eval_stringback(struct ecmascript_interpreter *interpreter, struct string *code);
|
|
|
|
int spidermonkey_eval_boolback(struct ecmascript_interpreter *interpreter, struct string *code);
|
|
|
|
|
2006-01-16 08:14:14 -05:00
|
|
|
extern struct module spidermonkey_module;
|
2005-09-15 09:58:31 -04:00
|
|
|
#endif
|