aboutsummaryrefslogtreecommitdiffstats
path: root/util.h
diff options
context:
space:
mode:
authorLazaros Koromilas <lostd@2f30.org>2019-04-08 12:48:24 +0300
committerLazaros Koromilas <lostd@2f30.org>2019-04-08 13:20:13 +0300
commitb2f2a6fe76bdbba48c0174b4f1eb05caf1a74b71 (patch)
tree184f77e2f318f3f605edb6a1e916b0b2245dc29b /util.h
parent6b1ec1959954145d7942ba3b7e65f5cde30485a1 (diff)
downloadnoice-b2f2a6fe76bdbba48c0174b4f1eb05caf1a74b71.tar.gz
Add sort by version number mode
Diffstat (limited to 'util.h')
-rw-r--r--util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/util.h b/util.h
index 22b7f30..9b564f1 100644
--- a/util.h
+++ b/util.h
@@ -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 */
Un proyecto texto-plano.xyz