]> granicus.if.org Git - apache/commitdiff
*) simplify the AWK script a bit
authorGreg Stein <gstein@apache.org>
Thu, 7 Dec 2000 10:54:15 +0000 (10:54 +0000)
committerGreg Stein <gstein@apache.org>
Thu, 7 Dec 2000 10:54:15 +0000 (10:54 +0000)
*) 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

build/buildexports.awk

index f6ef2a5a8e0efdd636ef6dc99ef0d6251f65d991..6a12e14b542e7b49d26bb859c22e2530471382ee 100644 (file)
@@ -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), "*/" }