Reversed logic to NO_STATIC_VOPTS, default is now static vopts. No changes to Makefile or project needed now.

git-svn-id: svn://136.177.114.72/svn_GW/phreeqc3/trunk@6771 1feff8c3-07ed-0310-ac33-dd36852eb9cd
This commit is contained in:
David L Parkhurst 2012-07-11 16:39:13 +00:00
parent 8823f0ff2f
commit 0ca9654356
24 changed files with 72 additions and 72 deletions

View File

@ -243,10 +243,10 @@ ChartObject::Set_axis_scale(CParser & parser)
bool
ChartObject::Read(CParser & parser)
{
#if defined(STATIC_VOPTS)
static std::vector < std::string > vopts;
#else
#if defined(NO_STATIC_VOPTS)
std::vector < std::string > vopts;
#else
static std::vector < std::string > vopts;
#endif
if (vopts.empty())
{

View File

@ -179,10 +179,10 @@ cxxExchComp::read_raw(CParser & parser, bool check)
{
std::string str;
#if defined(STATIC_VOPTS)
static std::vector < std::string > vopts;
#else
#if defined(NO_STATIC_VOPTS)
std::vector < std::string > vopts;
#else
static std::vector < std::string > vopts;
#endif
if (vopts.empty())
{

View File

@ -196,10 +196,10 @@ cxxExchange::dump_raw(std::ostream & s_oss, unsigned int indent, int *n_out) con
void
cxxExchange::read_raw(CParser & parser, bool check)
{
#if defined(STATIC_VOPTS)
static std::vector < std::string > vopts;
#else
#if defined(NO_STATIC_VOPTS)
std::vector < std::string > vopts;
#else
static std::vector < std::string > vopts;
#endif
if (vopts.empty())
{

View File

@ -62,10 +62,10 @@ cxxGasComp::read_raw(CParser & parser, bool check)
{
std::string str;
#if defined(STATIC_VOPTS)
static std::vector < std::string > vopts;
#else
#if defined(NO_STATIC_VOPTS)
std::vector < std::string > vopts;
#else
static std::vector < std::string > vopts;
#endif
if (vopts.empty())
{

View File

@ -273,10 +273,10 @@ cxxGasPhase::read_raw(CParser & parser, bool check)
{
int i;
#if defined(STATIC_VOPTS)
static std::vector < std::string > vopts;
#else
#if defined(NO_STATIC_VOPTS)
std::vector < std::string > vopts;
#else
static std::vector < std::string > vopts;
#endif
if (vopts.empty())
{

View File

@ -134,10 +134,10 @@ cxxKineticsComp::read_raw(CParser & parser, bool check)
{
std::string str;
#if defined(STATIC_VOPTS)
static std::vector < std::string > vopts;
#else
#if defined(NO_STATIC_VOPTS)
std::vector < std::string > vopts;
#else
static std::vector < std::string > vopts;
#endif
if (vopts.empty())
{

View File

@ -125,10 +125,10 @@ cxxPPassemblage::dump_raw(std::ostream & s_oss, unsigned int indent, int *n_out)
void
cxxPPassemblage::read_raw(CParser & parser, bool check)
{
#if defined(STATIC_VOPTS)
static std::vector < std::string > vopts;
#else
#if defined(NO_STATIC_VOPTS)
std::vector < std::string > vopts;
#else
static std::vector < std::string > vopts;
#endif
if (vopts.empty())
{

View File

@ -106,10 +106,10 @@ cxxPPassemblageComp::read_raw(CParser & parser, bool check)
{
std::string str;
#if defined(STATIC_VOPTS)
static std::vector < std::string > vopts;
#else
#if defined(NO_STATIC_VOPTS)
std::vector < std::string > vopts;
#else
static std::vector < std::string > vopts;
#endif
if (vopts.empty())
{

View File

@ -198,10 +198,10 @@ cxxPressure::read_raw(CParser & parser)
bool cleared_once = false;
LDBLE d;
CParser::TOKEN_TYPE k;
#if defined(STATIC_VOPTS)
static std::vector < std::string > vopts;
#else
#if defined(NO_STATIC_VOPTS)
std::vector < std::string > vopts;
#else
static std::vector < std::string > vopts;
#endif
if (vopts.empty())
{

View File

@ -131,10 +131,10 @@ cxxReaction::read_raw(CParser & parser, const bool check)
int j;
LDBLE d;
CParser::TOKEN_TYPE k;
#if defined(STATIC_VOPTS)
static std::vector < std::string > vopts;
#else
#if defined(NO_STATIC_VOPTS)
std::vector < std::string > vopts;
#else
static std::vector < std::string > vopts;
#endif
if (vopts.empty())
{

6
SS.cxx
View File

@ -126,10 +126,10 @@ cxxSS::read_raw(CParser & parser, bool check)
{
std::string str;
#if defined(STATIC_VOPTS)
static std::vector < std::string > vopts;
#else
#if defined(NO_STATIC_VOPTS)
std::vector < std::string > vopts;
#else
static std::vector < std::string > vopts;
#endif
if (vopts.empty())
{

View File

@ -126,10 +126,10 @@ cxxSSassemblage::dump_raw(std::ostream & s_oss, unsigned int indent, int *n_out)
void
cxxSSassemblage::read_raw(CParser & parser, bool check)
{
#if defined(STATIC_VOPTS)
static std::vector < std::string > vopts;
#else
#if defined(NO_STATIC_VOPTS)
std::vector < std::string > vopts;
#else
static std::vector < std::string > vopts;
#endif
if (vopts.empty())
{

View File

@ -92,10 +92,10 @@ cxxSScomp::read_raw(CParser & parser, bool check)
{
std::string str;
#if defined(STATIC_VOPTS)
static std::vector < std::string > vopts;
#else
#if defined(NO_STATIC_VOPTS)
std::vector < std::string > vopts;
#else
static std::vector < std::string > vopts;
#endif
if (vopts.empty())
{

View File

@ -292,10 +292,10 @@ cxxSolution::dump_raw(std::ostream & s_oss, unsigned int indent, int *n_out) con
void
cxxSolution::read_raw(CParser & parser, bool check)
{
#if defined(STATIC_VOPTS)
static std::vector < std::string > vopts;
#else
#if defined(NO_STATIC_VOPTS)
std::vector < std::string > vopts;
#else
static std::vector < std::string > vopts;
#endif
if (vopts.empty())
{

View File

@ -95,10 +95,10 @@ cxxSolutionIsotope::dump_raw(std::ostream & s_oss, unsigned int indent) const
}
void cxxSolutionIsotope::read_raw(CParser & parser, bool check )
{
#if defined(STATIC_VOPTS)
static std::vector < std::string > vopts;
#else
#if defined(NO_STATIC_VOPTS)
std::vector < std::string > vopts;
#else
static std::vector < std::string > vopts;
#endif
if (vopts.empty())
{

View File

@ -138,10 +138,10 @@ void StorageBinList::SetAll(bool tf)
bool StorageBinList::Read(CParser & parser)
{
bool return_value(true);
#if defined(STATIC_VOPTS)
static std::vector < std::string > vopts;
#else
#if defined(NO_STATIC_VOPTS)
std::vector < std::string > vopts;
#else
static std::vector < std::string > vopts;
#endif
if (vopts.empty())
{

View File

@ -234,10 +234,10 @@ cxxSurface::dump_raw(std::ostream & s_oss, unsigned int indent, int *n_out) cons
void
cxxSurface::read_raw(CParser & parser, bool check)
{
#if defined(STATIC_VOPTS)
static std::vector < std::string > vopts;
#else
#if defined(NO_STATIC_VOPTS)
std::vector < std::string > vopts;
#else
static std::vector < std::string > vopts;
#endif
int i = 0;
if (vopts.empty())

View File

@ -118,10 +118,10 @@ cxxSurfaceCharge::read_raw(CParser & parser, bool check)
{
std::string str;
#if defined(STATIC_VOPTS)
static std::vector < std::string > vopts;
#else
#if defined(NO_STATIC_VOPTS)
std::vector < std::string > vopts;
#else
static std::vector < std::string > vopts;
#endif
if (vopts.empty())
{

View File

@ -114,10 +114,10 @@ cxxSurfaceComp::read_raw(CParser & parser, bool check)
{
std::string str;
#if defined(STATIC_VOPTS)
static std::vector < std::string > vopts;
#else
#if defined(NO_STATIC_VOPTS)
std::vector < std::string > vopts;
#else
static std::vector < std::string > vopts;
#endif
if (vopts.empty())
{

View File

@ -236,10 +236,10 @@ cxxTemperature::read_raw(CParser & parser)
// clear steps for modify operation, if pressures are read
bool cleared_once = false;
#if defined(STATIC_VOPTS)
static std::vector < std::string > vopts;
#else
#if defined(NO_STATIC_VOPTS)
std::vector < std::string > vopts;
#else
static std::vector < std::string > vopts;
#endif
if (vopts.empty())
{

View File

@ -187,10 +187,10 @@ cxxKinetics::read_raw(CParser & parser, bool check)
{
LDBLE d;
#if defined(STATIC_VOPTS)
static std::vector < std::string > vopts;
#else
#if defined(NO_STATIC_VOPTS)
std::vector < std::string > vopts;
#else
static std::vector < std::string > vopts;
#endif
if (vopts.empty())
{

View File

@ -95,10 +95,10 @@ cxxMix::read_raw(CParser & parser)
int i;
LDBLE d;
#if defined(STATIC_VOPTS)
static std::vector < std::string > vopts;
#else
#if defined(NO_STATIC_VOPTS)
std::vector < std::string > vopts;
#else
static std::vector < std::string > vopts;
#endif
if (vopts.empty())
{

View File

@ -33,10 +33,10 @@ void dumper::SetAll(bool tf)
bool dumper::Read(CParser & parser)
{
bool return_value(true);
#if defined(STATIC_VOPTS)
static std::vector < std::string > vopts;
#else
#if defined(NO_STATIC_VOPTS)
std::vector < std::string > vopts;
#else
static std::vector < std::string > vopts;
#endif
if (vopts.empty())
{

View File

@ -28,10 +28,10 @@ bool runner::Read(CParser & parser)
{
bool return_value(true);
#if defined(STATIC_VOPTS)
static std::vector < std::string > vopts;
#else
#if defined(NO_STATIC_VOPTS)
std::vector < std::string > vopts;
#else
static std::vector < std::string > vopts;
#endif
if (vopts.empty())
{