1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

picoev: make compile, add header parsing

This commit is contained in:
Sumeet Chhetri
2020-06-07 04:53:30 +05:30
committed by GitHub
parent d62d0c40d2
commit 442030a7c8
6 changed files with 41 additions and 17 deletions

View File

@ -39,12 +39,12 @@ extern "C" {
/* contains name and value of a header (name == NULL if is a continuing line
* of a multiline header */
struct phr_header {
typedef struct phr_header {
const char *name;
size_t name_len;
const char *value;
size_t value_len;
};
}phr_header;
/* returns number of bytes consumed if successful, -2 if request is partial,
* -1 if failed */