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
path: root/mert/TER
diff options
context:
space:
mode:
authorJeroen Vermeulen <jtv@precisiontranslationtools.com>2015-03-28 16:20:58 +0300
committerJeroen Vermeulen <jtv@precisiontranslationtools.com>2015-03-28 16:20:58 +0300
commit536c6e375f57b45956de12e9337d6989a368e86a (patch)
tree16fae2a9afb5f7767bb70de77c526cf3f2b0cf8c /mert/TER
parent98e09b14cbc4d06d24f4c976d4c983f3444bbcfe (diff)
Modernize "C" includes in mert.
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 mert/ 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 'mert/TER')
-rw-r--r--mert/TER/alignmentStruct.h4
-rw-r--r--mert/TER/bestShiftStruct.h2
-rw-r--r--mert/TER/infosHasher.h4
-rw-r--r--mert/TER/terAlignment.h6
-rw-r--r--mert/TER/terShift.h4
-rw-r--r--mert/TER/tercalc.h4
-rw-r--r--mert/TER/tools.h4
7 files changed, 14 insertions, 14 deletions
diff --git a/mert/TER/alignmentStruct.h b/mert/TER/alignmentStruct.h
index f593d560b..379af9382 100644
--- a/mert/TER/alignmentStruct.h
+++ b/mert/TER/alignmentStruct.h
@@ -23,7 +23,7 @@ Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include <vector>
-#include <stdio.h>
+#include <cstdio>
#include <string>
#include <sstream>
#include "tools.h"
@@ -64,4 +64,4 @@ public:
};
}
-#endif \ No newline at end of file
+#endif
diff --git a/mert/TER/bestShiftStruct.h b/mert/TER/bestShiftStruct.h
index a0f7f1493..85b65979b 100644
--- a/mert/TER/bestShiftStruct.h
+++ b/mert/TER/bestShiftStruct.h
@@ -23,7 +23,7 @@ Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include <vector>
-#include <stdio.h>
+#include <cstdio>
#include <string>
#include <sstream>
#include "tools.h"
diff --git a/mert/TER/infosHasher.h b/mert/TER/infosHasher.h
index e441bfe33..b824d18eb 100644
--- a/mert/TER/infosHasher.h
+++ b/mert/TER/infosHasher.h
@@ -22,7 +22,7 @@ Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#define __INFOSHASHER_H__
#include <string>
// #include <ext/hash_map>
-#include <stdio.h>
+#include <cstdio>
#include <iostream>
#include <sstream>
#include <vector>
@@ -51,4 +51,4 @@ public:
}
-#endif \ No newline at end of file
+#endif
diff --git a/mert/TER/terAlignment.h b/mert/TER/terAlignment.h
index afa89d7ac..0e98c8f9a 100644
--- a/mert/TER/terAlignment.h
+++ b/mert/TER/terAlignment.h
@@ -23,8 +23,8 @@ Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include <vector>
-#include <stdio.h>
-#include <string.h>
+#include <cstdio>
+#include <cstring>
#include "tools.h"
#include "terShift.h"
@@ -74,4 +74,4 @@ public:
};
}
-#endif \ No newline at end of file
+#endif
diff --git a/mert/TER/terShift.h b/mert/TER/terShift.h
index cd8bcf693..1f9746e60 100644
--- a/mert/TER/terShift.h
+++ b/mert/TER/terShift.h
@@ -23,7 +23,7 @@ Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include <vector>
-#include <stdio.h>
+#include <cstdio>
#include <string>
#include <sstream>
#include "tools.h"
@@ -65,4 +65,4 @@ public:
};
}
-#endif \ No newline at end of file
+#endif
diff --git a/mert/TER/tercalc.h b/mert/TER/tercalc.h
index e2a7ae044..24fb10c4c 100644
--- a/mert/TER/tercalc.h
+++ b/mert/TER/tercalc.h
@@ -22,8 +22,8 @@ Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#define _TERCPPTERCALC_H___
#include <vector>
-#include <stdio.h>
-#include <string.h>
+#include <cstdio>
+#include <cstring>
#include <sstream>
#include "hashMap.h"
#include "hashMapInfos.h"
diff --git a/mert/TER/tools.h b/mert/TER/tools.h
index 29fc11674..20a0cf6b0 100644
--- a/mert/TER/tools.h
+++ b/mert/TER/tools.h
@@ -24,8 +24,8 @@ Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include <vector>
#include <iostream>
-#include <stdio.h>
-#include <stdlib.h>
+#include <cstdio>
+#include <cstdlib>
#include <string>
#include <sstream>
#include <boost/xpressive/xpressive.hpp>