chiark / gitweb /
@@ -4,6 +4,8 @@
[adns] / src / internal.h
index 9e442fed7135ff0c87fbf896645535100e2c3bb5..4fc7d7f342c0e2ba8c86c3360ca15d12e33aaf8c 100644 (file)
@@ -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; }