Skip to content

Commit

Permalink
consting
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.parrot.org/parrot/trunk@39583 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
  • Loading branch information
petdance committed Jun 16, 2009
1 parent 20e7c7e commit 8e922a2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/runcore/trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -471,20 +471,20 @@ trace_op_dump(PARROT_INTERP,
done:

if (interp->code->annotations) {
PMC *annot = PackFile_Annotations_lookup(interp, interp->code->annotations,
PMC * const annot = PackFile_Annotations_lookup(interp, interp->code->annotations,
pc - code_start + 1, NULL);
if (!PMC_IS_NULL(annot)) {
PMC *pfile = VTABLE_get_pmc_keyed_str(interp, annot,
PMC * const pfile = VTABLE_get_pmc_keyed_str(interp, annot,
Parrot_str_new_constant(interp, "file"));
PMC *pline = VTABLE_get_pmc_keyed_str(interp, annot,
PMC * const pline = VTABLE_get_pmc_keyed_str(interp, annot,
Parrot_str_new_constant(interp, "line"));
if ((!PMC_IS_NULL(pfile)) && (!PMC_IS_NULL(pline))) {
/* The debugger interpreter may not be the same as
* the main interpreter, extract values from the
* PMC instad of passing them directly
*/
STRING *file = VTABLE_get_string(interp, pfile);
INTVAL line = VTABLE_get_integer(interp, pline);
STRING * const file = VTABLE_get_string(interp, pfile);
const INTVAL line = VTABLE_get_integer(interp, pline);
Parrot_io_eprintf(debugger, " (%Ss:%li)", file, (long)line);
}
}
Expand Down

0 comments on commit 8e922a2

Please sign in to comment.