Closed GoogleCodeExporter closed 9 years ago
Your std::multimap suggestion sounds reasonable. Be aware of the following
implementation considerations beyond the required C++ changes:
1. Implement a C API for the multimap type. This would be similar in concept to
the cef_string_map implementation.
2. Add std::multimap parsing support to tools/cef_parser.py.
3. Create a unit test to verify the functionality.
Patches welcome.
Original comment by magreenb...@gmail.com
on 24 Oct 2011 at 2:13
Good advice. I have already considered 1. and 3. Thanks for bringing 2. to my
attention! I'll start working on a patch ASAP.
Original comment by yyankov
on 24 Oct 2011 at 2:19
Here's the patch against r342. Hopefully not too many people will hate me for
it, as it makes dealing with request/response headers a wee bit more involved.
Original comment by yyankov
on 27 Oct 2011 at 6:17
Attachments:
Great works, thanks! Committed as revision 346 with the following minor changes:
1. Remove the unused cef_string_multimap_iter_t typedef from
cef_string_multimap.h
2. Fix Mac compile errors in string_unittest.cc
3. Fix minor formatting errors.
Original comment by magreenb...@gmail.com
on 28 Oct 2011 at 9:32
Compiling on Linux with GCC 4.6 causes errors:
cef/libcef/cef_string_multimap.cc: In function ‘int
cef_string_multimap_enumerate(cef_string_multimap_t, const cef_string_t*, int,
cef_string_t*)’:
cef/libcef/cef_string_multimap.cc:49:12: error: converting to non-pointer type
‘int’ from NULL [-Werror=conversion-null]
cef/libcef/cef_string_multimap.cc:59:12: error: converting to non-pointer type
‘int’ from NULL [-Werror=conversion-null]
cef/libcef/cef_string_multimap.cc: In function ‘int
cef_string_multimap_key(cef_string_multimap_t, int, cef_string_t*)’:
cef/libcef/cef_string_multimap.cc:73:12: error: converting to non-pointer type
‘int’ from NULL [-Werror=conversion-null]
cef/libcef/cef_string_multimap.cc: In function ‘int
cef_string_multimap_value(cef_string_multimap_t, int, cef_string_t*)’:
cef/libcef/cef_string_multimap.cc:90:12: error: converting to non-pointer type
‘int’ from NULL [-Werror=conversion-null]
cc1plus: all warnings being treated as errors
Original comment by fdd...@gmail.com
on 28 Oct 2011 at 9:38
[deleted comment]
Fix for this problem:
Original comment by fdd...@gmail.com
on 28 Oct 2011 at 9:43
Attachments:
For the life of me I cannot figure out what I was thinking returning NULL
instead of 0 :) Sorry about that. That's why nullptr should have been invented
ages ago.
Original comment by yyankov
on 28 Oct 2011 at 9:56
@comment#7: Thanks, fixed in revision 347.
Original comment by magreenb...@gmail.com
on 31 Oct 2011 at 3:27
Original issue reported on code.google.com by
yyankov
on 24 Oct 2011 at 1:11