1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00

[libdom] parse.h

Contains document_parse and document_parse_text.
This commit is contained in:
Witold Filipczyk 2023-04-17 19:31:17 +02:00
parent 992ebdee2d
commit 31a89da35c
10 changed files with 27 additions and 5 deletions

View File

@ -16,7 +16,7 @@
#include "document/libdom/mapa.h"
#include "document/plain/renderer.h"
#include "document/xml/renderer.h"
#include "ecmascript/ecmascript.h"
#include "ecmascript/libdom/parse.h"
static bool

View File

@ -17,7 +17,7 @@
#include "document/libdom/corestrings.h"
#include "document/libdom/mapa.h"
#include "document/xml/renderer2.h"
#include "ecmascript/ecmascript.h"
#include "ecmascript/libdom/parse.h"
static bool

View File

@ -19,6 +19,7 @@
#include "document/xml/renderer.h"
#include "document/xml/renderer2.h"
#include "ecmascript/ecmascript.h"
#include "ecmascript/libdom/parse.h"
#ifdef CONFIG_MUJS
#include "ecmascript/mujs.h"
#else

View File

@ -195,12 +195,9 @@ void check_for_rerender(struct ecmascript_interpreter *interpreter, const char*
void toggle_ecmascript(struct session *ses);
void *document_parse(struct document *document);
void *document_parse_text(char *text, size_t length);
void free_document(void *doc);
void location_goto(struct document_view *doc_view, char *url);
void location_goto_const(struct document_view *doc_view, const char *url);
void el_insert_before(struct document *document, void *element, struct string *source);
extern char *console_error_filename;
extern char *console_log_filename;

View File

@ -28,6 +28,7 @@
#include "document/view.h"
#include "ecmascript/ecmascript.h"
#include "ecmascript/libdom/mujs/mapa.h"
#include "ecmascript/libdom/parse.h"
#include "ecmascript/mujs.h"
#include "ecmascript/mujs/collection.h"
#include "ecmascript/mujs/form.h"

View File

@ -11,6 +11,7 @@
#include "elinks.h"
#include "ecmascript/ecmascript.h"
#include "ecmascript/libdom/parse.h"
#include "ecmascript/mujs.h"
#include "ecmascript/mujs/document.h"
#include "ecmascript/mujs/implementation.h"

View File

@ -0,0 +1,19 @@
#ifndef EL__DOCUMENT_ECMASCRIPT_LIBDOM_PARSE_H
#define EL__DOCUMENT_ECMASCRIPT_LIBDOM_PARSE_H
#ifdef __cplusplus
extern "C" {
#endif
struct document;
struct string;
void *document_parse_text(char *data, size_t length);
void *document_parse(struct document *document);
void el_insert_before(struct document *document, void *element, struct string *source);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -20,6 +20,7 @@
#include "document/document.h"
#include "document/view.h"
#include "ecmascript/ecmascript.h"
#include "ecmascript/libdom/parse.h"
#include "ecmascript/libdom/quickjs/mapa.h"
#include "ecmascript/quickjs.h"
#include "ecmascript/quickjs/collection.h"

View File

@ -16,6 +16,7 @@
#include "elinks.h"
#include "ecmascript/ecmascript.h"
#include "ecmascript/libdom/parse.h"
#include "ecmascript/quickjs.h"
#include "ecmascript/quickjs/document.h"
#include "ecmascript/quickjs/implementation.h"

View File

@ -25,6 +25,7 @@
#include "document/view.h"
#include "ecmascript/css2xpath.h"
#include "ecmascript/ecmascript.h"
#include "ecmascript/libdom/parse.h"
#include "ecmascript/spidermonkey/collection.h"
#include "ecmascript/spidermonkey/form.h"
#include "ecmascript/spidermonkey/forms.h"