Re:Httpserver.h: Single header library for writing non-block...
by jeremycw on Friday December 13, 2019 @12:12AM
(#21779284)
I don't really understand what your criticisms are. There is literally no functional code difference between a single header library and a two file library. Your aversion is as arbitrary as saying you don't consider libraries if the API uses camel case.
[ Parent
| on HN ]
Re:Httpserver.h: Single header library for writing non-block...
by pjmlp on Friday December 13, 2019 @06:56AM
(#21780834)
Other than not being able to use pseudo-modules in C, using a gigantic header file instead.
Re:Httpserver.h: Single header library for writing non-block...
by Athas on Friday December 13, 2019 @03:23AM
(#21779981)
Can you compile a header to an object file so that its definitions don't have to be recompiled every time the including file is recompiled?
Re:Httpserver.h: Single header library for writing non-block...
by shakna on Friday December 13, 2019 @08:54AM
(#21781485)
Eh... Yes?
GCC [0], Clang [1] and others [2] have supported for compiled headers. Cmake also has support for precompiled headers [3].
I would say both the tool and architecture to do that is well supported.
[0] https://gcc.gnu.org/onlinedocs/gcc/Precompiled-Headers.html
[1] https://clang.llvm.org/docs/PCHInternals.html
[2] https://www.qnx.com/developers/docs/6.3.2/neutrino/utilities... (-pch flag)
[3] https://cmake.org/cmake/help/latest/command/target_precompil...