2005-09-15 09:58:31 -04:00
|
|
|
#ifndef EL__ECMASCRIPT_SPIDERMONKEY_H
|
|
|
|
#define EL__ECMASCRIPT_SPIDERMONKEY_H
|
|
|
|
|
|
|
|
struct ecmascript_interpreter;
|
2009-07-18 19:36:37 -04:00
|
|
|
struct form_view;
|
|
|
|
struct form_state;
|
2019-04-21 06:27:40 -04:00
|
|
|
struct string;
|
2005-09-15 09:58:31 -04:00
|
|
|
|
|
|
|
void *spidermonkey_get_interpreter(struct ecmascript_interpreter *interpreter);
|
|
|
|
void spidermonkey_put_interpreter(struct ecmascript_interpreter *interpreter);
|
|
|
|
|
2008-07-18 13:16:17 -04:00
|
|
|
void spidermonkey_detach_form_view(struct form_view *fv);
|
2008-07-18 12:46:12 -04:00
|
|
|
void spidermonkey_detach_form_state(struct form_state *fs);
|
|
|
|
void spidermonkey_moved_form_state(struct form_state *fs);
|
2008-07-18 12:16:34 -04:00
|
|
|
|
2019-04-21 06:27:40 -04:00
|
|
|
void spidermonkey_eval(struct ecmascript_interpreter *interpreter, struct string *code, struct string *ret);
|
|
|
|
unsigned char *spidermonkey_eval_stringback(struct ecmascript_interpreter *interpreter, struct string *code);
|
|
|
|
int spidermonkey_eval_boolback(struct ecmascript_interpreter *interpreter, struct string *code);
|
2005-09-15 09:58:31 -04:00
|
|
|
|
2006-01-16 08:14:14 -05:00
|
|
|
extern struct module spidermonkey_module;
|
2005-09-15 09:58:31 -04:00
|
|
|
#endif
|