1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-15 23:35:34 +00:00

[main] module.cpp -> module.c

This commit is contained in:
Witold Filipczyk 2023-11-25 14:30:05 +01:00
parent 29832783cb
commit f70c1dc51b
5 changed files with 9 additions and 5 deletions

View File

@ -1,6 +1,8 @@
#ifndef EL__ECMASCRIPT_ECMASCRIPT_C_H
#define EL__ECMASCRIPT_ECMASCRIPT_C_H
#include "main/module.h"
#ifdef __cplusplus
extern "C" {
#endif
@ -10,6 +12,8 @@ struct session;
int ecmascript_get_interpreter_count(void);
void toggle_ecmascript(struct session *ses);
extern struct module ecmascript_module;
#ifdef __cplusplus
}
#endif

View File

@ -205,8 +205,6 @@ extern char *console_log_filename;
extern char *local_storage_filename;
extern int local_storage_ready;
extern struct module ecmascript_module;
#ifdef __cplusplus
}
#endif

View File

@ -3,6 +3,6 @@ include $(top_builddir)/Makefile.config
OBJS-$(CONFIG_INTERLINK) += interlink.o
OBJS = event.o main.o module.obj select.o timer.obj version.o
OBJS = event.o main.o module.o select.o timer.obj version.o
include $(top_srcdir)/Makefile.lib

View File

@ -1,4 +1,4 @@
if conf_data.get('CONFIG_INTERLINK')
srcs += files('interlink.c')
endif
srcs += files('event.c', 'main.c', 'module.cpp', 'select.c', 'timer.cpp', 'version.c')
srcs += files('event.c', 'main.c', 'module.c', 'select.c', 'timer.cpp', 'version.c')

View File

@ -21,7 +21,9 @@
#include "dialogs/exmode.h"
#include "document/css/css.h"
#include "document/document.h"
#include "ecmascript/ecmascript.h"
#if defined(CONFIG_ECMASCRIPT_SMJS) || defined(CONFIG_MUJS) || defined(CONFIG_QUICKJS)
#include "ecmascript/ecmascript-c.h"
#endif
#include "formhist/formhist.h"
#include "globhist/globhist.h"
#ifdef CONFIG_NLS