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
18e28ef8
Commit
18e28ef8
authored
Mar 09, 2014
by
Sergey Lyubka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added lua includes
parent
ce7515fc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
mongoose.c
mongoose.c
+0
-3
mongoose.h
mongoose.h
+6
-4
No files found.
mongoose.c
View file @
18e28ef8
...
...
@@ -3684,9 +3684,6 @@ int mg_parse_header(const char *s, const char *var_name, char *buf,
}
#ifdef MONGOOSE_USE_LUA
#include <lua.h>
#include <lauxlib.h>
#ifdef _WIN32
static
void
*
mmap
(
void
*
addr
,
int64_t
len
,
int
prot
,
int
flags
,
int
fd
,
int
offset
)
{
...
...
mongoose.h
View file @
18e28ef8
...
...
@@ -114,10 +114,12 @@ int mg_authorize_digest(struct mg_connection *c, FILE *fp);
// Lua utility functions
#ifdef MONGOOSE_USE_LUA
void
reg_string
(
struct
lua_State
*
L
,
const
char
*
name
,
const
char
*
val
);
void
reg_int
(
struct
lua_State
*
L
,
const
char
*
name
,
int
val
);
void
reg_function
(
struct
lua_State
*
L
,
const
char
*
name
,
lua_CFunction
func
,
struct
mg_connection
*
conn
);
#include <lua.h>
#include <lauxlib.h>
void
reg_string
(
lua_State
*
L
,
const
char
*
name
,
const
char
*
val
);
void
reg_int
(
lua_State
*
L
,
const
char
*
name
,
int
val
);
void
reg_function
(
lua_State
*
L
,
const
char
*
,
lua_CFunction
,
struct
mg_connection
*
);
#endif
#ifdef __cplusplus
...
...
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