diff options
author | Jeroen Vermeulen <jtv@precisiontranslationtools.com> | 2015-03-28 15:48:20 +0300 |
---|---|---|
committer | Jeroen Vermeulen <jtv@precisiontranslationtools.com> | 2015-03-28 15:48:20 +0300 |
commit | dea76752e932295a7b2b27052441af8263e310e0 (patch) | |
tree | 1ab5406f8117cd40fe5782b04f30904bfadd3c49 /search | |
parent | 88e90957a1b56c98842769947f07d7abee95a8ec (diff) |
Modernize "C" includes in search.
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 search/ 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 'search')
-rw-r--r-- | search/applied.hh | 2 | ||||
-rw-r--r-- | search/nbest.cc | 5 | ||||
-rw-r--r-- | search/nbest.hh | 3 | ||||
-rw-r--r-- | search/rule.cc | 2 | ||||
-rw-r--r-- | search/vertex.cc | 3 | ||||
-rw-r--r-- | search/vertex.hh | 3 |
6 files changed, 7 insertions, 11 deletions
diff --git a/search/applied.hh b/search/applied.hh index 8130e243d..88961775f 100644 --- a/search/applied.hh +++ b/search/applied.hh @@ -5,7 +5,7 @@ #include "search/header.hh" #include "util/pool.hh" -#include <math.h> +#include <cmath> namespace search { diff --git a/search/nbest.cc b/search/nbest.cc index 8445826f1..43ed702cb 100644 --- a/search/nbest.cc +++ b/search/nbest.cc @@ -6,9 +6,8 @@ #include <algorithm> #include <functional> #include <queue> - -#include <assert.h> -#include <math.h> +#include <cassert> +#include <cmath> namespace search { diff --git a/search/nbest.hh b/search/nbest.hh index cb7651bc2..0aa1dfd57 100644 --- a/search/nbest.hh +++ b/search/nbest.hh @@ -10,8 +10,7 @@ #include <cstddef> #include <queue> #include <vector> - -#include <assert.h> +#include <cassert> namespace search { diff --git a/search/rule.cc b/search/rule.cc index 0244a09f7..4d5d430a5 100644 --- a/search/rule.cc +++ b/search/rule.cc @@ -5,7 +5,7 @@ #include <ostream> -#include <math.h> +#include <cmath> namespace search { diff --git a/search/vertex.cc b/search/vertex.cc index bf40810e9..305ea0c99 100644 --- a/search/vertex.cc +++ b/search/vertex.cc @@ -6,8 +6,7 @@ #include <algorithm> #include <functional> - -#include <assert.h> +#include <cassert> namespace search { diff --git a/search/vertex.hh b/search/vertex.hh index baeae3469..f560dc8c6 100644 --- a/search/vertex.hh +++ b/search/vertex.hh @@ -8,8 +8,7 @@ #include <queue> #include <vector> - -#include <math.h> +#include <cmath> #include <stdint.h> namespace search { |