From 2d7881bf6e14d14fa1394f65f11b4d1dce4e2623 Mon Sep 17 00:00:00 2001 From: Przemyslaw Pawelczyk Date: Fri, 28 Aug 2009 02:11:47 +0200 Subject: Support || and && in preprocessor's conditions. * parse.cxx (parser::scan_pp): Add || and &&. * stap.1.in: Document || and && in PREPROCESSING. * testsuite/parseok/twenty.stp: Test case. * testsuite/parseko/preprocess14.stp: Ditto. * testsuite/parseko/preprocess15.stp: Ditto. Signed-off-by: Josh Stone --- stap.1.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'stap.1.in') diff --git a/stap.1.in b/stap.1.in index aafd2d7d..3ac1c398 100644 --- a/stap.1.in +++ b/stap.1.in @@ -309,7 +309,10 @@ ternary operator: .ESAMPLE The CONDITION is either an expression whose format is determined by its first keyword, or a string literals comparison or a numeric literals -comparison. +comparison. It can be also composed of many alternatives and conjunctions +of CONDITIONs (meant as in previous sentence) using || and && respectively. +However, parentheses are not supported yet, so remembering that conjunction +takes precedence over alternative is important. .PP If the first part is the identifier .BR kernel_vr " or " kernel_v -- cgit