ctype: add ISUNRESERVED()

... and make Curl_isunreserved() use that macro instead of providing a
separate funtion for the purpose.

Closes #11840
This commit is contained in:
Daniel Stenberg 2023-09-12 15:38:02 +02:00
parent 6fa1d817e5
commit 291d225a50
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
3 changed files with 7 additions and 28 deletions

View file

@ -26,7 +26,9 @@
/* Escape and unescape URL encoding in strings. The functions return a new
* allocated string or NULL if an error occurred. */
bool Curl_isunreserved(unsigned char in);
#include "curl_ctype.h"
#define Curl_isunreserved(x) ISUNRESERVED(x)
enum urlreject {
REJECT_NADA = 2,