summaryrefslogtreecommitdiff
path: root/helpers/make_export.awk
diff options
context:
space:
mode:
Diffstat (limited to 'helpers/make_export.awk')
-rw-r--r--helpers/make_export.awk6
1 files changed, 3 insertions, 3 deletions
diff --git a/helpers/make_export.awk b/helpers/make_export.awk
index b58b657b3..5cffd1979 100644
--- a/helpers/make_export.awk
+++ b/helpers/make_export.awk
@@ -1,6 +1,6 @@
# Based on Ryan Bloom's make_export.pl
-/^#[ \t]*if(def)? APR_.*/ {
+/^#[ \t]*if(def)? (APR?_|defined).*/ {
if (old_filename != FILENAME) {
if (old_filename != "") printf("%s", line)
macro_no = 0
@@ -32,14 +32,14 @@
next
}
-/^[ \t]*(APR_DECLARE[^(]*[(])?(const[ \t])?[a-z_]+[)]?[ \t]+[*]?([A-Za-z0-9_]+)\(/ {
+/^[ \t]*(APR?_DECLARE[^(]*[(])?(const[ \t])?[a-z_]+[ \t\*]*[)]?[ \t]+[*]?([A-Za-z0-9_]+)\(/ {
if (found) {
found++
}
for (i = 0; i < count; i++) {
line = line "\t"
}
- sub("^[ \t]*(APR_DECLARE[^(]*[(])?(const[ \t])?[a-z_]+[)]?[ \t]+[*]?", "");
+ sub("^[ \t]*(APR?_DECLARE[^(]*[(])?(const[ \t])?[a-z_]+[ \t\*]*[)]?[ \t]+[*]?", "");
sub("[(].*", "");
line = line $0 "\n"
next