G:/ScriptBasic/source/modumana.c File Reference

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include "basext.h"
#include "sym.h"
#include "errcodes.h"
#include "report.h"
#include "lexer.h"
#include "expression.h"
#include "builder.h"
#include "memory.h"
#include "syntax.h"
#include "execute.h"
#include "myalloc.h"
#include "dynlolib.h"
#include "modumana.h"

Go to the source code of this file.

Defines

#define FNLEN   1024

Functions

int modu_Init (pExecuteObject pEo, int iForce)
int modu_Preload (pExecuteObject pEo)
void * modu_GetModuleFunctionByName (pModule pThisModule, char *pszFunctionName)
void * modu_GetStaticFunctionByName (void *pLibrary, char *pszFunctionName)
int modu_LoadModule (pExecuteObject pEo, char *pszLibraryFile, pModule **pThisModule)
int modu_GetFunctionByName (pExecuteObject pEo, char *pszLibraryFile, char *pszFunctionName, void **ppFunction, pModule **pThisModule)
int modu_UnloadAllModules (pExecuteObject pEo)
int modu_UnloadModule (pExecuteObject pEo, char *pszLibraryFile)
int modu_ShutdownModule (pExecuteObject pEo, pModule pThisModule)

Variables

int GlobalDebugDisplayFlag
MODLIST StaticallyLinkedModules []


Define Documentation

#define FNLEN   1024
 


Function Documentation

int modu_GetFunctionByName pExecuteObject  pEo,
char *  pszLibraryFile,
char *  pszFunctionName,
void **  ppFunction,
pModule **  pThisModule
 

Definition at line 601 of file modumana.c.

References COMMAND_ERROR_SUCCESS, modu_GetModuleFunctionByName(), modu_Init(), modu_LoadModule(), and NULL.

Referenced by COMMAND_EXTERNAL(), COMMAND_EXTERNAM(), and modu_Init().

void* modu_GetModuleFunctionByName pModule  pThisModule,
char *  pszFunctionName
 

Definition at line 337 of file modumana.c.

References dynlolib_GetFunctionByName(), and modu_GetStaticFunctionByName().

Referenced by COMMAND_EXTERNAL(), COMMAND_EXTERNAM(), modu_GetFunctionByName(), modu_LoadModule(), modu_ShutdownModule(), modu_UnloadAllModules(), and modu_UnloadModule().

void* modu_GetStaticFunctionByName void *  pLibrary,
char *  pszFunctionName
 

Definition at line 362 of file modumana.c.

References NULL.

Referenced by modu_GetModuleFunctionByName().

int modu_Init pExecuteObject  pEo,
int  iForce
 

Definition at line 75 of file modumana.c.

References alloc_Alloc(), alloc_FinishSegment(), alloc_Free(), alloc_FreeSegment(), alloc_InitSegment(), alloc_SegmentLimit(), basext_GetArgsF(), cft_EnumFirst(), cft_EnumNext(), cft_FindNode(), cft_GetEx(), cft_GetKey(), cft_GetString(), COMMAND_ERROR_MEMORY_LOW, COMMAND_ERROR_SUCCESS, dynlolib_FreeLibrary(), dynlolib_GetFunctionByName(), dynlolib_LoadLibrary(), execute_Convert2DoubleS(), execute_Convert2LongS(), execute_Convert2String(), execute_CopyCommandTable(), execute_DereferenceS(), execute_Evaluate(), execute_GetCommandByName(), execute_GetDoubleValue(), execute_GetLongValue(), execute_IsStringInteger(), execute_LeftValue(), file_deltree(), file_exists(), file_fclose(), file_feof(), file_ferror(), file_fgetc(), file_flock(), file_fopen(), file_fputc(), file_fread(), file_fwrite(), file_isdir(), file_isreg(), file_lock(), file_MakeDirectory(), file_mkdir(), file_opendir(), file_remove(), file_rmdir(), file_size(), file_time_accessed(), file_time_created(), file_time_modified(), file_truncate(), handle_DestroyHandleArray(), handle_FreeHandle(), handle_GetHandle(), handle_GetPointer(), log_init(), log_printf(), log_shutdown(), log_state(), match_count(), match_index(), match_InitSets(), match_match(), match_ModifySet(), match_parameter(), match_size(), MD5Final(), MD5Init(), MD5Update(), memory_DupMortalize(), memory_Immortalize(), memory_NewArray(), memory_NewDouble(), memory_NewLong(), memory_NewMortalArray(), memory_NewMortalDouble(), memory_NewMortalLong(), memory_NewMortalRef(), memory_NewMortalString(), memory_NewRef(), memory_NewString(), memory_ReleaseMortals(), memory_ReleaseVariable(), memory_SetRef(), modu_GetFunctionByName(), modu_LoadModule(), modu_UnloadAllModules(), modu_UnloadModule(), NULL, options_Get(), options_Reset(), options_Set(), scriba_BuildCode(), scriba_Call(), scriba_CallArg(), scriba_CallArgEx(), scriba_destroy(), scriba_DestroySbArgs(), scriba_DestroySbData(), scriba_DoLexicalAnalysis(), scriba_DoSyntaxAnalysis(), scriba_GetCacheFileName(), scriba_GetVariable(), scriba_GetVariableType(), scriba_InheritBinaryProgram(), scriba_InheritConfiguration(), scriba_IsFileBinaryFormat(), scriba_LoadBinaryProgram(), scriba_LoadConfiguration(), scriba_LoadSourceProgram(), scriba_LookupFunctionByName(), scriba_LookupVariableByName(), scriba_new(), scriba_NewSbArgs(), scriba_NewSbBytes(), scriba_NewSbData(), scriba_NewSbDouble(), scriba_NewSbLong(), scriba_NewSbString(), scriba_NewSbUndef(), scriba_NoRun(), scriba_PurgeBuilderMemory(), scriba_PurgeExecuteMemory(), scriba_PurgeLexerMemory(), scriba_PurgeReaderMemory(), scriba_PurgeSyntaxerMemory(), scriba_ReadSource(), scriba_ResetVariables(), scriba_Run(), scriba_RunExternalPreprocessor(), scriba_SaveCacheFile(), scriba_SaveCCode(), scriba_SaveCode(), scriba_SetCgiFlag(), scriba_SetEmbedPointer(), scriba_SetEnvironment(), scriba_SetFileName(), scriba_SetReportFunction(), scriba_SetReportPointer(), scriba_SetStdin(), scriba_SetStdout(), scriba_SetVariable(), scriba_UseCacheFile(), shared_FinishLock(), shared_InitLock(), shared_LockRead(), shared_LockWrite(), shared_UnlockRead(), shared_UnlockWrite(), sym_DeleteSymbol(), sym_FreeSymbolTable(), sym_LookupSymbol(), sym_NewSymbolTable(), sym_TraverseSymbolTable(), thread_CreateThread(), thread_ExitThread(), thread_FinishMutex(), thread_InitMutex(), thread_LockMutex(), and thread_UnlockMutex().

