[Libreoffice] crossing strange code: a little help

2010-12-04 Thread Pierre-André Jacquod
Hi
within
filters/binfilter/bf_sw/source/core/txtnode/sw_thints.cxx
line 955, I crossed this code construct:

if()
{
  .
  while (TRUE)
  {
  DBG_BF_ASSERT(0, STRIP);
  }
  
}

 With and without debugging option on, if the if is entered, then
this is an endless loop? Does it means that the IF is never taken?
thanks
regards
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice



Re: [Libreoffice] crossing strange code: a little help

2010-12-04 Thread Caolán McNamara
On Sat, 2010-12-04 at 21:22 +0100, Pierre-André Jacquod wrote:
  With and without debugging option on, if the if is entered, then
 this is an endless loop?

Indeed. 

  Does it means that the IF is never taken?

Logically that must be the case. Well, clearly its also possible that
its totally screwed up and loads of docs cause the filter to hang
pointlessly. But lets assume the best and that logically the entire
surrounding if can be removed. There's always the theoretical
possibility that there's always an exception thrown by the two lines
after the if and before the while(1) which breaks out of the block. But
that's not the case here.

C.

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice