*) 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
-{
- 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), "*/" }