X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=m4%2Fdnslib.m4;h=3e796a3ac91ddb9cbd74e73d10e97f6c2943a2e7;hb=702c59e0e8d95d2798f798123fb03319d6a84957;hp=0c74b459102c3cf97c803f3542ba7056d5e8cc19;hpb=747c80cf4a1294d69e8905c349d796e472768c16;p=nsc-5.git diff --git a/m4/dnslib.m4 b/m4/dnslib.m4 index 0c74b45..3e796a3 100644 --- a/m4/dnslib.m4 +++ b/m4/dnslib.m4 @@ -1,12 +1,12 @@ dnl ### -dnl ### NSC 3.0 -- Library Functions For DNS Processing -dnl ### (c) 1997--2003 Martin Mares +dnl ### NSC -- Library Functions For DNS Processing +dnl ### (c) 1997--2008 Martin Mares dnl ### divert(-1) # NSC version -define(`NSCVER', `NSC 2.99a') +define(`NSCVER', `NSC 3.1') # Current date and time @@ -37,8 +37,7 @@ define(nsc_corr_dot, `ifelse(substr($1,decr(len($1))),.,$1,$1`'ifelse(index($1,. define(nsc_if_v6, `ifelse(index($1,:),-1,`$3',`$2')') -define(nsc_norm_v6, `nsc_norm_v6_z(dnl -ifelse(regexp($1,`::.*::'),-1,`ifelse(index($1,::),-1,`nsc_norm_v6_nn($1)',`nsc_norm_v6_cc($1)')',`nsc_bad_v6($1)'))') +define(nsc_norm_v6, `nsc_norm_v6_z(ifelse(regexp($1,`::.*::'),-1,`ifelse(index($1,::),-1,`nsc_norm_v6_nn($1)',`nsc_norm_v6_cc($1)')',`nsc_bad_v6($1)'))') # If there is no ::, check the number of :'s define(nsc_norm_v6_nn, `ifelse(nsc_extract_colons($1),:::::::,$1,`nsc_bad_v6($1)')') # Replace :: by the right number of :'s to get 8 (possibly empty) components