From: Greg Stein Date: Thu, 7 Dec 2000 10:54:15 +0000 (+0000) Subject: *) simplify the AWK script a bit X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1a9d7b86441797fba0252fad1c2cde6055f43641;p=apache *) simplify the AWK script a bit *) do not put the (const void *) cast into the code (it isn't needed) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87248 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/build/buildexports.awk b/build/buildexports.awk index f6ef2a5a8e..6a12e14b54 100644 --- a/build/buildexports.awk +++ b/build/buildexports.awk @@ -1,8 +1,3 @@ -{ - if ($1 ~ /^APR_/) - print "#if", $1; - if ($1 ~ /^apr?_/) - print "const void *ap_hack_" $1 " = (const void *)" $1 ";"; - if ($1 ~ /^\/APR_/) - print "#endif /*", substr($1,2), "*/"; -} +/^APR_/ { print "#if", $1 } +/^\t*apr?_/ { print "const void *ap_hack_" $1 " = " $1 ";" } +/^\/APR_/ { print "#endif /*", substr($1,2), "*/" }