Rewrite URI -> path mapping, Windows fixes

PUBLISHED_FROM=6088958e92af2b028646816435892828ce9f7625
This commit is contained in:
Deomid Ryabkov authored and rojer committed 2016-02-13 13:59:16 +00:00
1 parent 148e1926e8
commit 51ad50a641
2 files changed
+380 -185

No files matched your search

+6 -1
View File
@@ -181,7 +181,10 @@ typedef struct stat cs_stat_t;
typedef struct _stati64 cs_stat_t;
#endif
#ifndef S_ISDIR
#define S_ISDIR(x) ((x) &_S_IFDIR)
#define S_ISDIR(x) (((x) &_S_IFMT) == _S_IFDIR)
#endif
#ifndef S_ISREG
#define S_ISREG(x) (((x) &_S_IFMT) == _S_IFREG)
#endif
#define DIRSEP '\\'
@@ -1278,6 +1281,8 @@ int mg_parse_uri(struct mg_str uri, struct mg_str *scheme,
unsigned int *port, struct mg_str *path, struct mg_str *query,
struct mg_str *fragment);
int mg_normalize_uri_path(const struct mg_str *in, struct mg_str *out);
#ifdef __cplusplus
}
#endif /* __cplusplus */