Mercurial > hg > waaad
view extensions/radius_gw/rsc/register-parse.awk @ 379:0d679f66e34a
Updated strings
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Tue, 26 May 2009 16:31:07 +0900 |
parents | 9d330bd07134 |
children |
line wrap: on
line source
{ print "\t\t/*", $0, "*/" } # Add commented line of input { if ($1 ~ /^[0-9][0-9]?[0-9]?$/) print "\tif ( c == " $1 ") return \"" $2,$3 $4 $5 "\";" } { if ($1 ~ /^([0-9][0-9]?[0-9]?)-([0-9][0-9]?[0-9]?)$/) { split($1, a, "-"); print "\tif ((c >= " a[1] ") && (c <= " a[2] ")) return \"" $2,$3 $4 $5 "\";" }}