From 704238f9265b973d29c366180ae258bd1a05bdff Mon Sep 17 00:00:00 2001 From: "zik.saleeba" Date: Tue, 15 Feb 2011 22:35:13 +0000 Subject: [PATCH] Fixed references to LibraryInit git-svn-id: http://picoc.googlecode.com/svn/trunk@539 21eae674-98b7-11dd-bd71-f92a316d2d60 --- platform/library_ffox.c | 2 +- platform/library_surveyor.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/library_ffox.c b/platform/library_ffox.c index 15465a9..93bf999 100644 --- a/platform/library_ffox.c +++ b/platform/library_ffox.c @@ -8,6 +8,6 @@ struct LibraryFunction PlatformLibrary[] = void PlatformLibraryInit() { - LibraryInit(&GlobalTable, "platform library", &PlatformLibrary); + LibraryAdd(&GlobalTable, "platform library", &PlatformLibrary); } diff --git a/platform/library_surveyor.c b/platform/library_surveyor.c index c9cd8eb..0dd3470 100644 --- a/platform/library_surveyor.c +++ b/platform/library_surveyor.c @@ -36,7 +36,7 @@ void PlatformLibraryInit() VariableDefinePlatformVar(NULL, "cxmax", &IntType, (union AnyValue *)&Cxmax, FALSE); VariableDefinePlatformVar(NULL, "cymin", &IntType, (union AnyValue *)&Cymin, FALSE); VariableDefinePlatformVar(NULL, "cymax", &IntType, (union AnyValue *)&Cymax, FALSE); - LibraryInit(&GlobalTable, "platform library", &PlatformLibrary[0]); + LibraryAdd(&GlobalTable, "platform library", &PlatformLibrary[0]); } void Csignal(struct ParseState *Parser, struct Value *ReturnValue, struct Value **Param, int NumArgs) // check for kbhit, return t or nil