From 8038424d1a20a036901aee301e8f27072b0cff5a Mon Sep 17 00:00:00 2001 From: "zik.saleeba" Date: Sat, 11 Apr 2009 06:36:40 +0000 Subject: [PATCH] Removed diagnostics git-svn-id: http://picoc.googlecode.com/svn/trunk@225 21eae674-98b7-11dd-bd71-f92a316d2d60 --- expression.c | 3 --- library_unix.c | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/expression.c b/expression.c index cca1739..48c4a97 100644 --- a/expression.c +++ b/expression.c @@ -274,10 +274,7 @@ int ExpressionParse(struct ParseState *Parser, struct Value **Result) ProgramFail(Parser, "can't assign incompatible types"); if (TotalValue->Typ->Base != TypeArray) - { - // XXX printf("assigning to 0x%lx\n", (long)TotalValue->Val); memcpy((void *)TotalValue->Val, (void *)CurrentValue->Val, TotalValue->Typ->Sizeof); - } else { /* array assignment */ if (TotalValue->Val->Array.Size != CurrentValue->Val->Array.Size) diff --git a/library_unix.c b/library_unix.c index b39071f..678098c 100644 --- a/library_unix.c +++ b/library_unix.c @@ -63,7 +63,7 @@ void Cpeek(struct ParseState *Parser, struct Value *ReturnValue, struct Value ** break; case 4: // int * ip = (unsigned int *)(ptr & 0xFFFFFFFC); // aling with quad boundary - ReturnValue->Val->Integer = 0 /*(int)*ip*/; + ReturnValue->Val->Integer = (int)*ip; break; default: ReturnValue->Val->Integer = 0; @@ -110,7 +110,7 @@ void Cpoke(struct ParseState *Parser, struct Value *ReturnValue, struct Value ** struct LibraryFunction PlatformLibrary[] = { { ShowComplex, "void ShowComplex(struct complex *)" }, - { Cpeek, "int peak(int, int)" }, + { Cpeek, "int peek(int, int)" }, { Cpoke, "void poke(int, int, int)" }, { Crandom, "int random(int, int)" }, { NULL, NULL }