From 1eb9ddae923dfd4728a2b7223d8455acb1c73ce9 Mon Sep 17 00:00:00 2001 From: lexborisov Date: Tue, 14 Mar 2017 23:55:52 +0300 Subject: [PATCH] Added define *_VERSION_STRING for all modules --- include/modest/myosi.h | 3 +++ include/mycore/myosi.h | 5 +++++ include/mycss/myosi.h | 2 ++ include/myencoding/myosi.h | 2 ++ include/myfont/myfont.h | 2 ++ include/myhtml/api.h | 2 ++ include/myhtml/myosi.h | 2 ++ include/myurl/myosi.h | 2 ++ source/modest/myosi.h | 3 +++ source/mycore/myosi.h | 5 +++++ source/mycss/myosi.h | 2 ++ source/myencoding/myosi.h | 2 ++ source/myfont/myfont.h | 2 ++ source/myhtml/api.h | 2 ++ source/myhtml/myosi.h | 2 ++ source/myurl/myosi.h | 2 ++ 16 files changed, 40 insertions(+) diff --git a/include/modest/myosi.h b/include/modest/myosi.h index 82e0d66..10f8a8c 100644 --- a/include/modest/myosi.h +++ b/include/modest/myosi.h @@ -22,6 +22,7 @@ #define MODEST_MYOSI_H #pragma once +#include #include #include @@ -29,6 +30,8 @@ #define MODEST_VERSION_MINOR 0 #define MODEST_VERSION_PATCH 6 +#define MODEST_VERSION_STRING MyCORE_STR(MODEST_VERSION_MAJOR) MyCORE_STR(.) MyCORE_STR(MODEST_VERSION_MINOR) MyCORE_STR(.) MyCORE_STR(MODEST_VERSION_PATCH) + #ifdef __cplusplus extern "C" { #endif diff --git a/include/mycore/myosi.h b/include/mycore/myosi.h index 37cfa92..8b5652b 100644 --- a/include/mycore/myosi.h +++ b/include/mycore/myosi.h @@ -29,10 +29,15 @@ #include #include +#define MyCORE_STR_HELPER(x) #x +#define MyCORE_STR(x) MyCORE_STR_HELPER(x) + #define MyCORE_VERSION_MAJOR 0 #define MyCORE_VERSION_MINOR 1 #define MyCORE_VERSION_PATCH 0 +#define MyCORE_VERSION_STRING MyCORE_STR(MyCORE_VERSION_MAJOR) MyCORE_STR(.) MyCORE_STR(MyCORE_VERSION_MINOR) MyCORE_STR(.) MyCORE_STR(MyCORE_VERSION_PATCH) + #ifdef __cplusplus extern "C" { #endif diff --git a/include/mycss/myosi.h b/include/mycss/myosi.h index 52c3667..f754a0c 100644 --- a/include/mycss/myosi.h +++ b/include/mycss/myosi.h @@ -26,6 +26,8 @@ #define MyCSS_VERSION_MINOR 1 #define MyCSS_VERSION_PATCH 0 +#define MyCSS_VERSION_STRING MyCORE_STR(MyCSS_VERSION_MAJOR) MyCORE_STR(.) MyCORE_STR(MyCSS_VERSION_MINOR) MyCORE_STR(.) MyCORE_STR(MyCSS_VERSION_PATCH) + #ifdef __cplusplus extern "C" { #endif diff --git a/include/myencoding/myosi.h b/include/myencoding/myosi.h index 253d7c4..5c2296e 100644 --- a/include/myencoding/myosi.h +++ b/include/myencoding/myosi.h @@ -28,6 +28,8 @@ #define MyENCODING_VERSION_MINOR 1 #define MyENCODING_VERSION_PATCH 0 +#define MyENCODING_VERSION_STRING MyCORE_STR(MyENCODING_VERSION_MAJOR) MyCORE_STR(.) MyCORE_STR(MyENCODING_VERSION_MINOR) MyCORE_STR(.) MyCORE_STR(MyENCODING_VERSION_PATCH) + #ifdef __cplusplus extern "C" { #endif diff --git a/include/myfont/myfont.h b/include/myfont/myfont.h index a570c79..5f1e0a2 100644 --- a/include/myfont/myfont.h +++ b/include/myfont/myfont.h @@ -44,6 +44,8 @@ #define MyFONT_VERSION_MINOR 0 #define MyFONT_VERSION_PATCH 2 +#define MyFONT_VERSION_STRING MyCORE_STR(MyFONT_VERSION_MAJOR) MyCORE_STR(.) MyCORE_STR(MyFONT_VERSION_MINOR) MyCORE_STR(.) MyCORE_STR(MyFONT_VERSION_PATCH) + #ifdef __cplusplus extern "C" { #endif diff --git a/include/myhtml/api.h b/include/myhtml/api.h index 5fd478f..9599750 100755 --- a/include/myhtml/api.h +++ b/include/myhtml/api.h @@ -38,6 +38,8 @@ #define MyHTML_VERSION_MINOR 0 #define MyHTML_VERSION_PATCH 0 +#define MyHTML_VERSION_STRING MyCORE_STR(MyHTML_VERSION_MAJOR) MyCORE_STR(.) MyCORE_STR(MyHTML_VERSION_MINOR) MyCORE_STR(.) MyCORE_STR(MyHTML_VERSION_PATCH) + #include #include #include diff --git a/include/myhtml/myosi.h b/include/myhtml/myosi.h index e3bfa7b..cbacbe7 100644 --- a/include/myhtml/myosi.h +++ b/include/myhtml/myosi.h @@ -28,6 +28,8 @@ #define MyHTML_VERSION_MINOR 0 #define MyHTML_VERSION_PATCH 0 +#define MyHTML_VERSION_STRING MyCORE_STR(MyHTML_VERSION_MAJOR) MyCORE_STR(.) MyCORE_STR(MyHTML_VERSION_MINOR) MyCORE_STR(.) MyCORE_STR(MyHTML_VERSION_PATCH) + #ifdef __cplusplus extern "C" { #endif diff --git a/include/myurl/myosi.h b/include/myurl/myosi.h index 24a0e1e..dcd3934 100644 --- a/include/myurl/myosi.h +++ b/include/myurl/myosi.h @@ -28,6 +28,8 @@ #define MyURL_VERSION_MINOR 1 #define MyURL_VERSION_PATCH 0 +#define MyURL_VERSION_STRING MyCORE_STR(MyURL_VERSION_MAJOR) MyCORE_STR(.) MyCORE_STR(MyURL_VERSION_MINOR) MyCORE_STR(.) MyCORE_STR(MyURL_VERSION_PATCH) + #ifdef __cplusplus extern "C" { #endif diff --git a/source/modest/myosi.h b/source/modest/myosi.h index c235328..4434f89 100644 --- a/source/modest/myosi.h +++ b/source/modest/myosi.h @@ -22,6 +22,7 @@ #define MODEST_MYOSI_H #pragma once +#include "mycore/myosi.h" #include "myhtml/myhtml.h" #include "mycss/mycss.h" @@ -29,6 +30,8 @@ #define MODEST_VERSION_MINOR 0 #define MODEST_VERSION_PATCH 6 +#define MODEST_VERSION_STRING MyCORE_STR(MODEST_VERSION_MAJOR) MyCORE_STR(.) MyCORE_STR(MODEST_VERSION_MINOR) MyCORE_STR(.) MyCORE_STR(MODEST_VERSION_PATCH) + #ifdef __cplusplus extern "C" { #endif diff --git a/source/mycore/myosi.h b/source/mycore/myosi.h index 37cfa92..8b5652b 100644 --- a/source/mycore/myosi.h +++ b/source/mycore/myosi.h @@ -29,10 +29,15 @@ #include #include +#define MyCORE_STR_HELPER(x) #x +#define MyCORE_STR(x) MyCORE_STR_HELPER(x) + #define MyCORE_VERSION_MAJOR 0 #define MyCORE_VERSION_MINOR 1 #define MyCORE_VERSION_PATCH 0 +#define MyCORE_VERSION_STRING MyCORE_STR(MyCORE_VERSION_MAJOR) MyCORE_STR(.) MyCORE_STR(MyCORE_VERSION_MINOR) MyCORE_STR(.) MyCORE_STR(MyCORE_VERSION_PATCH) + #ifdef __cplusplus extern "C" { #endif diff --git a/source/mycss/myosi.h b/source/mycss/myosi.h index 4921a78..f6eaffb 100644 --- a/source/mycss/myosi.h +++ b/source/mycss/myosi.h @@ -26,6 +26,8 @@ #define MyCSS_VERSION_MINOR 1 #define MyCSS_VERSION_PATCH 0 +#define MyCSS_VERSION_STRING MyCORE_STR(MyCSS_VERSION_MAJOR) MyCORE_STR(.) MyCORE_STR(MyCSS_VERSION_MINOR) MyCORE_STR(.) MyCORE_STR(MyCSS_VERSION_PATCH) + #ifdef __cplusplus extern "C" { #endif diff --git a/source/myencoding/myosi.h b/source/myencoding/myosi.h index a86284f..6939c44 100644 --- a/source/myencoding/myosi.h +++ b/source/myencoding/myosi.h @@ -28,6 +28,8 @@ #define MyENCODING_VERSION_MINOR 1 #define MyENCODING_VERSION_PATCH 0 +#define MyENCODING_VERSION_STRING MyCORE_STR(MyENCODING_VERSION_MAJOR) MyCORE_STR(.) MyCORE_STR(MyENCODING_VERSION_MINOR) MyCORE_STR(.) MyCORE_STR(MyENCODING_VERSION_PATCH) + #ifdef __cplusplus extern "C" { #endif diff --git a/source/myfont/myfont.h b/source/myfont/myfont.h index 75989ef..6077be6 100644 --- a/source/myfont/myfont.h +++ b/source/myfont/myfont.h @@ -44,6 +44,8 @@ #define MyFONT_VERSION_MINOR 0 #define MyFONT_VERSION_PATCH 2 +#define MyFONT_VERSION_STRING MyCORE_STR(MyFONT_VERSION_MAJOR) MyCORE_STR(.) MyCORE_STR(MyFONT_VERSION_MINOR) MyCORE_STR(.) MyCORE_STR(MyFONT_VERSION_PATCH) + #ifdef __cplusplus extern "C" { #endif diff --git a/source/myhtml/api.h b/source/myhtml/api.h index 5fd478f..9599750 100755 --- a/source/myhtml/api.h +++ b/source/myhtml/api.h @@ -38,6 +38,8 @@ #define MyHTML_VERSION_MINOR 0 #define MyHTML_VERSION_PATCH 0 +#define MyHTML_VERSION_STRING MyCORE_STR(MyHTML_VERSION_MAJOR) MyCORE_STR(.) MyCORE_STR(MyHTML_VERSION_MINOR) MyCORE_STR(.) MyCORE_STR(MyHTML_VERSION_PATCH) + #include #include #include diff --git a/source/myhtml/myosi.h b/source/myhtml/myosi.h index e2914ea..cdc14db 100644 --- a/source/myhtml/myosi.h +++ b/source/myhtml/myosi.h @@ -28,6 +28,8 @@ #define MyHTML_VERSION_MINOR 0 #define MyHTML_VERSION_PATCH 0 +#define MyHTML_VERSION_STRING MyCORE_STR(MyHTML_VERSION_MAJOR) MyCORE_STR(.) MyCORE_STR(MyHTML_VERSION_MINOR) MyCORE_STR(.) MyCORE_STR(MyHTML_VERSION_PATCH) + #ifdef __cplusplus extern "C" { #endif diff --git a/source/myurl/myosi.h b/source/myurl/myosi.h index c729619..ae51ee5 100644 --- a/source/myurl/myosi.h +++ b/source/myurl/myosi.h @@ -28,6 +28,8 @@ #define MyURL_VERSION_MINOR 1 #define MyURL_VERSION_PATCH 0 +#define MyURL_VERSION_STRING MyCORE_STR(MyURL_VERSION_MAJOR) MyCORE_STR(.) MyCORE_STR(MyURL_VERSION_MINOR) MyCORE_STR(.) MyCORE_STR(MyURL_VERSION_PATCH) + #ifdef __cplusplus extern "C" { #endif