EgtInterface 2.5l3 :

- aggiunte interfacce per funzioni EgtDuploInRawCount e EgtDuploWithoutRawList.
This commit is contained in:
Dario Sassi
2023-12-14 20:26:26 +01:00
parent f696385d37
commit d1f288ab3d
2 changed files with 33 additions and 0 deletions
+33
View File
@@ -220,6 +220,39 @@ __stdcall EgtDuploList( int nSouId, int*& vInd, int* pnCount)
return TRUE ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtDuploInRawCount( int nSouId, int* pnCount)
{
if ( pnCount == nullptr)
return FALSE ;
return ( ExeDuploInRawCount( nSouId, *pnCount) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtDuploWithoutRawList( int*& vInd, int* pnCount)
{
if ( &vInd == nullptr || pnCount == nullptr)
return FALSE ;
INTVECTOR vnDup ;
if ( ! ExeDuploWithoutRawList( vnDup))
return FALSE ;
int nDim = int( vnDup.size()) ;
if ( nDim == 0) {
vInd = nullptr ;
}
else {
vInd = (int*) malloc( nDim * sizeof( int)) ;
if ( vInd == nullptr)
return FALSE ;
for ( int i = 0 ; i < nDim ; ++ i)
vInd[i] = vnDup[i] ;
}
*pnCount = nDim ;
return TRUE ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtDuploSetModified( int nSouId)