readexe version 0.1 (Announce)
Hello segin,
Welcome!
> bitfields by OR/XOR/ANDing together preprocessor macros onto a single
> integer value holding all the flags is NOT allowed; C99 is the rule and
> bitfields are how we do. Any code using preprocessor macros with hex values
> to be OR/XOR/ANDed to a raw integer shall be rejected for this reason. Use
> C99 bitfields if you want to contribute.
Well, I like me some bit-fields myself, when I can use them. The fact though is that they are famously unportable, and therefore less than useful when dealing with binary formats over a network. N1570 (the final draft of the C11 standard) says under 6.7.2.1,
> The order of allocation of bit-fields within a unit (high-order to low-order or low-order to high-order) is implementation-defined. The alignment of the addressable storage unit is unspecified.
I would say that it is best to keep that in mind.
Thank you!
---
https://gitlab.com/tkchia · https://codeberg.org/tkchia · 😴 "MOV AX,0D500H+CMOS_REG_D+NMI"
Complete thread:
- readexe version 0.1 - segin, 08.08.2023, 18:08 (Announce)
- readexe version 0.1 - DosWorld, 09.08.2023, 23:30
- readexe version 0.1 - segin, 11.08.2023, 12:49
- readexe version 0.1 - tkchia, 10.08.2023, 21:08
- readexe version 0.1 - segin, 11.08.2023, 12:46
- readexe version 0.1 - tkchia, 11.08.2023, 12:59
- readexe version 0.1 - segin, 11.08.2023, 13:50
- readexe version 0.1 - tkchia, 11.08.2023, 12:59
- readexe version 0.1 - segin, 11.08.2023, 12:46
- readexe version 0.1 - RayeR, 15.08.2023, 19:01
- readexe version 0.1 - segin, 15.08.2023, 19:53
- readexe version 0.1 - segin, 22.08.2023, 00:49
- readexe version 0.1 - Oso2k, 22.08.2023, 08:11
- readexe version 0.1 - Rugxulo, 22.08.2023, 15:51
- readexe version 0.1 - segin, 15.08.2023, 19:53
- readexe version 0.1 - DosWorld, 09.08.2023, 23:30