mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-17 19:30:36 +00:00
Added lua includes
This commit is contained in:
1 parent
ce7515fca9
commit
18e28ef879
2 files changed
+6
-7
No files matched your search
@@ -3684,9 +3684,6 @@ int mg_parse_header(const char *s, const char *var_name, char *buf,
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef MONGOOSE_USE_LUA
|
#ifdef MONGOOSE_USE_LUA
|
||||||
#include <lua.h>
|
|
||||||
#include <lauxlib.h>
|
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
static void *mmap(void *addr, int64_t len, int prot, int flags, int fd,
|
static void *mmap(void *addr, int64_t len, int prot, int flags, int fd,
|
||||||
int offset) {
|
int offset) {
|
||||||
|
|||||||
+6
-4
@@ -114,10 +114,12 @@ int mg_authorize_digest(struct mg_connection *c, FILE *fp);
|
|||||||
|
|
||||||
// Lua utility functions
|
// Lua utility functions
|
||||||
#ifdef MONGOOSE_USE_LUA
|
#ifdef MONGOOSE_USE_LUA
|
||||||
void reg_string(struct lua_State *L, const char *name, const char *val);
|
#include <lua.h>
|
||||||
void reg_int(struct lua_State *L, const char *name, int val);
|
#include <lauxlib.h>
|
||||||
void reg_function(struct lua_State *L, const char *name,
|
void reg_string(lua_State *L, const char *name, const char *val);
|
||||||
lua_CFunction func, struct mg_connection *conn);
|
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
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|||||||
Reference in new issue
Block a user