Hide away the FP_EQUAL macros

This commit is contained in:
Panu Matilainen 2012-09-14 07:14:14 +03:00
parent 3b492620fb
commit 5bbd07c696
2 changed files with 10 additions and 12 deletions

View File

@ -39,6 +39,16 @@
#undef HTKEYTYPE
#undef HTDATATYPE
#define FP_ENTRY_EQUAL(a, b) (((a)->dev == (b)->dev) && ((a)->ino == (b)->ino))
#define FP_EQUAL(a, b) ( \
FP_ENTRY_EQUAL((a).entry, (b).entry) && \
!strcmp((a).baseName, (b).baseName) && ( \
((a).subDir == (b).subDir) || \
((a).subDir && (b).subDir && !strcmp((a).subDir, (b).subDir)) \
) \
)
/**
* Finger print cache.
*/

View File

@ -46,18 +46,6 @@ struct rpmffi_s {
int fileno;
};
/** */
#define FP_ENTRY_EQUAL(a, b) (((a)->dev == (b)->dev) && ((a)->ino == (b)->ino))
/** */
#define FP_EQUAL(a, b) ( \
FP_ENTRY_EQUAL((a).entry, (b).entry) && \
!strcmp((a).baseName, (b).baseName) && ( \
((a).subDir == (b).subDir) || \
((a).subDir && (b).subDir && !strcmp((a).subDir, (b).subDir)) \
) \
)
#ifdef __cplusplus
extern "C" {
#endif