summaryrefslogtreecommitdiff
path: root/mpfr.texi
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2007-07-30 09:31:58 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2007-07-30 09:31:58 +0000
commitfcfd2a3068568b7ee2bd8c6330451dab4e505467 (patch)
tree717f77eaef586b1f45e5546776a1a7dcf602a0f6 /mpfr.texi
parent795ac325ecec627c335db6c3e9a2f9ae2f56691e (diff)
downloadmpfr-fcfd2a3068568b7ee2bd8c6330451dab4e505467.tar.gz
mpfr.texi: updated description of mpfr_get_version().
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4708 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'mpfr.texi')
-rw-r--r--mpfr.texi6
1 files changed, 5 insertions, 1 deletions
diff --git a/mpfr.texi b/mpfr.texi
index 1d75eb7f1..8cd2efe73 100644
--- a/mpfr.texi
+++ b/mpfr.texi
@@ -1883,13 +1883,17 @@ Return the MPFR version, as a null-terminated string.
@code{MPFR_VERSION_MAJOR}, @code{MPFR_VERSION_MINOR} and
@code{MPFR_VERSION_PATCHLEVEL} are respectively the major, minor and patch
level of MPFR version, as preprocessing constants.
-@code{MPFR_VERSION_STRING} is the version as a string constant, which can
+@code{MPFR_VERSION_STRING} is the version (with an optional suffix, used
+in development and pre-release versions) as a string constant, which can
be compared to the result of @code{mpfr_get_version} to check at run time
the header file and library used match:
@example
if (strcmp (mpfr_get_version (), MPFR_VERSION_STRING))
fprintf (stderr, "Error, header and library files do not match\n");
@end example
+Note: Obtaining different strings is not necessarily an error, as
+dynamically linking a program compiled with some older MPFR version
+can be allowed by the library versioning system.
@end defmac
@deftypefn Macro long MPFR_VERSION_NUM (@var{major}, @var{minor}, @var{patchlevel})