summaryrefslogtreecommitdiff
path: root/build/make_nw_export.awk
diff options
context:
space:
mode:
authorGuenter Knauf <fuankg@apache.org>2011-03-20 19:14:45 +0000
committerGuenter Knauf <fuankg@apache.org>2011-03-20 19:14:45 +0000
commit10b8e047534882345bc1dbabcefbd68f99543ed2 (patch)
treecefe8006a6492d7e45482f8bd4ff23b61ab1c56e /build/make_nw_export.awk
parentdb1cf0ac7ff71870c5bacc96aa3125575d98f2b1 (diff)
downloadhttpd-10b8e047534882345bc1dbabcefbd68f99543ed2.tar.gz
Create dav.imp dynamically from header to catch all exports.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1083540 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build/make_nw_export.awk')
-rw-r--r--build/make_nw_export.awk12
1 files changed, 7 insertions, 5 deletions
diff --git a/build/make_nw_export.awk b/build/make_nw_export.awk
index 628ea60ff1..9386c7b558 100644
--- a/build/make_nw_export.awk
+++ b/build/make_nw_export.awk
@@ -25,8 +25,8 @@ BEGIN {
#/ap_some_name/{next}
/ap_mpm_pod_/{next}
-/^[ \t]*AP([RU]|_CORE)?_DECLARE[^(]*[(][^)]*[)]([^ ]* )*[^(]+[(]/ {
- sub("[ \t]*AP([RU]|_CORE)?_DECLARE[^(]*[(][^)]*[)][ \t]*", "")
+/^[ \t]*(AP|DAV)([RU]|_CORE)?_DECLARE[^(]*[(][^)]*[)]([^ ]* )*[^(]+[(]/ {
+ sub("[ \t]*(AP|DAV)([RU]|_CORE)?_DECLARE[^(]*[(][^)]*[)][ \t]*", "")
sub("[(].*", "")
sub("([^ ]* (^([ \t]*[(])))+", "")
add_symbol($0)
@@ -46,12 +46,14 @@ BEGIN {
/^[ \t]*AP[RU]?_DECLARE_EXTERNAL_HOOK[^(]*[(][^)]*/ {
split($0, args, ",")
+ prefix = args[1]
+ sub("^.*[(]", "", prefix)
symbol = args[4]
sub("^[ \t]+", "", symbol)
sub("[ \t]+$", "", symbol)
- add_symbol("ap_hook_" symbol)
- add_symbol("ap_hook_get_" symbol)
- add_symbol("ap_run_" symbol)
+ add_symbol(prefix "_hook_" symbol)
+ add_symbol(prefix "_hook_get_" symbol)
+ add_symbol(prefix "_run_" symbol)
next
}