Changed old to new style C headers
This commit is contained in:
parent
0e21a0f3c5
commit
de704473eb
11 changed files with 30 additions and 25 deletions
|
|
@ -22,7 +22,7 @@
|
|||
#include "ctexceptions.h"
|
||||
#include <fstream>
|
||||
#include <string>
|
||||
#include <stdlib.h>
|
||||
#include <cstdlib>
|
||||
#include <time.h>
|
||||
#include "ctml.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -23,8 +23,8 @@
|
|||
|
||||
#define CTML_VERSION_1_4_1
|
||||
|
||||
#include <ctype.h>
|
||||
#include <string.h>
|
||||
#include <cctype>
|
||||
#include <cstring>
|
||||
|
||||
using namespace std;
|
||||
using namespace Cantera;
|
||||
|
|
|
|||
|
|
@ -12,6 +12,8 @@
|
|||
|
||||
#include <iostream>
|
||||
|
||||
#include <cstdlib>
|
||||
|
||||
namespace Cantera {
|
||||
|
||||
///
|
||||
|
|
@ -83,7 +85,7 @@ namespace Cantera {
|
|||
*/
|
||||
virtual void error(const std::string& msg) {
|
||||
std::cerr << msg << std::endl;
|
||||
std::exit(-1);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
/// Return an integer specifying the application environment.
|
||||
|
|
|
|||
|
|
@ -18,10 +18,10 @@
|
|||
|
||||
#include "ct_defs.h"
|
||||
#include "ctexceptions.h"
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <ctype.h>
|
||||
#include <cstdio>
|
||||
#include <cstring>
|
||||
#include <cstdlib>
|
||||
#include <cctype>
|
||||
#include "ctml.h"
|
||||
|
||||
namespace Cantera {
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
#include "CKParser.h"
|
||||
#include "ckr_utils.h"
|
||||
#include "writelog.h"
|
||||
#include <stdio.h>
|
||||
#include <cstdio>
|
||||
//#include "../stringUtils.h"
|
||||
|
||||
using namespace std;
|
||||
|
|
|
|||
|
|
@ -19,13 +19,13 @@ using namespace std;
|
|||
#include "CKReader.h"
|
||||
#include "thermoFunctions.h"
|
||||
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <time.h>
|
||||
#include <cstring>
|
||||
#include <cstdlib>
|
||||
#include <ctime>
|
||||
#include <iomanip>
|
||||
|
||||
#include "writelog.h"
|
||||
#include <stdio.h>
|
||||
#include <cstdio>
|
||||
#include "ckr_defs.h"
|
||||
|
||||
//#include "global.h"
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
#pragma warning(disable:4786)
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <cstdio>
|
||||
#include "writelog.h"
|
||||
|
||||
using namespace std;
|
||||
|
|
|
|||
|
|
@ -15,9 +15,7 @@
|
|||
#define CT_GASKINETICS_H
|
||||
|
||||
#include <fstream>
|
||||
#include <math.h>
|
||||
#include <map>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "mix_defs.h"
|
||||
#include "Kinetics.h"
|
||||
|
|
@ -29,6 +27,9 @@
|
|||
#include "FalloffMgr.h"
|
||||
#include "RateCoeffMgr.h"
|
||||
|
||||
#include <cmath>
|
||||
#include <cstdlib>
|
||||
|
||||
void get_wdot(const doublereal* rop, doublereal* wdot);
|
||||
|
||||
namespace Cantera {
|
||||
|
|
|
|||
|
|
@ -16,9 +16,7 @@
|
|||
#define WRITE_UPDATE
|
||||
|
||||
#include <fstream>
|
||||
#include <math.h>
|
||||
#include <map>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "mix_defs.h"
|
||||
#include "Kinetics.h"
|
||||
|
|
@ -30,6 +28,9 @@
|
|||
#include "RateCoeffMgr.h"
|
||||
#include "Phase.h"
|
||||
|
||||
#include <cmath>
|
||||
#include <cstdlib>
|
||||
|
||||
namespace Cantera {
|
||||
|
||||
// forward references
|
||||
|
|
|
|||
|
|
@ -15,9 +15,7 @@
|
|||
#define CT_IFACEKINETICS_H
|
||||
|
||||
#include <fstream>
|
||||
#include <math.h>
|
||||
#include <map>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "mix_defs.h"
|
||||
#include "Kinetics.h"
|
||||
|
|
@ -26,6 +24,9 @@
|
|||
#include "RateCoeffMgr.h"
|
||||
#include "ReactionStoichMgr.h"
|
||||
|
||||
#include <cmath>
|
||||
#include <cstdlib>
|
||||
|
||||
namespace Cantera {
|
||||
|
||||
// forward references
|
||||
|
|
|
|||
|
|
@ -17,9 +17,9 @@
|
|||
|
||||
/* Standard include files */
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <math.h>
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
#include <cmath>
|
||||
|
||||
#include <vector>
|
||||
|
||||
|
|
@ -1111,7 +1111,7 @@ namespace Cantera {
|
|||
}
|
||||
else {
|
||||
fprintf(stderr,"Unknown ifunc flag = %d\n", ifunc);
|
||||
exit (-1);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
if (m_bulkFunc == BULK_DEPOSITION)
|
||||
|
|
@ -1120,7 +1120,7 @@ namespace Cantera {
|
|||
printf(" Bulk Phases have fixed compositions\n");
|
||||
else {
|
||||
fprintf(stderr,"Unknown bulkFunc flag = %d\n", m_bulkFunc);
|
||||
exit (-1);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
if (damping)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue