Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongoose
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esp
mongoose
Commits
8313896a
Commit
8313896a
authored
7 years ago
by
Бобби
Committed by
Cesanta Bot
7 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Unbind things from v7
PUBLISHED_FROM=d20f138ae37c99a34cc29e7bfb327d7834404d93
parent
81933021
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
10 deletions
+0
-10
examples.mk
examples/examples.mk
+0
-5
restful_server.c
examples/restful_server/restful_server.c
+0
-5
No files found.
examples/examples.mk
View file @
8313896a
...
...
@@ -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)
...
...
This diff is collapsed.
Click to expand it.
examples/restful_server/restful_server.c
View file @
8313896a
...
...
@@ -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
)
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment