Commit 1a9d7b86 authored by Greg Stein's avatar Greg Stein
Browse files

*) 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
parent 6123a823
Loading
Loading
Loading
Loading
+3 −8
Original line number Diff line number Diff line
{
    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), "*/" }