The following commit has been merged in the master branch:
commit 41974a39520084887781238c4cb455d524bea84c
Author: Guillem Jover <[email protected]>
Date:   Mon Sep 10 09:40:49 2012 +0200

    libdpkg: Add new DEB_VERSION macro

diff --git a/lib/dpkg/deb-version.h b/lib/dpkg/deb-version.h
index 9a2a6ff..fc1647f 100644
--- a/lib/dpkg/deb-version.h
+++ b/lib/dpkg/deb-version.h
@@ -39,6 +39,12 @@ struct deb_version {
        int minor;
 };
 
+/**
+ * Initializer for a deb_version.
+ */
+#define DEB_VERSION(X, Y) \
+       (struct deb_version){ .major = (X), .minor = (Y) }
+
 const char *deb_version_parse(struct deb_version *version, const char *str);
 
 /** @} */

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to