summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthevenyp <thevenyp@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2008-12-03 13:51:41 +0000
committerthevenyp <thevenyp@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2008-12-03 13:51:41 +0000
commit10ee8d4efa51853cabd7262615e1bd8d4ca0a15a (patch)
treef97facc08f3be0dfa1c24a3e748fb0bb48f611cf
parent4484cdb629566ecc0bf4d702c3ac8b8ed73a38ae (diff)
downloadmpc-10ee8d4efa51853cabd7262615e1bd8d4ca0a15a.tar.gz
src/get_version.c: change name from version.c to get_version.c, use literal string instead of MPC_VERSION_STRING in order to avoid mistakes during the compilation of the MPC library.
src/Makefile.am: Transfert file name for mpc_get_version code. README.dev: Add a new place to update when changing version number. git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@378 211d60ee-9f03-0410-a15a-8952a2c7a4e4
-rw-r--r--README.dev3
-rw-r--r--src/Makefile.am12
-rw-r--r--src/get_version.c28
3 files changed, 36 insertions, 7 deletions
diff --git a/README.dev b/README.dev
index 6819138..9fc4ba2 100644
--- a/README.dev
+++ b/README.dev
@@ -11,7 +11,8 @@ Creating a new release
----------------------
1) Check the version number in configure.ac ("AC_INIT (mpc, _version_...)"),
- in INSTALL, and in src/mpc.h (remove suffix in MPC_VERSION_STRING).
+ in INSTALL, in src/get_version.c and in src/mpc.h (remove suffix in
+ MPC_VERSION_STRING).
2) Disactivate the -Werror option in configure.ac.
3) Verify that the API version in src/Makefile.am is correct.
4) Check that NEWS, BUGS and TODO are up to date, and that the minimal
diff --git a/src/Makefile.am b/src/Makefile.am
index 4c14b1b..74c239e 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -5,9 +5,9 @@ lib_LTLIBRARIES = libmpc.la
libmpc_la_LDFLAGS = -version-info 1:0:0
libmpc_la_SOURCES = mpc-impl.h abs.c add.c add_fr.c add_ui.c arg.c clear.c \
cmp.c cmp_si_si.c conj.c cos.c cosh.c div_2exp.c div.c div_fr.c div_ui.c exp.c \
-fr_div.c fr_sub.c get_prec2.c get_prec.c imag.c init2.c init3.c init.c \
-inp_str.c log.c mul_2exp.c mul.c mul_fr.c mul_i.c mul_si.c mul_ui.c neg.c \
-norm.c out_str.c proj.c random2.c random.c real.c urandom.c set.c set_d_d.c \
-set_dfl_prec.c set_fr.c set_fr_fr.c set_prec.c set_si_si.c set_ui_fr.c \
-set_ui_ui.c sin.c sinh.c sqr.c sqrt.c sub.c sub_fr.c sub_ui.c tan.c tanh.c \
-uceil_log2.c ui_div.c ui_ui_sub.c version.c
+fr_div.c fr_sub.c get_prec2.c get_prec.c get_version.c imag.c init2.c init3.c \
+init.c inp_str.c log.c mul_2exp.c mul.c mul_fr.c mul_i.c mul_si.c mul_ui.c \
+neg.c norm.c out_str.c proj.c random2.c random.c real.c urandom.c set.c \
+set_d_d.c set_dfl_prec.c set_fr.c set_fr_fr.c set_prec.c set_si_si.c \
+set_ui_fr.c set_ui_ui.c sin.c sinh.c sqr.c sqrt.c sub.c sub_fr.c sub_ui.c \
+tan.c tanh.c uceil_log2.c ui_div.c ui_ui_sub.c
diff --git a/src/get_version.c b/src/get_version.c
new file mode 100644
index 0000000..e769251
--- /dev/null
+++ b/src/get_version.c
@@ -0,0 +1,28 @@
+/* mpc_get_version -- MPC version
+
+Copyright (C) 2008 Philippe Th\'eveny
+
+This file is part of the MPC Library.
+
+The MPC Library is free software; you can redistribute it and/or modify
+it under the terms of the GNU Lesser General Public License as published by
+the Free Software Foundation; either version 2.1 of the License, or (at your
+option) any later version.
+
+The MPC Library is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
+License for more details.
+
+You should have received a copy of the GNU Lesser General Public License
+along with the MPC Library; see the file COPYING.LIB. If not, write to
+the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+MA 02111-1307, USA. */
+
+#include "mpc.h"
+
+const char *
+mpc_get_version (void)
+{
+ return "0.6-dev";
+}