From 934845563af3c85df78c17ee4752caa100ea6157 Mon Sep 17 00:00:00 2001 From: fche Date: Fri, 7 Oct 2005 19:09:02 +0000 Subject: 2005-10-07 Frank Ch. Eigler PR 1366. * staptree.h (foreach_loop): Add sort_column, sort_direction fields. * parse.cxx (parse_foreach_loop): Parse "+"/"-" suffix operators. * stap.1.in, stapex.5.in: Document them. * staptree.cxx (foreach_loop print, copy): Propagate them. * translate.cxx (visit_foreach_loop): Support them. * testsuite/parseok/fifteen.stp, parseko/thirteen.stp, buildok/twentyone.stp: Test them. 2005-10-07 Frank Ch. Eigler PR 1366. * systemtap.samples/primes.*: Sort foreach gratuitiously. --- staptree.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'staptree.h') diff --git a/staptree.h b/staptree.h index fd19bd99..8bc901d5 100644 --- a/staptree.h +++ b/staptree.h @@ -312,6 +312,8 @@ struct foreach_loop: public statement std::vector indexes; std::string base; vardecl* base_referent; + int sort_direction; // -1: decreasing, 0: none, 1: increasing + unsigned sort_column; // 0: value, 1..N: index statement* block; void print (std::ostream& o) const; -- cgit