Fix for eclipse submitted by christophe.foucher

Issue #177


git-svn-id: http://picoc.googlecode.com/svn/trunk@589 21eae674-98b7-11dd-bd71-f92a316d2d60
This commit is contained in:
zik.saleeba 2013-02-23 23:18:47 +00:00
parent 519e33c040
commit 54cfcffa9b
2 changed files with 2 additions and 1 deletions

2
lex.c
View file

@ -95,7 +95,7 @@ void LexInit(Picoc *pc)
TableSet(pc, &pc->ReservedWordTable, TableStrRegister(pc, ReservedWords[Count].Word), (struct Value *)&ReservedWords[Count], NULL, 0, 0); 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.Val = &pc->LexAnyValue;
pc->LexValue.LValueFrom = FALSE; pc->LexValue.LValueFrom = FALSE;
pc->LexValue.ValOnHeap = FALSE; pc->LexValue.ValOnHeap = FALSE;

View file

@ -549,6 +549,7 @@ enum ParseResult ParseStatement(struct ParseState *Parser, int CheckTrailingSemi
} }
} }
/* else fallthrough to expression */ /* else fallthrough to expression */
/* no break */
case TokenAsterisk: case TokenAsterisk:
case TokenAmpersand: case TokenAmpersand: