Just a random comment, any particular reason to use a goto statement?

void panoLocaleRestore(void) {...}->

int panoLocaleRestore(int returnCode)
{
  setlocale(LC_ALL,oldLocale);
  free(oldLocale);
  return returnCode;
}

and replacing all the 'goto fail;' by a 'return panoLocalRestore(-1);' ?

and 'panoLocaleRestore(); return 0; '
by  return panoLocalRestore(0); ?


cri a écrit :
>
> I tested the various libpano and found out that with libpano rev 1016
> all works while with rev 1017 I got the problem.
>
> Here is the log of rev 1017:
> http://panotools.svn.sourceforge.net/viewvc/panotools?view=rev&revision=1017
>
> I'm on Ubuntu 9.04 amd64
> As I stated some posts above, the problem doesn't exists on i386 OS:
> I've tested the hugin building process on a virtual machine with
> xubuntu 9.04 i386 without encountering any problem.
>
> On 18 Ago, 07:46, cri <[email protected]> wrote:
>   
>> On 17 Ago, 21:17, Yuval Levy <[email protected]> wrote:
>>
>>     
>>> cri wrote:
>>>       
>>>  > i tried to install a previous revision of libpano
>>>       
>>>> (1005) and the problem is gone!
>>>>         
>>> do you mean that trunk does not work and rev. 1005 works?
>>>       
>>> Yuv
>>>       
>> Yes Yuv... I will try to advance unit per unit starting from rev 1005
>> to discover when the problem arise.
>> Now I have compiled latest revision of hugin, autopano-sift-C and
>> enblend plus libpano rev1005 and all works well.
>>     
> >
>
>   


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~----------~----~----~----~------~----~------~--~---

Reply via email to