From dba0205e1cc08ecaea224a856a6e38e5821d21fe Mon Sep 17 00:00:00 2001
From: sebastien <sebastien@ac1d8469-bf42-47a9-8791-bf33cf982152>
Date: Tue, 19 Feb 2008 14:35:59 +0000
Subject: [PATCH] v4 preprocessor mex/sources/simulate: replaced C headers by
 their C++ counterpart

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1712 ac1d8469-bf42-47a9-8791-bf33cf982152
---
 mex/sources/simulate/SparseMatrix.hh | 4 ++--
 mex/sources/simulate/linbcg.hh       | 3 +--
 mex/sources/simulate/simulate.hh     | 4 ++--
 preprocessor/BlockTriangular.cc      | 8 ++++----
 preprocessor/ExprNode.cc             | 2 +-
 preprocessor/ModelBlocks.cc          | 4 ++--
 preprocessor/ModelNormalization.cc   | 4 ++--
 preprocessor/ModelTree.cc            | 2 +-
 preprocessor/Model_Graph.cc          | 8 ++++----
 preprocessor/SymbolGaussElim.cc      | 8 ++++----
 10 files changed, 23 insertions(+), 24 deletions(-)

diff --git a/mex/sources/simulate/SparseMatrix.hh b/mex/sources/simulate/SparseMatrix.hh
index ad596bfc3..203df96f5 100644
--- a/mex/sources/simulate/SparseMatrix.hh
+++ b/mex/sources/simulate/SparseMatrix.hh
@@ -22,9 +22,9 @@
 
 #include <fstream>
 #include <stack>
-#include <math.h>
+#include <cmath>
 #include <map>
-#include <time.h>
+#include <ctime>
 #include "Mem_Mngr.hh"
 
 #define NEW_ALLOC
diff --git a/mex/sources/simulate/linbcg.hh b/mex/sources/simulate/linbcg.hh
index c19713185..b040c403d 100644
--- a/mex/sources/simulate/linbcg.hh
+++ b/mex/sources/simulate/linbcg.hh
@@ -22,12 +22,11 @@
 
 #include <iostream>
 #include <iomanip>
-#include <math.h>
 #include <cmath>
 #include <complex>
 #include <map>
 #include <string>
-#include <time.h>
+#include <ctime>
 #include "mex.h"
 
 using namespace std;
diff --git a/mex/sources/simulate/simulate.hh b/mex/sources/simulate/simulate.hh
index b98cb1e60..928f87cfb 100644
--- a/mex/sources/simulate/simulate.hh
+++ b/mex/sources/simulate/simulate.hh
@@ -23,10 +23,10 @@
 /*#include <stack>
 #include <set>
 #include <vector>
-#include <math.h>
+#include <cmath>
 #include <iostream>
 #include <fstream>*/
-//#include <time.h>
+//#include <ctime>
 //#include <string>
 /*#include <map>
 #include <algorithm>
diff --git a/preprocessor/BlockTriangular.cc b/preprocessor/BlockTriangular.cc
index ffa586b64..f3c403bb2 100644
--- a/preprocessor/BlockTriangular.cc
+++ b/preprocessor/BlockTriangular.cc
@@ -22,10 +22,10 @@
 #include <iostream>
 #include <sstream>
 #include <fstream>
-#include <time.h>
-#include <stdlib.h>
-#include <string.h>
-#include <math.h>
+#include <ctime>
+#include <cstdlib>
+#include <cstring>
+#include <cmath>
 using namespace std;
 //------------------------------------------------------------------------------
 #include "BlockTriangular.hh"
diff --git a/preprocessor/ExprNode.cc b/preprocessor/ExprNode.cc
index f3b36bbe9..4012c9a6b 100644
--- a/preprocessor/ExprNode.cc
+++ b/preprocessor/ExprNode.cc
@@ -21,7 +21,7 @@
 #include <iterator>
 #include <algorithm>
 
-#include <math.h>
+#include <cmath>
 
 #include "ExprNode.hh"
 #include "DataTree.hh"
diff --git a/preprocessor/ModelBlocks.cc b/preprocessor/ModelBlocks.cc
index a772883d4..a5a33494a 100644
--- a/preprocessor/ModelBlocks.cc
+++ b/preprocessor/ModelBlocks.cc
@@ -17,8 +17,8 @@
  * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include <stdlib.h>
-#include <stdio.h>
+#include <cstdlib>
+#include <cstdio>
 #include <iostream>
 #include <sstream>
 #include <fstream>
diff --git a/preprocessor/ModelNormalization.cc b/preprocessor/ModelNormalization.cc
index 11a14f06a..040fdf6dd 100644
--- a/preprocessor/ModelNormalization.cc
+++ b/preprocessor/ModelNormalization.cc
@@ -18,8 +18,8 @@
  */
 
 //#define DEBUG
-#include <stdio.h>
-#include <stdlib.h>
+#include <cstdio>
+#include <cstdlib>
 #include <iostream>
 #include <sstream>
 #include <fstream>
diff --git a/preprocessor/ModelTree.cc b/preprocessor/ModelTree.cc
index 6f2ebf49f..b2e7ee74f 100644
--- a/preprocessor/ModelTree.cc
+++ b/preprocessor/ModelTree.cc
@@ -21,7 +21,7 @@
 #include <fstream>
 #include <sstream>
 
-#include <math.h>
+#include <cmath>
 
 #include "ModelTree.hh"
 #include "Interface.hh"
diff --git a/preprocessor/Model_Graph.cc b/preprocessor/Model_Graph.cc
index 4ce54c599..8103ac9f3 100644
--- a/preprocessor/Model_Graph.cc
+++ b/preprocessor/Model_Graph.cc
@@ -17,13 +17,13 @@
  * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include <stdlib.h>
-#include <stdio.h>
+#include <cstdlib>
+#include <cstdio>
 #include <iostream>
 #include <string>
-#include <sys/time.h>
+#include <ctime>
 #include <stack>
-#include <math.h>
+#include <cmath>
 #include "ModelTree.hh"
 #include "Model_Graph.hh"
 #include "BlockTriangular.hh"
diff --git a/preprocessor/SymbolGaussElim.cc b/preprocessor/SymbolGaussElim.cc
index 24a082ccd..2a17fefaf 100644
--- a/preprocessor/SymbolGaussElim.cc
+++ b/preprocessor/SymbolGaussElim.cc
@@ -17,13 +17,13 @@
  * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include <stdlib.h>
-#include <stdio.h>
+#include <cstdlib>
+#include <cstdio>
 #include <iostream>
 #include <string>
-#include <sys/time.h>
+#include <ctime>
 #include <stack>
-#include <math.h>
+#include <cmath>
 #include <fstream>
 
 #include "ModelTree.hh"
-- 
GitLab