make_nw_export.awk revision db479b48bd4d75423ed4a45e15b75089d1a8ad72
db479b48bd4d75423ed4a45e15b75089d1a8ad72fielding# Licensed to the Apache Software Foundation (ASF) under one or more
db479b48bd4d75423ed4a45e15b75089d1a8ad72fielding# contributor license agreements. See the NOTICE file distributed with
db479b48bd4d75423ed4a45e15b75089d1a8ad72fielding# this work for additional information regarding copyright ownership.
db479b48bd4d75423ed4a45e15b75089d1a8ad72fielding# The ASF licenses this file to You under the Apache License, Version 2.0
db479b48bd4d75423ed4a45e15b75089d1a8ad72fielding# (the "License"); you may not use this file except in compliance with
db479b48bd4d75423ed4a45e15b75089d1a8ad72fielding# the License. You may obtain a copy of the License at
240b85022b73af58a6d971cd3d05d54037d8f682nd# Unless required by applicable law or agreed to in writing, software
240b85022b73af58a6d971cd3d05d54037d8f682nd# distributed under the License is distributed on an "AS IS" BASIS,
240b85022b73af58a6d971cd3d05d54037d8f682nd# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
240b85022b73af58a6d971cd3d05d54037d8f682nd# See the License for the specific language governing permissions and
240b85022b73af58a6d971cd3d05d54037d8f682nd# limitations under the License.
43aea3e7c517d422b84242bd4474d94802d3b4e3bnicholes# Based on apr's make_export.awk, which is
43aea3e7c517d422b84242bd4474d94802d3b4e3bnicholes# based on Ryan Bloom's make_export.pl
43aea3e7c517d422b84242bd4474d94802d3b4e3bnicholes# List of functions that we don't support, yet??
ccc708e8694746878551e07afab3b9a4f14cee84bnicholes#/ap_some_name/{next}
c5add43aef9b32d94361f3e45749811f2a1d7148bnicholes/^[ \t]*AP([RU]|_CORE)?_DECLARE[^(]*[(][^)]*[)]([^ ]* )*[^(]+[(]/ {
c5add43aef9b32d94361f3e45749811f2a1d7148bnicholes sub("[ \t]*AP([RU]|_CORE)?_DECLARE[^(]*[(][^)]*[)][ \t]*", "")
7640ae77eade5ef41bb3bf964a9d437e64c55da3bnicholes/^[ \t]*APR_POOL_DECLARE_ACCESSOR[^(]*[(][^)]*[)]/ {
7640ae77eade5ef41bb3bf964a9d437e64c55da3bnicholes sub("[ \t]*APR_POOL_DECLARE_ACCESSOR[^(]*[(]", "", $0)
7640ae77eade5ef41bb3bf964a9d437e64c55da3bnicholes sub("[ \t]*APR_DECLARE_INHERIT_SET[^(]*[(]", "", $0)
7640ae77eade5ef41bb3bf964a9d437e64c55da3bnicholes/^[ \t]*APR_DECLARE_INHERIT_UNSET[^(]*[(][^)]*[)]/ {
7640ae77eade5ef41bb3bf964a9d437e64c55da3bnicholes sub("[ \t]*APR_DECLARE_INHERIT_UNSET[^(]*[(]", "", $0)
f45af25ac6e8877711b4779ce94e6cd5422492d5bnicholes/^[ \t]*(extern[ \t]+)?AP[RU]?_DECLARE_DATA .*;$/ {
43aea3e7c517d422b84242bd4474d94802d3b4e3bnicholes# printf(" %s", line)