From cvs-return-911-apmail-apr-cvs-archive=apr.apache.org@apr.apache.org Mon Mar 26 10:22:38 2001 Return-Path: Delivered-To: apmail-apr-cvs-archive@apr.apache.org Received: (qmail 30420 invoked by uid 500); 26 Mar 2001 10:22:35 -0000 Mailing-List: contact cvs-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: dev@apr.apache.org Delivered-To: mailing list cvs@apr.apache.org Received: (qmail 30409 invoked by uid 1095); 26 Mar 2001 10:22:34 -0000 Date: 26 Mar 2001 10:22:34 -0000 Message-ID: <20010326102234.30408.qmail@apache.org> From: bjh@apache.org To: apr-cvs@apache.org Subject: cvs commit: apr/build make_export.awk bjh 01/03/26 02:22:34 Modified: build make_export.awk Log: Add hooks declared with AP_DECLARE_HOOK to the list of exported symbols. Revision Changes Path 1.2 +14 -4 apr/build/make_export.awk Index: make_export.awk =================================================================== RCS file: /home/cvs/apr/build/make_export.awk,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- make_export.awk 2001/02/18 13:36:15 1.1 +++ make_export.awk 2001/03/26 10:22:33 1.2 @@ -31,22 +31,32 @@ next } -/^[ \t]*(AP[RU]?_DECLARE[^(]*[(])?(const[ \t])?[a-z_]+[ \t\*]*[)]?[ \t]+[*]?([A-Za-z0-9_]+)\(/ { +function add_symbol (sym_name) { if (count) { found++ } for (i = 0; i < count; i++) { line = line "\t" } - sub("^[ \t]*(AP[UR]?_DECLARE[^(]*[(])?(const[ \t])?[a-z_]+[ \t\*]*[)]?[ \t]+[*]?", ""); - sub("[(].*", ""); - line = line $0 "\n" + line = line sym_name "\n" if (count == 0) { printf("%s", line) line = "" } +} + +/^[ \t]*(AP[RU]?_DECLARE[^(]*[(])?(const[ \t])?[a-z_]+[ \t\*]*[)]?[ \t]+[*]?([A-Za-z0-9_]+)\(/ { + sub("^[ \t]*(AP[UR]?_DECLARE[^(]*[(])?(const[ \t])?[a-z_]+[ \t\*]*[)]?[ \t]+[*]?", ""); + sub("[(].*", ""); + add_symbol($0); next +} + +/^[ \t]*AP_DECLARE_HOOK[(][^,]+,[a-z_]+,.+[)]$/ { + split($0, args, ","); + add_symbol("ap_hook_" args[2]); + add_symbol("ap_run_" args[2]); } END {