Added NO_FP around new FP assign code

git-svn-id: http://picoc.googlecode.com/svn/trunk@264 21eae674-98b7-11dd-bd71-f92a316d2d60
This commit is contained in:
zik.saleeba 2009-04-22 22:28:30 +00:00
parent 146a591ed0
commit 99656dc9fb

View file

@ -141,7 +141,8 @@ int ExpressionAssignInt(struct ParseState *Parser, struct Value *DestValue, int
return Result;
}
/* assign an integer value */
#ifndef NO_FP
/* assign a floating point value */
int ExpressionAssignFP(struct ParseState *Parser, struct Value *DestValue, double FromFP)
{
if (!DestValue->IsLValue)
@ -150,6 +151,7 @@ int ExpressionAssignFP(struct ParseState *Parser, struct Value *DestValue, doubl
DestValue->Val->FP = FromFP;
return FromFP;
}
#endif
/* push a node on to the expression stack */
void ExpressionStackPushValueNode(struct ParseState *Parser, struct ExpressionStack **StackTop, struct Value *ValueLoc)