mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
lib577: avoid redefinition of ERROR
This commit is contained in:
parent
01459828ef
commit
75743b009b
@ -34,7 +34,7 @@
|
|||||||
|
|
||||||
#define MATCH CURL_FNMATCH_MATCH
|
#define MATCH CURL_FNMATCH_MATCH
|
||||||
#define NOMATCH CURL_FNMATCH_NOMATCH
|
#define NOMATCH CURL_FNMATCH_NOMATCH
|
||||||
#define ERROR CURL_FNMATCH_FAIL
|
#define RE_ERR CURL_FNMATCH_FAIL
|
||||||
|
|
||||||
#define MAX_PATTERN_L 100
|
#define MAX_PATTERN_L 100
|
||||||
#define MAX_STRING_L 100
|
#define MAX_STRING_L 100
|
||||||
@ -48,8 +48,8 @@ struct testcase {
|
|||||||
static const struct testcase tests[] = {
|
static const struct testcase tests[] = {
|
||||||
/* brackets syntax */
|
/* brackets syntax */
|
||||||
{ "\\[", "[", MATCH },
|
{ "\\[", "[", MATCH },
|
||||||
{ "[", "[", ERROR },
|
{ "[", "[", RE_ERR },
|
||||||
{ "[]", "[]", ERROR },
|
{ "[]", "[]", RE_ERR },
|
||||||
{ "[][]", "[", MATCH },
|
{ "[][]", "[", MATCH },
|
||||||
{ "[][]", "]", MATCH },
|
{ "[][]", "]", MATCH },
|
||||||
{ "[[]", "[", MATCH },
|
{ "[[]", "[", MATCH },
|
||||||
@ -177,7 +177,7 @@ static const struct testcase tests[] = {
|
|||||||
{ "x", "", NOMATCH },
|
{ "x", "", NOMATCH },
|
||||||
|
|
||||||
/* backslash */
|
/* backslash */
|
||||||
{ "\\", "\\", ERROR },
|
{ "\\", "\\", RE_ERR },
|
||||||
{ "\\\\", "\\", MATCH },
|
{ "\\\\", "\\", MATCH },
|
||||||
{ "\\\\", "\\\\", NOMATCH },
|
{ "\\\\", "\\\\", NOMATCH },
|
||||||
{ "\\?", "?", MATCH },
|
{ "\\?", "?", MATCH },
|
||||||
|
Loading…
Reference in New Issue
Block a user