hash: introduce source files to break include circles
The hash source files have circular include dependencies right now, which shows by our broken generic hash implementation. The "hash.h" header declares two functions and the `git_hash_ctx` typedef before actually including the hash backend header and can only declare the remaining hash functions after the include due to possibly static function declarations inside of the implementation includes. Let's break this cycle and help maintainability by creating a real implementation file for each of the hash implementations. Instead of relying on the exact include order, we now especially avoid the use of `GIT_INLINE` for function declarations.
Showing
src/hash/hash_collisiondetect.c
0 → 100644
src/hash/hash_common_crypto.c
0 → 100644
src/hash/hash_openssl.c
0 → 100644
Please
register
or
sign in
to comment