From 8313896a85e935e0bb1c3a50db125c4952c014b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D0=BE=D0=B1=D0=B1=D0=B8?= <lsm@cesanta.com> Date: Wed, 18 Oct 2017 14:58:21 +0100 Subject: [PATCH] Unbind things from v7 PUBLISHED_FROM=d20f138ae37c99a34cc29e7bfb327d7834404d93 --- examples/examples.mk | 5 ----- examples/restful_server/restful_server.c | 5 ----- 2 files changed, 10 deletions(-) diff --git a/examples/examples.mk b/examples/examples.mk index 69d1797a9..194ea46e7 100644 --- a/examples/examples.mk +++ b/examples/examples.mk @@ -21,11 +21,6 @@ ifeq ($(SSL_LIB),mbedtls) CFLAGS += -DMG_ENABLE_SSL -DMG_SSL_IF=MG_SSL_IF_MBEDTLS -DMG_SSL_MBED_DUMMY_RANDOM -lmbedcrypto -lmbedtls -lmbedx509 endif -ifeq ($(JS), yes) - V7_PATH = ../../deps/v7 - CFLAGS_EXTRA += -DMG_ENABLE_JAVASCRIPT -I $(V7_PATH) $(V7_PATH)/v7.c -endif - $(PROG): $(SOURCES) $(CC) $(SOURCES) -o $@ $(CFLAGS) diff --git a/examples/restful_server/restful_server.c b/examples/restful_server/restful_server.c index 264989e4b..df7a55c36 100644 --- a/examples/restful_server/restful_server.c +++ b/examples/restful_server/restful_server.c @@ -75,11 +75,6 @@ int main(int argc, char *argv[]) { s_http_port = argv[++i]; } else if (strcmp(argv[i], "-a") == 0 && i + 1 < argc) { s_http_server_opts.auth_domain = argv[++i]; -#if MG_ENABLE_JAVASCRIPT - } else if (strcmp(argv[i], "-j") == 0 && i + 1 < argc) { - const char *init_file = argv[++i]; - mg_enable_javascript(&mgr, v7_create(), init_file); -#endif } else if (strcmp(argv[i], "-P") == 0 && i + 1 < argc) { s_http_server_opts.global_auth_file = argv[++i]; } else if (strcmp(argv[i], "-A") == 0 && i + 1 < argc) { -- GitLab