Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Vermeulen <jtv@precisiontranslationtools.com>2015-03-28 15:37:48 +0300
committerJeroen Vermeulen <jtv@precisiontranslationtools.com>2015-03-28 15:37:48 +0300
commit88e90957a1b56c98842769947f07d7abee95a8ec (patch)
tree57404bcfc5371ddbcb3f55399d9e95c5f4bdb9bf /util/double-conversion
parent206d0c969885817521e941eaec879517e39a5b59 (diff)
Modernize "C" includes in util.
This is one of those little chores in managing a long-lived C++ project: standard C headers like stdio.h and math.h now have their own place in the C++ standard as resp. cstdio, cmath, and so on. In this branch the #include names are updated for the util/ subdirectory; more branches to follow. C++11 adds cstdint, but to support compilation with the previous standard, that change is left for later.
Diffstat (limited to 'util/double-conversion')
-rw-r--r--util/double-conversion/bignum-dtoa.cc2
-rw-r--r--util/double-conversion/cached-powers.cc6
-rw-r--r--util/double-conversion/double-conversion.cc4
-rw-r--r--util/double-conversion/fixed-dtoa.cc2
-rw-r--r--util/double-conversion/strtod.cc4
5 files changed, 9 insertions, 9 deletions
diff --git a/util/double-conversion/bignum-dtoa.cc b/util/double-conversion/bignum-dtoa.cc
index b6c2e85d1..3d217bf02 100644
--- a/util/double-conversion/bignum-dtoa.cc
+++ b/util/double-conversion/bignum-dtoa.cc
@@ -25,7 +25,7 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#include <math.h>
+#include <cmath>
#include "bignum-dtoa.h"
diff --git a/util/double-conversion/cached-powers.cc b/util/double-conversion/cached-powers.cc
index c67642919..9dcfa3673 100644
--- a/util/double-conversion/cached-powers.cc
+++ b/util/double-conversion/cached-powers.cc
@@ -25,9 +25,9 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#include <stdarg.h>
-#include <limits.h>
-#include <math.h>
+#include <cstdarg>
+#include <climits>
+#include <cmath>
#include "utils.h"
diff --git a/util/double-conversion/double-conversion.cc b/util/double-conversion/double-conversion.cc
index febba6cd7..8a7923c5c 100644
--- a/util/double-conversion/double-conversion.cc
+++ b/util/double-conversion/double-conversion.cc
@@ -25,8 +25,8 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#include <limits.h>
-#include <math.h>
+#include <climits>
+#include <cmath>
#include "double-conversion.h"
diff --git a/util/double-conversion/fixed-dtoa.cc b/util/double-conversion/fixed-dtoa.cc
index d56b1449b..7c1a95278 100644
--- a/util/double-conversion/fixed-dtoa.cc
+++ b/util/double-conversion/fixed-dtoa.cc
@@ -25,7 +25,7 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#include <math.h>
+#include <cmath>
#include "fixed-dtoa.h"
#include "ieee.h"
diff --git a/util/double-conversion/strtod.cc b/util/double-conversion/strtod.cc
index e298766a2..55b4daa5d 100644
--- a/util/double-conversion/strtod.cc
+++ b/util/double-conversion/strtod.cc
@@ -25,8 +25,8 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#include <stdarg.h>
-#include <limits.h>
+#include <cstdarg>
+#include <climits>
#include "strtod.h"
#include "bignum.h"