diff options
author | Przemyslaw Pawelczyk <przemyslaw@pawelczyk.it> | 2009-08-28 02:11:47 +0200 |
---|---|---|
committer | Josh Stone <jistone@redhat.com> | 2009-08-28 11:21:24 -0700 |
commit | 2d7881bf6e14d14fa1394f65f11b4d1dce4e2623 (patch) | |
tree | 85ca79b32737d42779c3b02fe0d290f6f9f25579 /stap.1.in | |
parent | a4433a9da1f21c6536266531308ba231e5efae81 (diff) | |
download | systemtap-steved-2d7881bf6e14d14fa1394f65f11b4d1dce4e2623.tar.gz systemtap-steved-2d7881bf6e14d14fa1394f65f11b4d1dce4e2623.tar.xz systemtap-steved-2d7881bf6e14d14fa1394f65f11b4d1dce4e2623.zip |
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 <jistone@redhat.com>
Diffstat (limited to 'stap.1.in')
-rw-r--r-- | stap.1.in | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |