diff options
author | Richard Jones <rjones@redhat.com> | 2010-01-14 16:21:47 +0000 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2010-01-14 16:21:47 +0000 |
commit | 8df82f709ab65a0cd4b28f1e51e27aa9cc702481 (patch) | |
tree | b3fbddec89c40e7753c7ad0a47baf57b6e065a95 /hivex/hivex.c | |
parent | 80dc92b979249bd596d906c81c85ca614f14feea (diff) | |
download | libguestfs-8df82f709ab65a0cd4b28f1e51e27aa9cc702481.tar.gz libguestfs-8df82f709ab65a0cd4b28f1e51e27aa9cc702481.tar.xz libguestfs-8df82f709ab65a0cd4b28f1e51e27aa9cc702481.zip |
hivex: Move STR* macros into C file.
Don't pollute the public header file with these macros.
Diffstat (limited to 'hivex/hivex.c')
-rw-r--r-- | hivex/hivex.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/hivex/hivex.c b/hivex/hivex.c index e47dd232..13c3f868 100644 --- a/hivex/hivex.c +++ b/hivex/hivex.c @@ -37,6 +37,16 @@ #include <byteswap.h> #endif +#define STREQ(a,b) (strcmp((a),(b)) == 0) +#define STRCASEEQ(a,b) (strcasecmp((a),(b)) == 0) +//#define STRNEQ(a,b) (strcmp((a),(b)) != 0) +//#define STRCASENEQ(a,b) (strcasecmp((a),(b)) != 0) +#define STREQLEN(a,b,n) (strncmp((a),(b),(n)) == 0) +//#define STRCASEEQLEN(a,b,n) (strncasecmp((a),(b),(n)) == 0) +//#define STRNEQLEN(a,b,n) (strncmp((a),(b),(n)) != 0) +//#define STRCASENEQLEN(a,b,n) (strncasecmp((a),(b),(n)) != 0) +//#define STRPREFIX(a,b) (strncmp((a),(b),strlen((b))) == 0) + #if __BYTE_ORDER == __LITTLE_ENDIAN #ifndef be32toh #define be32toh(x) __bswap_32 (x) |