**************************************************************************/
+/*
+ * Simple utility to dump a trace to standard output.
+ */
+
+
#include "trace_parser.hpp"
int main(int argc, char **argv)
{
- for (int i = 1; i < argc; ++i) {
- Trace::Parser p;
- if (p.open(argv[i])) {
- Trace::Call *call;
- while ((call = p.parse_call())) {
- std::cout << *call;
- }
- }
- }
- return 0;
+ for (int i = 1; i < argc; ++i) {
+ Trace::Parser p;
+ if (p.open(argv[i])) {
+ Trace::Call *call;
+ call = p.parse_call();
+ while (call) {
+ std::cout << *call;
+ delete call;
+ call = p.parse_call();
+ }
+ }
+ }
+ return 0;
}