Removes the file headers.h, and all places where it was included. Some code movement was necessary to prevent strange dependencies, but there should be no semantic changes.
Tested on Ubuntu and gitian.
Removes the file headers.h, and all places where it was included. Some code movement was necessary to prevent strange dependencies, but there should be no semantic changes.
Tested on Ubuntu and gitian.
In addition to standard code separation, this change opens the door
to fixing several include inter-dependencies.
Tested builds of bitcoind and bitcoin-qt in gitian (linux and windows).
ACK
I've ran it through the graph-o-matic and it's even readable now! https://dev.visucore.com/bitcoin/includes_noheaders.svg
This is much better.
It does show there's one circular dependency left: ui_interface.h <-> util.h
30 | @@ -31,11 +31,15 @@ 31 | #include <openssl/sha.h> 32 | #include <openssl/ripemd.h> 33 | 34 | -#include "netbase.h" 35 | +#include "netbase.h" // for AddTimeData 36 | +#include "ui_interface.h"
Is this include needed? (it causes a circular dependency, as ui_interface.h also includes util.h)