From: Bruno Haible Date: Fri, 11 Feb 2005 11:11:40 +0000 (+0000) Subject: Add a version number. X-Git-Tag: v0.14.2~67 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3af32f6e36e71e3493635723e4f441c9fe62caaf;p=thirdparty%2Fgettext.git Add a version number. --- diff --git a/gettext-tools/ChangeLog b/gettext-tools/ChangeLog index b78e1dcdc..f03af03c9 100644 --- a/gettext-tools/ChangeLog +++ b/gettext-tools/ChangeLog @@ -1,3 +1,7 @@ +2005-02-10 Bruno Haible + + * windows/gettextpo.def: Add libgettextpo_version. + 2005-02-10 Bruno Haible * windows/gettextpo.def: Add po_message_remove_filepos, diff --git a/gettext-tools/src/ChangeLog b/gettext-tools/src/ChangeLog index 3eaa36247..cc81f5f15 100644 --- a/gettext-tools/src/ChangeLog +++ b/gettext-tools/src/ChangeLog @@ -1,3 +1,9 @@ +2005-02-10 Bruno Haible + + * gettext-po.h (LIBGETTEXTPO_VERSION): New macro. + (libgettextpo_version): New declaration. + * gettext-po.c (libgettextpo_version): New variable. + 2005-02-10 Bruno Haible * gettext-po.h (po_message_remove_filepos, po_message_add_filepos): New diff --git a/gettext-tools/src/gettext-po.c b/gettext-tools/src/gettext-po.c index 0508616aa..8e2413c80 100644 --- a/gettext-tools/src/gettext-po.c +++ b/gettext-tools/src/gettext-po.c @@ -64,6 +64,10 @@ struct po_message_iterator /* A po_filepos_t is actually a 'lex_pos_ty *'. */ +/* Version number: (major<<16) + (minor<<8) + subminor */ +int libgettextpo_version = LIBGETTEXTPO_VERSION; + + /* Create an empty PO file representation in memory. */ po_file_t diff --git a/gettext-tools/src/gettext-po.h b/gettext-tools/src/gettext-po.h index e54d966ac..2def1ea3b 100644 --- a/gettext-tools/src/gettext-po.h +++ b/gettext-tools/src/gettext-po.h @@ -26,6 +26,12 @@ extern "C" { #endif +/* =========================== Meta Information ============================ */ + +/* Version number: (major<<16) + (minor<<8) + subminor */ +#define LIBGETTEXTPO_VERSION 0x000E02 +extern int libgettextpo_version; + /* ================================= Types ================================= */ /* A po_file_t represents the contents of a PO file. */ diff --git a/gettext-tools/windows/gettextpo.def b/gettext-tools/windows/gettextpo.def index 16d477a3c..a0a089004 100644 --- a/gettext-tools/windows/gettextpo.def +++ b/gettext-tools/windows/gettextpo.def @@ -1,5 +1,6 @@ LIBRARY gettextpo EXPORTS +libgettextpo_version po_file_create po_file_domains po_file_domain_header