Misspelling of function name in v6_pause.cxx

View: New views
2 Messages — Rating Filter:   Alert me  

Misspelling of function name in v6_pause.cxx

by bin liu-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

The function G__SetCriticalSectionEnv is misspelled to G__SetCrititalSectionEnv (the 3rd 't' should be 'c') in v6_pause.cxx. I'm surprised why the misspelling have not been discovered for long time, no people use the function? Or actually it is not critical?

/************************************************************************
* G__SetCriticalSectionEnv
************************************************************************/
void G__SetCrititalSectionEnv(int(*issamethread)(), void(*storelockthread)(), void(*entercs)(), void(*leavecs)())
{
   G__IsSameThread = issamethread;
   G__StoreLockThread = storelockthread;
   G__EnterCriticalSection = entercs;
   G__LeaveCriticalSection = leavecs;
}

Regards,
Liu Bin


Re: Misspelling of function name in v6_pause.cxx

by Axel Naumann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

thanks for spotting it! This spelling mistake was there since day 1, so
it really seems like nobody ever used that function :-) It's now fixed
in the svn trunk.

Cheers, Axel.

bin liu wrote:

> Hi,
>
> The function G__SetCriticalSectionEnv is misspelled to
> G__SetCrititalSectionEnv (the 3rd 't' should be 'c') in v6_pause.cxx.
> I'm surprised why the misspelling have not been discovered for long
> time, no people use the function? Or actually it is not critical?
>
> /************************************************************************
> * G__SetCriticalSectionEnv
> ************************************************************************/
> void G__SetCrititalSectionEnv(int(*issamethread)(),
> void(*storelockthread)(), void(*entercs)(), void(*leavecs)())
> {
>    G__IsSameThread = issamethread;
>    G__StoreLockThread = storelockthread;
>    G__EnterCriticalSection = entercs;
>    G__LeaveCriticalSection = leavecs;
> }
>
> Regards,
> Liu Bin
>

LightInTheBox - Buy quality products at wholesale price