Reducing warnings about implicit definitions

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

View file

@ -16,7 +16,8 @@ void StdIsalpha(struct ParseState *Parser, struct Value *ReturnValue, struct Val
void StdIsblank(struct ParseState *Parser, struct Value *ReturnValue, struct Value **Param, int NumArgs)
{
ReturnValue->Val->Integer = isblank(Param[0]->Val->Integer);
int ch = Param[0]->Val->Integer;
ReturnValue->Val->Integer = (ch == ' ') | (ch == '\t');
}
void StdIscntrl(struct ParseState *Parser, struct Value *ReturnValue, struct Value **Param, int NumArgs)

View file

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