comparison src/pt.cc @ 5765:7ba9ad1fec11

[project @ 2006-04-17 05:05:15 by jwe]
author jwe
date Mon, 17 Apr 2006 05:05:17 +0000
parents 7099eb9841b4
children 93c65f2a5668
comparison
equal deleted inserted replaced
5764:80409c2defcc 5765:7ba9ad1fec11
24 #ifdef HAVE_CONFIG_H 24 #ifdef HAVE_CONFIG_H
25 #include <config.h> 25 #include <config.h>
26 #endif 26 #endif
27 27
28 #include <iostream> 28 #include <iostream>
29 #include <sstream>
29 #include <string> 30 #include <string>
30
31 #include "lo-sstream.h"
32 31
33 #include "ov-fcn.h" 32 #include "ov-fcn.h"
34 #include "pt.h" 33 #include "pt.h"
35 #include "pt-pr-code.h" 34 #include "pt-pr-code.h"
36 35
50 // create a memory leak. 49 // create a memory leak.
51 50
52 std::string 51 std::string
53 tree::str_print_code (void) 52 tree::str_print_code (void)
54 { 53 {
55 OSSTREAM buf; 54 std::ostringstream buf;
56 55
57 tree_print_code tpc (buf); 56 tree_print_code tpc (buf);
58 57
59 accept (tpc); 58 accept (tpc);
60 59
61 buf << OSSTREAM_ENDS; 60 std::string retval = buf.str ();
62
63 std::string retval = OSSTREAM_STR (buf);
64
65 OSSTREAM_FREEZE (buf);
66 61
67 return retval; 62 return retval;
68 } 63 }
69 64
70 /* 65 /*