EgtInterface 1.5j4 :

- ora si imposta un context corrente anche per le API come per LUA
- il context corrente di LUA coincide con quello delle API.
This commit is contained in:
Dario Sassi
2014-10-15 15:31:00 +00:00
parent 3b1e139286
commit 46c5fce044
29 changed files with 594 additions and 528 deletions
+6 -6
View File
@@ -28,9 +28,9 @@ using namespace std ;
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtInitTscExec( int nGseCtx)
__stdcall EgtInitTscExec( void)
{
GseContext* pGseCtx = GetGseContext( nGseCtx) ;
GseContext* pGseCtx = GetCurrGseContext() ;
VERIFY_CTX_GEOMDB( pGseCtx, FALSE)
// eventuale pulizia esecutore e suoi oggetti
@@ -72,9 +72,9 @@ __stdcall EgtInitTscExec( int nGseCtx)
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtTscExecFile( int nGseCtx, const wchar_t* wsFilePath)
__stdcall EgtTscExecFile( const wchar_t* wsFilePath)
{
ICmdParser* pTscExec = GetTscExecutor( nGseCtx) ;
ICmdParser* pTscExec = GetCurrTscExecutor() ;
VERIFY_TSCEXEC( pTscExec, FALSE)
// converto nome file
@@ -94,9 +94,9 @@ __stdcall EgtTscExecFile( int nGseCtx, const wchar_t* wsFilePath)
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtTscExecLine( int nGseCtx, const wchar_t* wsLine)
__stdcall EgtTscExecLine( const wchar_t* wsLine)
{
ICmdParser* pTscExec = GetTscExecutor( nGseCtx) ;
ICmdParser* pTscExec = GetCurrTscExecutor() ;
VERIFY_TSCEXEC( pTscExec, FALSE)
// eseguo il comando
return ( pTscExec->ExecLine( wstrztoA( wsLine)) ? TRUE : FALSE) ;