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 16:09:03 +0300
committerJeroen Vermeulen <jtv@precisiontranslationtools.com>2015-03-28 16:09:03 +0300
commita9c8f4489662efcf8825f6bb1a3a8b61c44e7f93 (patch)
treef3d25bb5ef4fbd17343327e02053dd640a5c1fa6 /moses/Syntax
parent9852a0c2ffcac0f7ad93d249f3b9ecd0c5fcf3f9 (diff)
Modernize "C" includes in moses.
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 moses/ 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 'moses/Syntax')
-rw-r--r--moses/Syntax/F2S/HyperTreeLoader.cpp2
-rw-r--r--moses/Syntax/S2T/RuleTrieLoader.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/moses/Syntax/F2S/HyperTreeLoader.cpp b/moses/Syntax/F2S/HyperTreeLoader.cpp
index 0ffc3602f..f3caa2cec 100644
--- a/moses/Syntax/F2S/HyperTreeLoader.cpp
+++ b/moses/Syntax/F2S/HyperTreeLoader.cpp
@@ -3,7 +3,7 @@
#include <sys/stat.h>
#include <cmath>
-#include <stdlib.h>
+#include <cstdlib>
#include <fstream>
#include <string>
#include <iterator>
diff --git a/moses/Syntax/S2T/RuleTrieLoader.cpp b/moses/Syntax/S2T/RuleTrieLoader.cpp
index b9f7484ad..a88c0f5fe 100644
--- a/moses/Syntax/S2T/RuleTrieLoader.cpp
+++ b/moses/Syntax/S2T/RuleTrieLoader.cpp
@@ -1,14 +1,14 @@
#include "RuleTrieLoader.h"
#include <sys/stat.h>
-#include <stdlib.h>
+#include <cstdlib>
#include <fstream>
#include <string>
#include <iterator>
#include <algorithm>
#include <iostream>
-#include <math.h>
+#include <cmath>
#include "moses/FactorCollection.h"
#include "moses/Word.h"