diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2008-02-27 12:54:34 -0500 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2008-02-27 12:54:34 -0500 |
commit | ed1f47c32969a60eb074dc246c79ccda456ebf58 (patch) | |
tree | 65f8bc63b516fe525af1409fad83f44235d9e675 /staptree.h | |
parent | 781c25855e35a7b77e5794bd027ca0cf41e4a3a4 (diff) | |
parent | a2dc47ddef0dbed1b0dc912c876f5f57f97c1ede (diff) | |
download | systemtap-steved-ed1f47c32969a60eb074dc246c79ccda456ebf58.tar.gz systemtap-steved-ed1f47c32969a60eb074dc246c79ccda456ebf58.tar.xz systemtap-steved-ed1f47c32969a60eb074dc246c79ccda456ebf58.zip |
Merge branch 'master' of git://sources.redhat.com/git/systemtap
Diffstat (limited to 'staptree.h')
-rw-r--r-- | staptree.h | 25 |
1 files changed, 21 insertions, 4 deletions
@@ -287,31 +287,48 @@ struct print_format: public expression conv_unsigned_uppercase_hex, conv_unsigned_lowercase_hex, conv_string, + conv_memory, conv_literal, conv_binary, conv_size }; + enum width_type + { + width_unspecified, + width_static, + width_dynamic + }; + + enum precision_type + { + prec_unspecified, + prec_static, + prec_dynamic + }; + struct format_component { unsigned long flags; unsigned width; unsigned precision; + width_type widthtype; + precision_type prectype; conversion_type type; std::string literal_string; bool is_empty() const { return flags == 0 - && width == 0 - && precision == 0 + && widthtype == width_unspecified + && prectype == prec_unspecified && type == conv_unspecified && literal_string.empty(); } void clear() { flags = 0; - width = 0; - precision = 0; + widthtype = width_unspecified; + prectype = prec_unspecified; type = conv_unspecified; literal_string.clear(); } |