3 ms·
I love headers but I wish you could split them in two so that private functions and variables can line in the c file. This would help reduce a lot of header blo
by harisund1990 2y ago
I love headers but I wish you could split them in two so that private functions and variables can line in the c file. This would help reduce a lot of header bloat as well.
- lzsiga 2y agoIt is perfectly valid to use more than one header files: some of them can be public (meant to be seen by users of your library), others can be private or internal (only used by your own sources).
- chikere232 2y agoAlso, usually it's pretty rare to have things internal to one C file that need explicit prototypes. It's easier to just put things in the right order so the funtion definition etc is before its use.