From 3af32f6e36e71e3493635723e4f441c9fe62caaf Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 11 Feb 2005 11:11:40 +0000 Subject: Add a version number. --- gettext-tools/ChangeLog | 4 ++++ gettext-tools/src/ChangeLog | 6 ++++++ gettext-tools/src/gettext-po.c | 4 ++++ gettext-tools/src/gettext-po.h | 6 ++++++ gettext-tools/windows/gettextpo.def | 1 + 5 files changed, 21 insertions(+) (limited to 'gettext-tools') diff --git a/gettext-tools/ChangeLog b/gettext-tools/ChangeLog index b78e1dc..f03af03 100644 --- a/gettext-tools/ChangeLog +++ b/gettext-tools/ChangeLog @@ -1,5 +1,9 @@ 2005-02-10 Bruno Haible + * windows/gettextpo.def: Add libgettextpo_version. + +2005-02-10 Bruno Haible + * windows/gettextpo.def: Add po_message_remove_filepos, po_message_add_filepos. diff --git a/gettext-tools/src/ChangeLog b/gettext-tools/src/ChangeLog index 3eaa362..cc81f5f 100644 --- a/gettext-tools/src/ChangeLog +++ b/gettext-tools/src/ChangeLog @@ -1,5 +1,11 @@ 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 declarations. * gettext-po.c (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 0508616..8e2413c 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 e54d966..2def1ea 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 16d477a..a0a0890 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 -- cgit v1.1