mcedit issues

Andrew V. Samoilov andrew at email.zp.ua
Fri Nov 5 09:33:25 UTC 2004


> Hi Roland,
> 
> On Thu, 2004-11-04 at 22:44, Roland Illig wrote:
> > I like the data type GString because it is already available in glib-1.2 
> > as well as glib-2.0, it is easy to use, and you don't have to worry 
> > about the maximum length of your strings.

There is new GString structure member "gsize allocated_len" introduced in 2.0.
Line above is about version compatibility.
 
Also as far as I remember glib 1.2 allocates initially 1K memory area on default
and doubles this area each time to fit string.  I am using LiveCD and
embeded distros on low memory machines with specially stripped mc,
so I dont glad to see this memory allocation strategy.
 
> Sorry. I thought you just introduced this and Andrew reverted it, but
> now I see this was introduced earlier. Thought for a moment you were
> introducing architectural changes just before the release :) .

GString was introduced by Roland on Sep 19 and "simplified" on Sep 25.

> Andrew, does this patch fix the issue you are seeing?

Yes.

-- 
Regards,
Andrew V. Samoilov.




More information about the mc-devel mailing list