Permalink
Browse files

Remove some debugging code

  • Loading branch information...
1 parent baf4b51 commit 42674a308b069fd65acba5dc1c76b251a25dbe80 @atrodo committed Mar 4, 2011
Showing with 0 additions and 7 deletions.
  1. +0 −3 internal_pmc/file.c
  2. +0 −4 pmc.c
View
@@ -13,13 +13,11 @@ lorito_internal_pmc_file_get_method(Lorito_Interp *interp, Lorito_Ctx *ctx)
Lorito_PMC *inself = lorito_pop_arg(interp, ctx);
lorito_clr_arg(interp, ctx);
- printf("1\n");
if (!IS_BOX_STR(inkey))
{
lorito_push_arg(interp, ctx, null);
return;
}
- printf("2\n");
if (!IS_FILE_BLOCK(inself))
{
//Bah.
@@ -34,7 +32,6 @@ lorito_internal_pmc_file_get_method(Lorito_Interp *interp, Lorito_Ctx *ctx)
int i;
for (i=0; i < self->codeseg_count; i++)
{
- printf("%s\n", self->codesegs[i]->name);
if (self->codesegs[i]->name == key)
{
lorito_push_arg(interp, ctx, PMC self->codesegs[i]);
View
4 pmc.c
@@ -92,13 +92,9 @@ lorito_pmc_encode(Lorito_Interp *interp, Lorito_PMC *dest, int offset, Lorito_PM
if (dest->ptrs == NULL)
abort();
}
- dest->ptrs = (Lorito_PMC **) realloc(dest->ptrs, dest->ptr_count * sizeof(Lorito_PMC *));
*(int *) (dest->data + offset) = current;
- dest->ptrs = (Lorito_PMC **) realloc(dest->ptrs, dest->ptr_count * sizeof(Lorito_PMC *));
dest->ptrs[current] = src;
- dest->ptrs = (Lorito_PMC **) realloc(dest->ptrs, dest->ptr_count * sizeof(Lorito_PMC *));
result = dest;
- dest->ptrs = (Lorito_PMC **) realloc(dest->ptrs, dest->ptr_count * sizeof(Lorito_PMC *));
}
return result;

0 comments on commit 42674a3

Please sign in to comment.