private void reduce_script()
{
int idxout = 0;
for (int idxin = 0; idxin < m_num_scans; idxin++)
{
/* After skipping, idxout becomes smaller than idxin */
if (idxin != idxout)
{
/* Copy rest of data;
* note we stay in given chunk of allocated memory.
*/
m_scan_info[idxout] = m_scan_info[idxin];
}
if (m_scan_info[idxout].Ss > lim_Se)
{
/* Entire scan out of range - skip this entry */
continue;
}
if (m_scan_info[idxout].Se > lim_Se)
{
/* Limit scan to end of block */
m_scan_info[idxout].Se = lim_Se;
}
idxout++;
}
m_num_scans = idxout;
}