Fixed a problem with clibrary.c BUILTIN_MINI_STDLIB PlatformExit() not following the new function prototype. Fixes issue 107.

git-svn-id: http://picoc.googlecode.com/svn/trunk@481 21eae674-98b7-11dd-bd71-f92a316d2d60
This commit is contained in:
zik.saleeba 2010-08-08 11:42:18 +00:00
parent 1301fe7a8f
commit 15d5600c83

View file

@ -228,7 +228,7 @@ void GenericPrintf(struct ParseState *Parser, struct Value *ReturnValue, struct
}
/* get any field width in the format */
while (isdigit(*FPos))
while (isdigit((int)*FPos))
FieldWidth = FieldWidth * 10 + (*FPos++ - '0');
/* now check the format type */
@ -341,7 +341,7 @@ void LibGetc(struct ParseState *Parser, struct Value *ReturnValue, struct Value
void LibExit(struct ParseState *Parser, struct Value *ReturnValue, struct Value **Param, int NumArgs)
{
PlatformExit();
PlatformExit(Param[0]->Val->Integer);
}
#ifdef PICOC_MATH_LIBRARY
@ -603,7 +603,7 @@ struct LibraryFunction CLibrary[] =
{ LibSPrintf, "char *sprintf(char *, char *, ...);" },
{ LibGets, "void gets(char *, int);" },
{ LibGetc, "int getchar();" },
{ LibExit, "void exit();" },
{ LibExit, "void exit(int);" },
#ifdef PICOC_MATH_LIBRARY
{ LibSin, "float sin(float);" },
{ LibCos, "float cos(float);" },