From db135493669e5e2e1d0dc5c30c8d4a38bfd6653f Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Thu, 8 Apr 2010 17:15:49 -0400 Subject: PR11343: backward compatibility option/conditional * main.cxx: Add "--compatible=VERSION" option. * session.h (compatible): Store it. * parse.cxx (eval_pp_conditional): Look at it as %( systemtap_v CMP VALUE ... %) * stap.1.in: Document it. * testsuite/parseko/preprocess17.stp, parseok/twenty.stp: Test it. --- testsuite/parseok/twenty.stp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'testsuite/parseok') diff --git a/testsuite/parseok/twenty.stp b/testsuite/parseok/twenty.stp index d474ad5d..f03ae267 100755 --- a/testsuite/parseok/twenty.stp +++ b/testsuite/parseok/twenty.stp @@ -10,3 +10,6 @@ global %( $# != 2 && @# < "1" && @# == "0" && $# >= 3 %? %( $2 >= "12" %? $3 FAIL2 %: $2 FAIL3 %) #This line must not be evaluated %: PASS2 %) + +global +%( systemtap_v >= "1.2" %? PASS3 %: "FAIL" %) -- cgit