added standard return values

git-svn-id: svn://136.177.114.72/svn_GW/IPhreeqc/trunk@4356 1feff8c3-07ed-0310-ac33-dd36852eb9cd
This commit is contained in:
Scott R Charlton 2010-05-10 01:06:08 +00:00
parent 0afbe0bc72
commit 34ddf3b190
4 changed files with 30 additions and 20 deletions

View File

@ -1,3 +1,6 @@
/*! @file IPhreeqc.h
@brief C/Fortran Documentation
*/
#ifndef INC_IPHREEQC_H
#define INC_IPHREEQC_H

View File

@ -1,3 +1,7 @@
/*! @file IPhreeqc.hpp
@brief C++ Documentation
*/
#ifndef INC_IPHREEQC_HPP
#define INC_IPHREEQC_HPP

View File

@ -1,3 +1,6 @@
/*! @file Var.h
@brief %IPhreeqc VARIANT Documentation
*/
// Var.h
#ifndef __VAR_H_INC

View File

@ -36,7 +36,7 @@ public:
return EXIT_FAILURE;
}
return 0;
return EXIT_SUCCESS;
}
};
@ -47,42 +47,42 @@ main(int argc, const char* argv[])
// Dump
TTestGetSet<IPhreeqc> testDump(&iphreeqc, &IPhreeqc::GetDumpOn, &IPhreeqc::SetDumpOn);
if (testDump.Test() != 0)
if (testDump.Test() != EXIT_SUCCESS)
{
return EXIT_FAILURE;
}
// Dump string
TTestGetSet<IPhreeqc> testDumpString(&iphreeqc, &IPhreeqc::GetDumpStringOn, &IPhreeqc::SetDumpStringOn);
if (testDumpString.Test() != 0)
if (testDumpString.Test() != EXIT_SUCCESS)
{
return EXIT_FAILURE;
}
// Error
TTestGetSet<IPhreeqc> testError(&iphreeqc, &IPhreeqc::GetErrorOn, &IPhreeqc::SetErrorOn);
if (testError.Test() != 0)
if (testError.Test() != EXIT_SUCCESS)
{
return EXIT_FAILURE;
}
// Log
TTestGetSet<IPhreeqc> testLog(&iphreeqc, &IPhreeqc::GetLogOn, &IPhreeqc::SetLogOn);
if (testLog.Test() != 0)
if (testLog.Test() != EXIT_SUCCESS)
{
return EXIT_FAILURE;
}
// Output
TTestGetSet<IPhreeqc> testOutput(&iphreeqc, &IPhreeqc::GetOutputOn, &IPhreeqc::SetOutputOn);
if (testOutput.Test() != 0)
if (testOutput.Test() != EXIT_SUCCESS)
{
return EXIT_FAILURE;
}
// Selected output
TTestGetSet<IPhreeqc> testSelectedOutput(&iphreeqc, &IPhreeqc::GetSelectedOutputOn, &IPhreeqc::SetSelectedOutputOn);
if (testSelectedOutput.Test() != 0)
if (testSelectedOutput.Test() != EXIT_SUCCESS)
{
return EXIT_FAILURE;
}