Return-Path: Mailing-List: contact cvs-help@apr.apache.org; run by ezmlm Delivered-To: mailing list cvs@apr.apache.org Received: (qmail 60036 invoked by uid 1095); 20 Dec 2000 14:28:47 -0000 Date: 20 Dec 2000 14:28:47 -0000 Message-ID: <20001220142847.60026.qmail@locus.apache.org> From: bjh@locus.apache.org To: apr-cvs@apache.org Subject: cvs commit: apr/helpers make_export.awk bjh 00/12/20 06:28:46 Modified: helpers make_export.awk Log: When building exports list, allow for multi-part and negative conditions in #if tests. Revision Changes Path 1.3 +2 -2 apr/helpers/make_export.awk Index: make_export.awk =================================================================== RCS file: /home/cvs/apr/helpers/make_export.awk,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- make_export.awk 2000/12/19 17:05:28 1.2 +++ make_export.awk 2000/12/20 14:28:45 1.3 @@ -1,6 +1,6 @@ # Based on Ryan Bloom's make_export.pl -/^#[ \t]*if(def)? (APR?_|defined).*/ { +/^#[ \t]*if(def)? (APR?_|!?defined).*/ { if (old_filename != FILENAME) { if (old_filename != "") printf("%s", line) macro_no = 0 @@ -10,7 +10,7 @@ line = "" } macro_stack[macro_no++] = macro - macro = $2 + macro = substr($0, length($1)+2) found++ count++ line = line macro "\n"