V4RB2, CHG, ValentinaInit()

Charles Yeomans yeomans at desuetude.com
Mon Mar 1 13:53:34 CST 2004


On Feb 29, 2004, at 2:41 PM, Ruslan Zasukhin wrote:

>
>
> ValentinaIit() now returns the actual size of cache that Valentina have
> allocate.
>
>
> NOTE: for modern OS that have virtual file system, even if you ask 
> 100MB for
> cache, OS can satisfy your request. But Valentina self can decide that 
> you
> ask too big cache size and allocate smaller cache.
>
> In case of any problems, ValentinaInit() will return ZERO.
>

Again, why return this value?  This is old C-style design.  Instead, 
why not have a separate function ValentinaCacheSize() as Integer?

Charles Yeomans



More information about the Valentina mailing list