Runs through the _hzGlobal_setEmaddrs, looking for invalid entires

Return TypeFunction nameArguments
hzEcodeIntegEmaddrSet(bool,)

Declared in file: hzEmaddr.h
Defined in file : hzEmaddr.cpp

Function Logic:

0:START 1:pLog 2:unknown 3:ema addr 4:unknown 5:items 6:pCtrl 7:unknown 8:items 9:unknown 10:items 11:items 12:items 13:Return E_OK

Function body:

hzEcode IntegEmaddrSet (bool bVerbose)
{
   //  Runs through the _hzGlobal_setEmaddrs, looking for invalid entires
   _hzfunc(__func__) ;
   hzLogger*   pLog ;      //  Log file
   _ema_space* pCtrl ;     //  This string's control area
                           //  _ssrFLE* pSlot ;  // Item cast to _ssrFLE (to self point on free and to check it is not already free)
   hzEmaddr    ema ;       //  Email address
   uint32_t    n ;         //  Iterator
   uint32_t    addr ;      //  Internal address
   uint32_t    nFail ;     //  Number of invalid addresses
   uint32_t    nPass ;     //  Number of invalid addresses
   pLog = GetThreadLogger() ;
   for (n = nPass = nFail = 0; n < _hzGlobal_setEmaddrs.Count() ; n++)
   {
       ema = _hzGlobal_setEmaddrs.GetObj(n) ;
       addr = ema._int_addr() ;
       if (!addr)
           { nFail++ ; continue ; }
       //  pCtrl = (_ema_space*) g_ssrInet.Xlate(addr) ;
       pCtrl = _emaXlate(addr) ;
       //  pSlot = (_ssrFLE*) pCtrl ;
       if (!pCtrl->m_copy || pCtrl->m_copy == 0xff||!pCtrl->m_lhs||!pCtrl->m_rhs)
           nFail++ ;
       else
       {
           if (bVerbose)
               pLog->Out("%u:%u: copy %u -> %s\n", (addr&0xffff0000)>>16,addr&0xffff,pCtrl->m_copy,pCtrl->m_data);
           nPass++ ;
       }
   }
   pLog->Log("Total email population %u. No OK %u Failed %u\n", _hzGlobal_setEmaddrs.Count(), nPass, nFail) ;
   return E_OK ;
}