Initial experiment in adding js support to w3m.

This commit is contained in:
Storm Dragon
2025-08-16 19:43:11 -04:00
parent e48858127f
commit 6cf0975fe1
82 changed files with 107987 additions and 2842 deletions

11
fm.h
View File

@@ -519,8 +519,19 @@ typedef struct _Buffer {
#ifdef USE_ALARM
struct _AlarmEvent *event;
#endif
#ifdef USE_JAVASCRIPT
struct BufferJSState *js_state;
struct W3MDocument *js_document;
struct W3MEventSystem *js_events;
#endif
} Buffer;
#ifdef USE_JAVASCRIPT
#include "js/w3m_javascript.h"
#include "js/w3m_dom.h"
#include "js/w3m_events.h"
#endif
typedef struct _BufferPos {
long top_linenumber;
long cur_linenumber;