Referenced by COMMAND_EXTERNAL(), COMMAND_EXTERNAM(), ipreproc_LoadInternalPreprocessor(), modu_GetFunctionByName(), modu_LoadModule(), and scriba_InitModuleInterface().

int modu_LoadModule pExecuteObject  pEo,
char *  pszLibraryFile,
pModule **  pThisModule
 

Definition at line 396 of file modumana.c.

References ALLOC, cft_EnumNext(), cft_GetEx(), cft_GetKey(), cft_GetString(), COMMAND_ERROR_MEMORY_LOW, COMMAND_ERROR_SUCCESS, dynlolib_LoadLibrary(), FNLEN, GlobalDebugDisplayFlag, i, iResult, j, modu_GetModuleFunctionByName(), modu_Init(), NULL, s, StaticallyLinkedModules, and strcpy().

Referenced by modu_GetFunctionByName(), modu_Init(), and modu_Preload().

int modu_Preload pExecuteObject  pEo  ) 
 

Definition at line 304 of file modumana.c.

References cft_EnumNext(), cft_GetEx(), cft_GetKey(), modu_LoadModule(), NULL, and s.

Referenced by execute_InitStructure(), execute_ReInitStructure(), and main().

int modu_ShutdownModule pExecuteObject  pEo,
pModule  pThisModule
 

Definition at line 809 of file modumana.c.

References COMMAND_ERROR_SUCCESS, iError, modu_GetModuleFunctionByName(), and NULL.

Referenced by modu_UnloadAllModules(), modu_UnloadModule(), and scriba_ShutdownMtModules().

int modu_UnloadAllModules pExecuteObject  pEo  ) 
 

Definition at line 633 of file modumana.c.

References alloc_Alloc(), COMMAND_ERROR_MEMORY_LOW, COMMAND_ERROR_SUCCESS, dynlolib_FreeLibrary(), FREE, memcpy(), modu_GetModuleFunctionByName(), modu_ShutdownModule(), NULL, thread_LockMutex(), and thread_UnlockMutex().

Referenced by modu_Init().

int modu_UnloadModule pExecuteObject  pEo,
char *  pszLibraryFile
 

Definition at line 740 of file modumana.c.

References alloc_Alloc(), COMMAND_ERROR_MEMORY_LOW, COMMAND_ERROR_SUCCESS, dynlolib_FreeLibrary(), memcpy(), modu_GetModuleFunctionByName(), modu_ShutdownModule(), NULL, thread_LockMutex(), and thread_UnlockMutex().

Referenced by modu_Init().


Variable Documentation

int GlobalDebugDisplayFlag
 

Definition at line 57 of file dynlolib.c.

MODLIST StaticallyLinkedModules[]
 

Definition at line 157 of file stndlone.c.

Referenced by modu_LoadModule().


Generated on Sun Mar 12 23:56:37 2006 for ScriptBasic by  doxygen 1.4.6-NO