]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(underscorechar): New.
authorUlrich Drepper <drepper@redhat.com>
Thu, 2 Apr 1998 16:12:29 +0000 (16:12 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 2 Apr 1998 16:12:29 +0000 (16:12 +0000)
(middlechar): Allow '_'.

resolv/res_comp.c

index ed4bcdc58fb7f3e0e3f0714d53c7661933d2fd65..94a6270b6e3a036cd881311135df69dca53c41f4 100644 (file)
@@ -354,6 +354,7 @@ dn_find(exp_dn, msg, dnptrs, lastdnptr)
  */
 #define PERIOD 0x2e
 #define        hyphenchar(c) ((c) == 0x2d)
+#define        underscorechar(c) ((c) == 0x5f)
 #define bslashchar(c) ((c) == 0x5c)
 #define periodchar(c) ((c) == PERIOD)
 #define asterchar(c) ((c) == 0x2a)
@@ -362,7 +363,7 @@ dn_find(exp_dn, msg, dnptrs, lastdnptr)
 #define digitchar(c) ((c) >= 0x30 && (c) <= 0x39)
 
 #define borderchar(c) (alphachar(c) || digitchar(c))
-#define middlechar(c) (borderchar(c) || hyphenchar(c))
+#define middlechar(c) (borderchar(c) || hyphenchar(c) || underscorechar(c))
 #define        domainchar(c) ((c) > 0x20 && (c) < 0x7f)
 
 int