Hide away the FP_EQUAL macros
This commit is contained in:
parent
3b492620fb
commit
5bbd07c696
10
lib/fprint.c
10
lib/fprint.c
|
@ -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.
|
||||
*/
|
||||
|
|
12
lib/fprint.h
12
lib/fprint.h
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue