[svn:parrot] r41083 - trunk/src/runcore

NotFound at svn.parrot.org NotFound at svn.parrot.org
Sun Sep 6 21:05:22 UTC 2009


Author: NotFound
Date: Sun Sep  6 21:05:02 2009
New Revision: 41083
URL: https://trac.parrot.org/parrot/changeset/41083

Log:
[cage] fix c++ errors, warnings, and cstring freeing

Modified:
   trunk/src/runcore/cores.c

Modified: trunk/src/runcore/cores.c
==============================================================================
--- trunk/src/runcore/cores.c	Sun Sep  6 20:53:40 2009	(r41082)
+++ trunk/src/runcore/cores.c	Sun Sep  6 21:05:02 2009	(r41083)
@@ -1254,14 +1254,14 @@
                                   VTABLE_get_string(interp, preop_ctx->current_namespace));
 
                 fprintf(runcore->profile_fd,
-                        "CS:{x{ns:%s;%s}x}{x{file:%s}x}{x{sub:0x%X}x}{x{ctx:0x%X}x}\n",
+                        "CS:{x{ns:%s;%s}x}{x{file:%s}x}{x{sub:0x%p}x}{x{ctx:0x%p}x}\n",
                         ns_cstr, sub_cstr, filename_cstr,
-                        (unsigned int) preop_ctx->current_sub,
-                        (unsigned int) preop_ctx);
+                        preop_ctx->current_sub,
+                        preop_ctx);
 
-                mem_sys_free(sub_cstr);
-                mem_sys_free(filename_cstr);
-                mem_sys_free(ns_cstr);
+                Parrot_str_free_cstring(sub_cstr);
+                Parrot_str_free_cstring(filename_cstr);
+                Parrot_str_free_cstring(ns_cstr);
             }
 
             runcore->prev_ctx = preop_ctx;
@@ -1272,8 +1272,8 @@
          * but it gives me obviously incorrect results while postop_info.line
          * works.  It might be an imcc bug or it might just be me
          * misunderstanding something. */
-        fprintf(runcore->profile_fd, "OP:{x{line:%d}x}{x{time:%lli}x}{x{op:%s}x}\n",
-                postop_info.line, op_time,
+        fprintf(runcore->profile_fd, "OP:{x{line:%d}x}{x{time:%li}x}{x{op:%s}x}\n",
+                postop_info.line, (unsigned long)op_time,
                 (interp->op_info_table)[*preop_pc].name);
 
     } /* while (pc) */


More information about the parrot-commits mailing list