deps/http-parser


Log

Author Commit Date CI Message
Vicent Marti 72bdfdbc 2011-09-29T15:24:41 http-parser: Disable MSVC warnings locally
Carlos Martín Nieto 0812caae 2011-09-28T23:54:09 Resync with upstream http-parser
Vicent Marti d215cf24 2011-09-28T20:21:48 http-parser: More type changes
Vicent Marti 59903b1f 2011-09-28T19:27:58 Change types in http-parser
Carlos Martín Nieto a5b0e7f8 2011-09-27T20:08:13 Really fix MSVC These was left over from the previous PRs. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
Carlos Martín Nieto 887eaf4d 2011-09-23T17:36:37 Fix dev branch under MSVC In libgit2: Move an enum out of an int bitfield in the HTTP transport. In the parser: Use int bitfields and change some variable sizes to better fit thir use. Variables that count the size of the data chunk can only ever be as large as off_t. Warning 4127 can be ignored, as nobody takes it seriously anyway. From Emeric: change some variable declarations to keep MSVC happy. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
Vicent Marti dc5c8781 2011-09-27T14:53:57 http-parser: Do not use bitfields Bitfields suck. And if you make them with non-int types, they suck in a non-standards compliant way. Like sucking sideways or something. This commit removes all bitfields in the `http_parser` struct, and replaces them with the minimal type needed to contain their values. Note that the fields in the struct have been reordered so they can be packed with 4-byte alignment. This saves both memory on the parser (because non-int bitfields get expanded to 4byte in most compilers anyway) and time (because the fields are now properly aligned and the compiler doesn't need to generate bit-level ops to access them).
Carlos Martín Nieto b8a8191f 2011-09-05T01:13:46 http: add http-parser The code is under the MIT lincense Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>