diff options
author | Lazaros Koromilas <lostd@2f30.org> | 2019-04-08 12:48:24 +0300 |
---|---|---|
committer | Lazaros Koromilas <lostd@2f30.org> | 2019-04-08 13:20:13 +0300 |
commit | b2f2a6fe76bdbba48c0174b4f1eb05caf1a74b71 (patch) | |
tree | 184f77e2f318f3f605edb6a1e916b0b2245dc29b /util.h | |
parent | 6b1ec1959954145d7942ba3b7e65f5cde30485a1 (diff) | |
download | noice-b2f2a6fe76bdbba48c0174b4f1eb05caf1a74b71.tar.gz |
Add sort by version number mode
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -5,6 +5,8 @@ size_t strlcat(char *, const char *, size_t); size_t strlcpy(char *, const char *, size_t); #undef dprintf int dprintf(int, const char *, ...); +#undef strverscmp +int strverscmp(const char *, const char *); #ifdef DEBUG #define DEBUG_FD 8 @@ -12,9 +14,11 @@ int dprintf(int, const char *, ...); #define DPRINTF_U(x) dprintf(DEBUG_FD, #x "=%u\n", x) #define DPRINTF_S(x) dprintf(DEBUG_FD, #x "=%s\n", x) #define DPRINTF_P(x) dprintf(DEBUG_FD, #x "=0x%p\n", x) +#define DPRINTF_LLU(x) dprintf(DEBUG_FD, #x "=%llu\n", x) #else #define DPRINTF_D(x) #define DPRINTF_U(x) #define DPRINTF_S(x) #define DPRINTF_P(x) +#define DPRINTF_LLU(x) #endif /* DEBUG */ |