From cf5f58f1bc155654aa5af725991f4318a1e5d781 Mon Sep 17 00:00:00 2001 From: Curle Date: Sat, 21 Nov 2020 02:32:46 +0000 Subject: [PATCH] Small cleanup of print output. --- src/Pointers.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Pointers.c b/src/Pointers.c index 36e52c9..e036095 100644 --- a/src/Pointers.c +++ b/src/Pointers.c @@ -29,6 +29,7 @@ int ValueAt(int Type) { printf("\t\tDereferencing a %s\n", TypeNames[Type]); //TODO: this is still bullshittery! if(Type >= PTR_CHAR && Type <= PTR_VOID) { + printf("\t\t\tDereference of %s is %s.\r\n", TypeNames[Type], TypeNames[Type - 4]); return Type - 4; } else { DieDecimal("Unable to dereference type", Type); @@ -89,7 +90,7 @@ struct ASTNode* AccessArray() { RightNode = MutateType(RightNode, LeftNode->ExprType, OP_ADD); LeftNode = ConstructASTNode(OP_ADD, Symbols[ID].Type, LeftNode, NULL, RightNode, 0); - printf("\t\t\tAccessArray: Preparing LeftNode for dereference.\r\n"); + printf("\tAccessArray: Preparing LeftNode for dereference.\r\n"); LeftNode = ConstructASTBranch(OP_DEREF, ValueAt(LeftNode->ExprType), LeftNode, 0); printf("\tArray Access constructed\r\n"); return LeftNode;