/// deallocate storage
void Reset ()
{
if ( !m_pData )
return;
#if USE_WINDOWS
delete [] m_pData;
#else
if ( g_bHeadProcess )
{
int iRes = munmap ( m_pData, m_iLength );
if ( iRes )
sphWarn ( "munmap() failed: %s", strerror(errno) );
}
#endif // USE_WINDOWS
m_pData = NULL;
m_iLength = 0;
m_iEntries = 0;
}
[04:26]ntkt@nb:~/temp$ ./bst.py
'1 3 3 2 5 4 5'
1
2
3
4
5
...
class ...
...
if __name__=='main':
...
argc = WScript.Arguments.Count set argv = WScript.Arguments if argc < 1 then WScript.Echo "Usage: sudo <command> <arg1 arg2 .. argN>" WScript.quit end if dim str for i = 1 to argc-1 str = str + " " + argv(i) next set objShell = CreateObject("Shell.Application") objShell.ShellExecute argv(0), str, "", "runas", 1