Doxygen is used to generate documentation from source code.
Doxygen can also generate a diagram of the usage relations with other structs. (ref)
The following image is a capture of an SVG and one of hundreds generated automatically from the SWI-Prolog C header files (
Note: To get a better view of the image, click on image and open in another/new tab.
Note: GraphViz must be installed to generate the images and some DOxygen expert options set such as
I don’t know if there is a way to get all of the related structures in one image but the example above shows many of the core structures.
Side note about SWI-Prolog Doxygen extension.
A filter done in LEX (.l) to convert PROLOG programs into simple tokens of C/C++ that can be used to generate documentation of Prolog programs with Doxygen.
I believe the code is on GitHub.