www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 6820] New: etc.c.curl missing const

http://d.puremagic.com/issues/show_bug.cgi?id=6820

           Summary: etc.c.curl missing const
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: braddr puremagic.com



---
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);

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 16 2011