[libshumate/tintou/version] Version: Remove useless elements




commit 32e1db73ff00b92f6cee30f96df53053eeff4547
Author: Corentin Noël <corentin noel collabora com>
Date:   Wed Sep 8 09:27:54 2021 +0200

    Version: Remove useless elements
    
    It seems that not even GTK is shipping the equivalent these days.

 shumate/shumate-version.h.in | 45 ++++++++++++--------------------------------
 1 file changed, 12 insertions(+), 33 deletions(-)
---
diff --git a/shumate/shumate-version.h.in b/shumate/shumate-version.h.in
index 1da5959..5c29279 100644
--- a/shumate/shumate-version.h.in
+++ b/shumate/shumate-version.h.in
@@ -52,42 +52,21 @@
  */
 #define SHUMATE_MICRO_VERSION   (@SHUMATE_MICRO_VERSION@)
 
-/**
- * SHUMATE_VERSION:
- *
- * The full version of libshumate, like 1.2.3
- */
-#define SHUMATE_VERSION         @SHUMATE_VERSION@
-
-/**
- * SHUMATE_VERSION_S:
- *
- * The full version of libshumate, in string form (suited for
- * string concatenation)
- */
-#define SHUMATE_VERSION_S       "@SHUMATE_VERSION@"
-
-/**
- * SHUMATE_VERSION_HEX:
- *
- * Numerically encoded version of libshumate, like 0x010203
- */
-#define SHUMATE_VERSION_HEX     ((SHUMATE_MAJOR_VERSION << 24) | \
-                                 (SHUMATE_MINOR_VERSION << 16) | \
-                                 (SHUMATE_MICRO_VERSION << 8))
-
 /**
  * SHUMATE_CHECK_VERSION:
- * @major: major version, like 1 in 1.2.3
- * @minor: minor version, like 2 in 1.2.3
- * @micro: micro version, like 3 in 1.2.3
+ * @major: major version (e.g. 1 for version 1.2.5)
+ * @minor: minor version (e.g. 2 for version 1.2.5)
+ * @micro: micro version (e.g. 5 for version 1.2.5)
+ *
+ * Returns %TRUE if the version of the Shumate header files
+ * is the same as or newer than the passed-in version.
  *
- * Evaluates to %TRUE if the version of libshumate is greater or equal
- * than @major, @minor and @micro
+ * Returns: %TRUE if Shumate headers are new enough
  */
-#define SHUMATE_CHECK_VERSION(major,minor,micro) \
-        (SHUMATE_MAJOR_VERSION > (major) || \
-         (SHUMATE_MAJOR_VERSION == (major) && SHUMATE_MINOR_VERSION > (minor)) || \
-         (SHUMATE_MAJOR_VERSION == (major) && SHUMATE_MINOR_VERSION == (minor) && SHUMATE_MICRO_VERSION >= 
(micro)))
+#define SHUMATE_CHECK_VERSION(major,minor,micro)                              \
+    (SHUMATE_MAJOR_VERSION > (major) ||                                       \
+     (SHUMATE_MAJOR_VERSION == (major) && SHUMATE_MINOR_VERSION > (minor)) || \
+     (SHUMATE_MAJOR_VERSION == (major) && SHUMATE_MINOR_VERSION == (minor) && \
+      SHUMATE_MICRO_VERSION >= (micro)))
 
 #endif /* __SHUMATE_VERSION_H__ */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]