mirror of
https://git.proxmox.com/git/libgit2
synced 2025-06-06 03:33:47 +00:00
Make git_oid_equal a non-inline API
This commit is contained in:
parent
2dc49ea93c
commit
978a4ed5eb
@ -167,10 +167,7 @@ GIT_EXTERN(int) git_oid_cmp(const git_oid *a, const git_oid *b);
|
|||||||
* @param b second oid structure.
|
* @param b second oid structure.
|
||||||
* @return true if equal, false otherwise
|
* @return true if equal, false otherwise
|
||||||
*/
|
*/
|
||||||
GIT_INLINE(int) git_oid_equal(const git_oid *a, const git_oid *b)
|
GIT_EXTERN(int) git_oid_equal(const git_oid *a, const git_oid *b);
|
||||||
{
|
|
||||||
return !git_oid_cmp(a, b);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Compare the first 'len' hexadecimal characters (packets of 4 bits)
|
* Compare the first 'len' hexadecimal characters (packets of 4 bits)
|
||||||
|
@ -179,6 +179,11 @@ int git_oid_cmp(const git_oid *a, const git_oid *b)
|
|||||||
return git_oid__cmp(a, b);
|
return git_oid__cmp(a, b);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int git_oid_equal(const git_oid *a, const git_oid *b)
|
||||||
|
{
|
||||||
|
return (git_oid__cmp(a, b) == 0);
|
||||||
|
}
|
||||||
|
|
||||||
int git_oid_ncmp(const git_oid *oid_a, const git_oid *oid_b, size_t len)
|
int git_oid_ncmp(const git_oid *oid_a, const git_oid *oid_b, size_t len)
|
||||||
{
|
{
|
||||||
const unsigned char *a = oid_a->id;
|
const unsigned char *a = oid_a->id;
|
||||||
|
Loading…
Reference in New Issue
Block a user