Bug 6820 – etc.c.curl missing const

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2011-10-16T19:50:21Z
Last change time
2017-12-18T22:56:22Z
Keywords
bootcamp
Assigned to
No Owner
Creator
Brad Roberts

Comments

Comment #0 by braddr — 2011-10-16T19:50:21Z
Many of the curl api's take const buffers/strings but the .d wrapper leaves out the const'ness. For example: curl.h: CURL_EXTERN char *curl_easy_unescape(CURL *handle, const char *string, int length, int *outlength); curl.d: char * curl_easy_unescape(CURL *handle, char *string, int length, int *outlength);
Comment #1 by github-bugzilla — 2017-11-04T16:41:45Z
Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/a516b51d0e44316f6371a3cd78bd3133a035e99b Fix Issue 6820 - etc.c.curl missing const https://github.com/dlang/phobos/commit/25a6420e2bc277c75c934e14adfdf5951797e1d8 Merge pull request #5843 from Darredevil/issue-6820-curl-missing-const Fix Issue 6820 - etc.c.curl missing const merged-on-behalf-of: Vladimir Panteleev <[email protected]>
Comment #2 by github-bugzilla — 2017-12-18T22:56:22Z
Commits pushed to stable at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/a516b51d0e44316f6371a3cd78bd3133a035e99b Fix Issue 6820 - etc.c.curl missing const https://github.com/dlang/phobos/commit/25a6420e2bc277c75c934e14adfdf5951797e1d8 Merge pull request #5843 from Darredevil/issue-6820-curl-missing-const