On Mon, Jun 03, 2002 at 09:24:08PM +0200, Olivier Chapuis wrote: > On Mon, Jun 03, 2002 at 06:23:10PM +0200, Dominik Vogt wrote: > > Hm, if the arguments of FlocaleInit() are always the same, then > > why not put the code handling LC_CTYPE etc. directly into that > > function? As far as I can see, it's always called like this: > > > > FlocaleInit(LC_CTYPE, "", "", "<module name>"); > > > > Yes. > > > The only parameter that ever changes is the last one. So, why > > not simply strip the first three arguments and hard code them > > inside the function? > > > > I've no objection. But when I rewrite the locale stuff > I thought that having this parameters may be good under > certain situation (e.g., switching between locale > or enforcing one for special reason). Now maybe we > will never use this 2 parameters in the future, but > it does not seem to me that this is a big problem.
An additional function preparing the parameters and calling FlocaleInit() won't hurt. FunctionThatCallsFlocaleInitWithTheCorrectArgs() -> FlocaleInit() Bye Dominik ^_^ ^_^ -- Dominik Vogt, [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] -- Visit the official FVWM web page at <URL:http://www.fvwm.org/>. To unsubscribe from the list, send "unsubscribe fvwm-workers" in the body of a message to [EMAIL PROTECTED] To report problems, send mail to [EMAIL PROTECTED]