Struct nesting, flexible arrays
Asked by
Christof Mroz
Is there a reason why the fields of struct hip_tlv_common are repeated for all parameter struct, rather than nesting struct hip_tlv_common as the first member? This would get rid of casts and code duplication.
See http://
Also, why is pointer arithmetic preferred over using flexible arrays? Those would be more readable, less error-prone (well, than pointer arithmetic at least) and (in principle) be forward-compatible.
http://
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- HIPL Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Miika Komu
- Solved:
- Last query:
- Last reply:
To post a message you must log in.