In metaconfig.git, the branch master has been updated

<http://perl5.git.perl.org/metaconfig.git/commitdiff/7bd925e6d5c37ea08d88d74f0c76456744d47b16?hp=ce92b45824804da828aa9a1cb53d69e1a54e2acc>

- Log -----------------------------------------------------------------
commit 7bd925e6d5c37ea08d88d74f0c76456744d47b16
Author: Andy Dougherty <[email protected]>
Date:   Wed Jun 6 09:35:31 2012 -0400

    Avoid Cppsym warnings for extra tokens [perl #113024]
    
    The cppsymbols can include macros such as __INT16_C(c), which can't
    best tested with a simple #ifdef.  This patch strips off the opening
    parenthesis and everything following it.  These macros were generated
    by cpp -dM.
-----------------------------------------------------------------------

Summary of changes:
 U/modified/Cppsym.U |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/U/modified/Cppsym.U b/U/modified/Cppsym.U
index 6eed09b..12f9ffe 100644
--- a/U/modified/Cppsym.U
+++ b/U/modified/Cppsym.U
@@ -223,8 +223,9 @@ case "$osname::$gccversion" in
     tHdrH=_tmpHdr
     rm -f $tHdrH'.h' $tHdrH
     touch $tHdrH'.h'
+    # Filter out macro arguments, such as Linux's __INT8_C(c)
     if $cpp -dM $tHdrH'.h' > $tHdrH'_cppsym.h' && [ -s $tHdrH'_cppsym.h' ]; 
then
-       sed 's/#define[\ \  ]*//;s/[\ \     ].*$//' <$tHdrH'_cppsym.h' 
>$tHdrH'_cppsym.real'
+       sed -e 's/#define[\ \  ]*//;s/[\ \     ].*$//' -e 's/(.*//' 
<$tHdrH'_cppsym.h' >$tHdrH'_cppsym.real'
        if [ -s $tHdrH'_cppsym.real' ]; then
          cat $tHdrH'_cppsym.real' Cppsym.know | sort | uniq | ./Cppsym | sort 
| uniq > Cppsym.true
        fi

--
perl5 metaconfig repository

Reply via email to