1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00
elinks/src/scripting/smjs/core.h
Witold Filipczyk 0fea79cc8f [cflags] Removed -Wno-pointer-sign
Likely some new bugs were introduced by this change.
The long term goal is clean compilation by g++.
2021-01-02 16:20:27 +01:00

24 lines
501 B
C

#ifndef EL__SCRIPTING_SMJS_CORE_H
#define EL__SCRIPTING_SMJS_CORE_H
#include "ecmascript/spidermonkey-shared.h"
struct module;
struct session;
struct string;
extern JSContext *smjs_ctx;
extern struct session *smjs_ses;
void alert_smjs_error(char *msg);
void init_smjs(struct module *module);
void cleanup_smjs(struct module *module);
JSString *utf8_to_jsstring(JSContext *ctx, const char *str,
int length);
char *jsstring_to_utf8(JSContext *ctx, JSString *jsstr,
int *length);
#endif