preprocessor: Add support for header unit translation
authorNathan Sidwell <nathan@acm.org>
Wed, 18 Nov 2020 16:27:16 +0000 (08:27 -0800)
committerNathan Sidwell <nathan@acm.org>
Wed, 18 Nov 2020 16:45:46 +0000 (08:45 -0800)
commit7ceb899e9343493f646434f74a149395f3913d9a
tree3cd22087dc51f0cdd8a7e4f60a47f7332601c2f3
parentdb87f19ae3cfc126fb39616515b57dea4df02e6d
preprocessor: Add support for header unit translation

libcpp/
* files.c (struct _cpp_file): Add header_unit field.
(_cpp_stack_file): Add header unit support.
(cpp_find_header_unit): New.
* include/cpplib.h (cpp_find_header_unit): Declare.
libcpp/files.c
libcpp/include/cpplib.h