Skip to content

Commit

Permalink
Remove uses of 'in' on extern(C) functions
Browse files Browse the repository at this point in the history
It is forbidden by DMD master.
  • Loading branch information
Geod24 committed Jul 18, 2022
1 parent 6257c7e commit 4573cca
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions etc/c/curl.d
Original file line number Diff line number Diff line change
Expand Up @@ -1372,9 +1372,9 @@ alias curl_TimeCond = int;
/** curl_strequal() and curl_strnequal() are subject for removal in a future
libcurl, see lib/README.curlx for details */
extern (C) {
int curl_strequal(in const(char) *s1, in const(char) *s2);
int curl_strequal(scope const(char) *s1, scope const(char) *s2);
/// ditto
int curl_strnequal(in const(char) *s1, in const(char) *s2, size_t n);
int curl_strnequal(scope const(char) *s1, scope const(char) *s2, size_t n);
}
enum CurlForm {
nothing, /********** the first one is unused ************/
Expand Down Expand Up @@ -1464,7 +1464,7 @@ CURLFORMcode curl_formadd(curl_httppost **httppost, curl_httppost **last_post,.
* Should return the buffer length passed to it as the argument "len" on
* success.
*/
alias curl_formget_callback = size_t function(void *arg, in const(char) *buf, size_t len);
alias curl_formget_callback = size_t function(void *arg, const(char) *buf, size_t len);

/**
* Name: curl_formget()
Expand Down Expand Up @@ -1514,10 +1514,10 @@ char * curl_version();
* %XX versions). This function returns a new allocated string or NULL if an
* error occurred.
*/
char * curl_easy_escape(CURL *handle, in const(char) *string, int length);
char * curl_easy_escape(CURL *handle, scope const(char) *string, int length);

/** the previous version: */
char * curl_escape(in const(char) *string, int length);
char * curl_escape(scope const(char) *string, int length);


/**
Expand All @@ -1531,10 +1531,10 @@ char * curl_escape(in const(char) *string, int length);
* Conversion Note: On non-ASCII platforms the ASCII %XX codes are
* converted into the host encoding.
*/
char * curl_easy_unescape(CURL *handle, in const(char) *string, int length, int *outlength);
char * curl_easy_unescape(CURL *handle, scope const(char) *string, int length, int *outlength);

/** the previous version */
char * curl_unescape(in const(char) *string, int length);
char * curl_unescape(scope const(char) *string, int length);

/**
* Name: curl_free()
Expand Down Expand Up @@ -1608,7 +1608,7 @@ struct curl_slist
* Appends a string to a linked list. If no list exists, it will be created
* first. Returns the new list, after appending.
*/
curl_slist * curl_slist_append(curl_slist *, in const(char) *);
curl_slist * curl_slist_append(curl_slist *, const(char) *);

/**
* Name: curl_slist_free_all()
Expand Down

0 comments on commit 4573cca

Please sign in to comment.