Hi all
What does the group think of the practise of including one header file from
inside another?
I have some legacy code where this has been done, and it creates a
dependency on a module (collection of files) which are not required, except
for one header file's contents.
I'd say 'No, header files should be included in the C source, not in another
header', but I've always come across strong arguments for the latter.
What do you think, and what is accepted practise?
Thanks
JS
What does the group think of the practise of including one header file from
inside another?
I have some legacy code where this has been done, and it creates a
dependency on a module (collection of files) which are not required, except
for one header file's contents.
I'd say 'No, header files should be included in the C source, not in another
header', but I've always come across strong arguments for the latter.
What do you think, and what is accepted practise?
Thanks
JS
Comment