Re: Notes when applying IO channel patch
- From: Havoc Pennington <hp redhat com>
- To: Owen Taylor <otaylor redhat com>
- Cc: Tim Janik <timj gtk org>, Ron Steinke <rsteinke w-link net>, Gtk+ Developers <gtk-devel-list gnome org>
- Subject: Re: Notes when applying IO channel patch
- Date: 30 Jun 2001 18:51:41 -0400
Owen Taylor <otaylor redhat com> writes:
> Tim Janik <timj gtk org> writes:
>
> > On 30 Jun 2001, Owen Taylor wrote:
> >
> > > * I exposed GString->alloc, since I think it is necessary for
> > > efficient use of a GString as a buffer. Otherwise, you are
> > > unnecessarily often using smaller buffer sizes than the
> > > space you have available.
> >
> > if we do that, can we please rename this to something more elaborate,
> > e.g. n_bytes, buffer_size or simply n_alloced.
>
> I went with allocated_len.
>
How do you use this field? Doesn't GString feel free to put nul bytes
on top of any position > str->len? Or are you supposed to write to
str->len?
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]