[PATCH v4] ungetc: Guarantee single char pushback

Maciej W. Rozycki macro@redhat.com
Thu Dec 12 14:54:30 GMT 2024


On Thu, 12 Dec 2024, Siddhesh Poyarekar wrote:

> > > > "* Bit-fields can share a storage unit with other struct/union members,
> > > >      including members that are not bit-fields.  Of course, struct
> > > > members
> > > >      occupy different parts of the storage unit."
> > > 
> > > That sounds like it's saying that distinct members cannot share the
> > > smallest
> > > addressable unit, i.e. a byte, which is fine.
> > 
> >   Obviously struct members cannot overlap, but more importantly it does say
> > non-bitfield members can share a storage unit with bit-fields, e.g. one
> > used for the "int" type, just as bit-field members do between themselves.
> 
> Right, which is why I reckon the layout I'm proposing is OK; would you agree?

 I do and actually I like it; I'll go through your patch in detail soon.

  Maciej



More information about the Libc-alpha mailing list