bug-gnubg
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnubg] (no subject)


From: Joern Thyssen
Subject: Re: [Bug-gnubg] (no subject)
Date: Thu, 17 Jul 2003 11:24:27 +0000
User-agent: Mutt/1.4.1i

On Thu, Jul 17, 2003 at 01:11:06PM +0200, Jim Segrave wrote
> 
> If people really want it, there's another way :-)
> 
> replace all the calls to printf/sprintf which output equities/mwc,
> etc. with calls to a wrapper function say equity_printf() and
> equity_sprintf().

The points is that they do not call printf/sprintf. Rather they call a
set of routines OutputEquity, OutputMWC etc.

You still need to add a parameter to these to indicate whether it's a
rollout or not. A typical use is:

sz = g_strdup_printf ( _("Cubeless rollout %s: %s (Money: %s)"),
                       fOutputMWC ? _("MWC") : _("equity"),
                       OutputEquity ( aarOutput[ 0 ][ OUTPUT_EQUITY ],
                                      &ci, TRUE ),
                       OutputMoneyEquity ( aarOutput[ 0 ], TRUE) );

OutputEquity and OutputMoneyEquity does not know whether it's called
with rollout data or eval data, so we need to add an parameter. No big
deal, though.

BTW, the OutputXXX routines are not used through-out gnubg. I'll change
them as I find them.

Jørn




reply via email to

[Prev in Thread] Current Thread [Next in Thread]