summaryrefslogtreecommitdiffstats
path: root/build/make_nw_export.awk
diff options
context:
space:
mode:
Diffstat (limited to 'build/make_nw_export.awk')
-rw-r--r--build/make_nw_export.awk12
1 files changed, 10 insertions, 2 deletions
diff --git a/build/make_nw_export.awk b/build/make_nw_export.awk
index 60c7a56f95..c8939e90e6 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|_WD)?_DECLARE[^(]*[(][^)]*[)]([^ ]* )*[^(]+[(]/ {
- sub("[ \t]*AP([RU]|_CORE|_WD)?_DECLARE[^(]*[(][^)]*[)][ \t]*", "")
+/^[ \t]*AP([RU]|_CORE)?_DECLARE[^(]*[(][^)]*[)]([^ ]* )*[^(]+[(]/ {
+ sub("[ \t]*AP([RU]|_CORE)?_DECLARE[^(]*[(][^)]*[)][ \t]*", "")
sub("[(].*", "")
sub("([^ ]* (^([ \t]*[(])))+", "")
add_symbol($0)
@@ -82,6 +82,14 @@ BEGIN {
add_symbol($NF)
}
+/^[ \t]*AP[RU]?_DECLARE_OPTIONAL_FN[^(]*[(][^)]*/ {
+ split($0, args, ",")
+ symbol = args[2]
+ sub("^[ \t]+", "", symbol)
+ add_symbol(symbol)
+ next
+}
+
#END {
# printf("\n\n#found: %d symbols.\n", found)
#}