ELinks 0.18.0
mujs.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "elinks.h"
#include "bfu/dialog.h"
#include "cache/cache.h"
#include "config/options.h"
#include "cookies/cookies.h"
#include "dialogs/menu.h"
#include "dialogs/status.h"
#include "document/html/frames.h"
#include "document/libdom/renderer.h"
#include "document/libdom/renderer2.h"
#include "document/document.h"
#include "document/forms.h"
#include "document/renderer.h"
#include "document/view.h"
#include "js/ecmascript.h"
#include "js/mujs.h"
#include "js/mujs/console.h"
#include "js/mujs/customevent.h"
#include "js/mujs/document.h"
#include "js/mujs/domparser.h"
#include "js/mujs/element.h"
#include "js/mujs/event.h"
#include "js/mujs/fragment.h"
#include "js/mujs/history.h"
#include "js/mujs/image.h"
#include "js/mujs/keyboard.h"
#include "js/mujs/localstorage.h"
#include "js/mujs/location.h"
#include "js/mujs/mapa.h"
#include "js/mujs/message.h"
#include "js/mujs/navigator.h"
#include "js/mujs/node.h"
#include "js/mujs/screen.h"
#include "js/mujs/unibar.h"
#include "js/mujs/url.h"
#include "js/mujs/window.h"
#include "js/mujs/xhr.h"
#include "intl/libintl.h"
#include "main/select.h"
#include "osdep/newwin.h"
#include "osdep/sysname.h"
#include "protocol/http/http.h"
#include "protocol/uri.h"
#include "session/history.h"
#include "session/location.h"
#include "session/session.h"
#include "session/task.h"
#include "terminal/tab.h"
#include "terminal/terminal.h"
#include "util/conv.h"
#include "util/memcount.h"
#include "util/string.h"
#include "viewer/text/draw.h"
#include "viewer/text/form.h"
#include "viewer/text/link.h"
#include "viewer/text/view.h"
#include "viewer/text/vs.h"

Functions

static const char * get_name_mujs (struct module *xxx)
static void mujs_init (struct module *module)
static void mujs_done (struct module *xxx)
void * mujs_get_interpreter (struct ecmascript_interpreter *interpreter)
void mujs_put_interpreter (struct ecmascript_interpreter *interpreter)
void mujs_eval (struct ecmascript_interpreter *interpreter, struct string *code, struct string *ret)
void mujs_call_function (struct ecmascript_interpreter *interpreter, const char *fun, struct string *ret)
char * mujs_eval_stringback (struct ecmascript_interpreter *interpreter, struct string *code)
int mujs_eval_boolback (struct ecmascript_interpreter *interpreter, struct string *code)
void addmethod (js_State *J, const char *name, js_CFunction fun, int n)
void addproperty (js_State *J, const char *name, js_CFunction getfun, js_CFunction setfun)

Variables

struct module mujs_module

Function Documentation

◆ addmethod()

void addmethod ( js_State * J,
const char * name,
js_CFunction fun,
int n )

◆ addproperty()

void addproperty ( js_State * J,
const char * name,
js_CFunction getfun,
js_CFunction setfun )

◆ get_name_mujs()

const char * get_name_mujs ( struct module * xxx)
static

◆ mujs_call_function()

void mujs_call_function ( struct ecmascript_interpreter * interpreter,
const char * fun,
struct string * ret )

◆ mujs_done()

void mujs_done ( struct module * xxx)
static

◆ mujs_eval()

void mujs_eval ( struct ecmascript_interpreter * interpreter,
struct string * code,
struct string * ret )

◆ mujs_eval_boolback()

int mujs_eval_boolback ( struct ecmascript_interpreter * interpreter,
struct string * code )

◆ mujs_eval_stringback()

char * mujs_eval_stringback ( struct ecmascript_interpreter * interpreter,
struct string * code )

◆ mujs_get_interpreter()

void * mujs_get_interpreter ( struct ecmascript_interpreter * interpreter)

◆ mujs_init()

void mujs_init ( struct module * module)
static

◆ mujs_put_interpreter()

void mujs_put_interpreter ( struct ecmascript_interpreter * interpreter)

Variable Documentation

◆ mujs_module

struct module mujs_module
Initial value:
N_("mujs"),
)
#define NULL
Definition explodename.c:35
#define N_(msg)
Definition libintl.h:25
#define struct_module(name, options, hooks, submods, data, init, done, getname)
Definition module.h:47
static void mujs_init(struct module *module)
Definition mujs.c:89
static const char * get_name_mujs(struct module *xxx)
Definition mujs.c:80
static void mujs_done(struct module *xxx)
Definition mujs.c:112