News for hackers. Stuff that matters.
Re:Adding Modules to C in 10 Lines of Code [pdf] by agent281 on Monday June 27, 2022 @12:17PM (#31896720)
Oh, I see: including a header file injects forward declarations into the calling file. Each c file gets compiled separately into object code unless you directly import them like the code above is doing. In that case it essentially dumps the full text of the file into the calling file, which causes serial compilation of a single object file.

Unless I'm mistaken that clears some stuff up for me. Thank you!

Re:Adding Modules to C in 10 Lines of Code [pdf] by phaer on Monday June 27, 2022 @03:25PM (#31899531)
That's my understanding as well, so I think you are correct but I am no C wizard myself :)