]> git.saurik.com Git - bison.git/blobdiff - tests/headers.at
YYFAIL: remove.
[bison.git] / tests / headers.at
index cac7fe5fc6ff6fc847ff0b434884507719b463ce..421dd7d849adf2771b622674609b3a7a41e41368 100644 (file)
@@ -169,8 +169,9 @@ AT_SKEL_CC_IF([],
 # YYPUSH_MORE(_DEFINED)? (whose definition is constant).
 #
 # YYDEBUG (not renamed) can be read, but not changed.
-AT_CHECK([[sed -ne 's,/\*[^*]*\*/,,g;s,//.*,,' \
-                -e '/YY/p' ]$1.AT_SKEL_CC_IF([hh], [h])[ |
+AT_CHECK([[$PERL -0777 -e 's{/\*.*?\*/}{}sg;s,//.*,,;' \
+            ]$1.AT_SKEL_CC_IF([hh], [h])[ |
+         grep 'YY' |
      $EGREP -wv 'YY(PARSE_PARAM|PUSH_MORE(_DEFINED)?)|(defined|if) YYDEBUG']],
          [1])
 AT_LANG_COMPILE([$1.o])