On Thu, 30 Apr 2020 at 05:22, Zebediah Figura z.figura12@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.