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
64005362
Commit
64005362
authored
9 years ago
by
Sergey Lyubka
Committed by
Marko Mikulicic
9 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename v7_get_global_object() -> v7_get_global()
PUBLISHED_FROM=91a306d5dbc55d65505904b1a19cca5bbe9f58cc
parent
77610306
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
mongoose.c
mongoose.c
+2
-2
No files found.
mongoose.c
View file @
64005362
...
@@ -1910,7 +1910,7 @@ enum v7_err mg_enable_javascript(struct mg_mgr *m, struct v7 *v7,
...
@@ -1910,7 +1910,7 @@ enum v7_err mg_enable_javascript(struct mg_mgr *m, struct v7 *v7,
const
char
*
init_file_name
)
{
const
char
*
init_file_name
)
{
v7_val_t
v
;
v7_val_t
v
;
m
->
v7
=
v7
;
m
->
v7
=
v7
;
v7_set_method
(
v7
,
v7_get_global
_object
(
v7
),
"mg_send"
,
mg_send_js
);
v7_set_method
(
v7
,
v7_get_global
(
v7
),
"mg_send"
,
mg_send_js
);
return
v7_exec_file
(
v7
,
init_file_name
,
&
v
);
return
v7_exec_file
(
v7
,
init_file_name
,
&
v
);
}
}
#endif
#endif
...
@@ -4107,7 +4107,7 @@ static void http_handler(struct mg_connection *nc, int ev, void *ev_data) {
...
@@ -4107,7 +4107,7 @@ static void http_handler(struct mg_connection *nc, int ev, void *ev_data) {
if
(
v7
!=
NULL
)
{
if
(
v7
!=
NULL
)
{
/* Lookup JS callback */
/* Lookup JS callback */
v1
=
v7_get
(
v7
,
v7_get_global
_object
(
v7
),
"Http"
,
~
0
);
v1
=
v7_get
(
v7
,
v7_get_global
(
v7
),
"Http"
,
~
0
);
v2
=
v7_get
(
v7
,
v1
,
ev_name
,
~
0
);
v2
=
v7_get
(
v7
,
v1
,
ev_name
,
~
0
);
/* Create callback params. TODO(lsm): own/disown those */
/* Create callback params. TODO(lsm): own/disown those */
...
...
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