From 54cfcffa9bfc4de891e0a568f6197f55be549fb3 Mon Sep 17 00:00:00 2001 From: "zik.saleeba" Date: Sat, 23 Feb 2013 23:18:47 +0000 Subject: [PATCH] Fix for eclipse submitted by christophe.foucher Issue #177 git-svn-id: http://picoc.googlecode.com/svn/trunk@589 21eae674-98b7-11dd-bd71-f92a316d2d60 --- lex.c | 2 +- parse.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lex.c b/lex.c index 1daeef5..042f933 100644 --- a/lex.c +++ b/lex.c @@ -95,7 +95,7 @@ void LexInit(Picoc *pc) TableSet(pc, &pc->ReservedWordTable, TableStrRegister(pc, ReservedWords[Count].Word), (struct Value *)&ReservedWords[Count], NULL, 0, 0); } - pc->LexValue.Typ = TypeVoid; + pc->LexValue.Typ = NULL; pc->LexValue.Val = &pc->LexAnyValue; pc->LexValue.LValueFrom = FALSE; pc->LexValue.ValOnHeap = FALSE; diff --git a/parse.c b/parse.c index 72b6d67..6a3e4d9 100644 --- a/parse.c +++ b/parse.c @@ -549,6 +549,7 @@ enum ParseResult ParseStatement(struct ParseState *Parser, int CheckTrailingSemi } } /* else fallthrough to expression */ + /* no break */ case TokenAsterisk: case TokenAmpersand: