From 177a8ead26e48a61efd904103a9d189cb27009dd Mon Sep 17 00:00:00 2001 From: fche Date: Tue, 1 Nov 2005 16:13:35 +0000 Subject: 2005-11-01 Frank Ch. Eigler PR 1425. * configure.ac: Look for rpm-devel headers and libs. * configure: Regenerated. * session.h: New file to contain systemtap_session decl. * staptree.h: Likewise evict statistics_decl. * elaborate.h: Corresponding changes. * main.cxx (usage): Elaborate. Re-enable "-r RELEASE" option. * parse.cxx (parser): Add systemtap_session& field. Update users. (scan_pp, eval_pp_conditional): New routines for preprocessing. (peek, next): Call it. (lexer::scan): Lex the preprocessor operators. (parser::parse): Include an extra level of exception catching for parse errors that occur during recovery. * parse.h: Corresponding changes. (parse_error): Allow explicit token parameter. * stap.1.in: Document preprocessing. * testsuite/parseok/fourteen.stp: New test. --- staptree.h | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'staptree.h') diff --git a/staptree.h b/staptree.h index 072cc2e2..11628b18 100644 --- a/staptree.h +++ b/staptree.h @@ -9,6 +9,7 @@ #ifndef STAPTREE_H #define STAPTREE_H +#include "session.h" #include #include #include @@ -38,19 +39,7 @@ struct semantic_error: public std::runtime_error // ------------------------------------------------------------------------ -struct statistic_decl -{ - statistic_decl() - : type(none), - logarithmic_buckets(0), - linear_low(0), linear_high(0), linear_step(0) - {} - enum { none, linear, logarithmic } type; - int64_t logarithmic_buckets; - int64_t linear_low; - int64_t linear_high; - int64_t linear_step; -}; +/* struct statistic_decl moved to session.h */ // ------------------------------------------------------------------------ -- cgit