2009-03-15 03:07:21 -04:00
|
|
|
#include "picoc.h"
|
|
|
|
|
|
|
|
void PlatformLibraryInit()
|
|
|
|
{
|
2009-04-08 08:00:45 -04:00
|
|
|
}
|
|
|
|
|
2009-06-15 10:33:21 -04:00
|
|
|
void Ctest (struct ParseState *Parser, struct Value *ReturnValue, struct Value **Param, int NumArgs)
|
|
|
|
{
|
|
|
|
printf("test(%d)\n", Param[0]->Val->Integer);
|
|
|
|
Param[0]->Val->Integer = 1234;
|
|
|
|
}
|
|
|
|
|
2009-03-15 03:07:21 -04:00
|
|
|
/* list of all library functions and their prototypes */
|
|
|
|
struct LibraryFunction PlatformLibrary[] =
|
|
|
|
{
|
2009-06-15 10:33:21 -04:00
|
|
|
{ Ctest, "void test(int)" },
|
2009-03-15 03:07:21 -04:00
|
|
|
{ NULL, NULL }
|
|
|
|
};
|
|
|
|
|