Loading build/buildexports.awk 0 → 100644 +8 −0 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), "*/"; } build/buildexports.sh +1 −21 Original line number Diff line number Diff line Loading @@ -17,27 +17,7 @@ done cd ../../../ echo "" while read LINE do if [ "x`echo $LINE | egrep '^[:space:]*APR_'`" != "x" ]; then ifline=`echo "$LINE" |\ sed -e 's%^\(.*\)%\#if \1%'` echo $ifline fi if [ "x`echo $LINE | egrep '^[:space:]*apr_'`" != "x" ]; then # newline=`echo "$LINE" |\ # sed -e 's%^\(.*\)%extern const void *\1\\(void\);%'` # echo $newline newline=`echo "$LINE" |\ sed -e 's%^\(.*\)%const void *ap_hack_\1 = \(const void *\)\1\;%'` echo $newline fi if [ "x`echo $LINE | egrep '^[:space:]*\/APR_'`" != "x" ]; then endline=`echo "$LINE" |\ sed -e 's%^\/\(.*\)%\#endif \/\*\1\*\/%'` echo "$endline" fi done awk -f build/buildexports.awk echo "" echo "void *ap_ugly_hack;" Loading Loading
build/buildexports.awk 0 → 100644 +8 −0 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), "*/"; }
build/buildexports.sh +1 −21 Original line number Diff line number Diff line Loading @@ -17,27 +17,7 @@ done cd ../../../ echo "" while read LINE do if [ "x`echo $LINE | egrep '^[:space:]*APR_'`" != "x" ]; then ifline=`echo "$LINE" |\ sed -e 's%^\(.*\)%\#if \1%'` echo $ifline fi if [ "x`echo $LINE | egrep '^[:space:]*apr_'`" != "x" ]; then # newline=`echo "$LINE" |\ # sed -e 's%^\(.*\)%extern const void *\1\\(void\);%'` # echo $newline newline=`echo "$LINE" |\ sed -e 's%^\(.*\)%const void *ap_hack_\1 = \(const void *\)\1\;%'` echo $newline fi if [ "x`echo $LINE | egrep '^[:space:]*\/APR_'`" != "x" ]; then endline=`echo "$LINE" |\ sed -e 's%^\/\(.*\)%\#endif \/\*\1\*\/%'` echo "$endline" fi done awk -f build/buildexports.awk echo "" echo "void *ap_ugly_hack;" Loading