preprocessor: Random cleanups
authorNathan Sidwell <nathan@acm.org>
Tue, 19 May 2020 20:20:32 +0000 (13:20 -0700)
committerNathan Sidwell <nathan@acm.org>
Tue, 19 May 2020 20:23:47 +0000 (13:23 -0700)
commit7cf3f604fb102ba67ce3abe7e97440b4ed0da92e
treeec6a6db751a99154923cb1cc9f884eaf244d7680
parent98452668d362bb9e6358f7eb5cff69f4f5ab1d45
preprocessor: Random cleanups

This fixes a bunch of poorly formatted decls, marks some getters as
PURE, deletes some C-relevant bool hackery, and finally uses a
passed-in location rather than deducing a closely-related but not
necessarily the same location.

* include/cpplib.h (cpp_get_otions, cpp_get_callbacks)
(cpp_get_deps): Mark as PURE.
* include/line-map.h (get_combined_adhoc_loc)
(get_location_from_adhoc_loc, get_pure_location): Reformat decls.
* internal.h (struct lexer_state): Clarify comment.
* system.h: Remove now-unneeded bool hackery.
* files.c (_cpp_find_file): Store LOC not highest_location.
libcpp/ChangeLog
libcpp/files.c
libcpp/include/cpplib.h
libcpp/include/line-map.h
libcpp/internal.h
libcpp/system.h