[PATCH 1/5] kernelbase/locale: Implement sortkey generation on official tables

Henri Verbeet hverbeet at gmail.com
Thu Apr 30 09:00:25 CDT 2020


On Thu, 30 Apr 2020 at 05:22, Zebediah Figura <z.figura12 at gmail.com> wrote:
> > +typedef struct _character_info
> > +{
> > +    BYTE weight_primary;
> > +    BYTE script_member;
> > +    BYTE weight_diacritic;
> > +    BYTE weight_case;
> > +} character_info;
> > +
>
> I get the impression that typedefs have largely fallen out of favour.
>
This particular kind of typedef never was in favour in C, but it gets
you behaviour similar to C++ where struct/enum/union/class
declarations (generally) behave as if they introduce this kind of
typedef implicitly. Some people (typically with a Windows/C++
background) prefer that, although it's arguably needless obfuscation
and idiosyncratic C.



More information about the wine-devel mailing list