0
0
mirror of https://github.com/rkd77/elinks.git synced 2025-09-21 19:46:23 -04:00

Compile with C++.

Weak points:
- alignof
- js problems

Todo:
- make js work with C++ and mozjs-17
- then mozjs-24
- then mozjs-52
- then mozjs-60
- decrease number of warnings
This commit is contained in:
Witold Filipczyk
2019-02-17 20:46:16 +01:00
parent 25dd2ecae9
commit 4f4df33638
141 changed files with 649 additions and 620 deletions

View File

@@ -127,7 +127,7 @@ ecmascript_get_interpreter_count(void)
void
ecmascript_eval(struct ecmascript_interpreter *interpreter,
struct string *code, struct string *ret)
struct string_ *code, struct string_ *ret)
{
if (!get_ecmascript_enable())
return;
@@ -139,7 +139,7 @@ ecmascript_eval(struct ecmascript_interpreter *interpreter,
unsigned char *
ecmascript_eval_stringback(struct ecmascript_interpreter *interpreter,
struct string *code)
struct string_ *code)
{
unsigned char *result;
@@ -154,7 +154,7 @@ ecmascript_eval_stringback(struct ecmascript_interpreter *interpreter,
int
ecmascript_eval_boolback(struct ecmascript_interpreter *interpreter,
struct string *code)
struct string_ *code)
{
int result;
@@ -211,7 +211,7 @@ void
ecmascript_protocol_handler(struct session *ses, struct uri *uri)
{
struct document_view *doc_view = current_frame(ses);
struct string current_url = INIT_STRING(struri(uri), strlen(struri(uri)));
struct string_ current_url = INIT_STRING(struri(uri), strlen(struri(uri)));
unsigned char *redirect_url, *redirect_abs_url;
struct uri *redirect_uri;