Added a tentative test for bug #108.

Fixed a comment problem (standard compliance).


git-svn-id: http://picoc.googlecode.com/svn/trunk@489 21eae674-98b7-11dd-bd71-f92a316d2d60
This commit is contained in:
zik.saleeba 2011-01-24 02:20:48 +00:00
parent 543964f6f9
commit 29f48a2921
2 changed files with 5 additions and 1 deletions

View file

@ -121,7 +121,7 @@ void MathSqrt(struct ParseState *Parser, struct Value *ReturnValue, struct Value
void MathRound(struct ParseState *Parser, struct Value *ReturnValue, struct Value **Param, int NumArgs)
{
/* this awkward definition of "round()" due to it being inconsistently
/* declared in math.h */
* declared in math.h */
ReturnValue->Val->FP = ceil(Param[0]->Val->FP - 0.5);
}

View file

@ -14,4 +14,8 @@ bloggs.natasha = 34;
printf("%d\n", bloggs.boris);
printf("%d\n", bloggs.natasha);
//struct fred jones[2];
//jones[0].boris = 12;
//jones[0].natasha = 34;
void main() {}