X-Git-Url: https://git.distorted.org.uk/~mdw/adns/blobdiff_plain/10554ed5982b03b2a486c0f09d479f8806f04c6a..8af5175d702f5d198d731adf760edf3bdcb60817:/src/internal.h diff --git a/src/internal.h b/src/internal.h index 9e442fe..4fc7d7f 100644 --- a/src/internal.h +++ b/src/internal.h @@ -683,6 +683,9 @@ static inline int ctype_alpha(int c) { return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z'); } static inline int ctype_822special(int c) { return strchr("()<>@,;:\\\".[]",c) != 0; } +static inline int ctype_domainunquoted(int c) { + return ctype_alpha(c) || ctype_digit(c) || (strchr("-_/+",c) != 0); +} static inline int errno_resources(int e) { return e==ENOMEM || e==ENOBUFS; }