From a5e3abd9f6319f5e60baa04231d2a4260a4e0889 Mon Sep 17 00:00:00 2001 From: evomarc Date: Sat, 10 Nov 2001 06:59:02 +0000 Subject: [PATCH] Added the #pragma directive for MSVC++ in all .cpp --- eo/src/eoCtrlCContinue.cpp | 5 +++++ eo/src/eoFunctorStore.cpp | 5 +++++ eo/src/eoPersistent.cpp | 5 +++++ eo/src/eoPrintable.cpp | 5 +++++ eo/src/es/make_algo_scalar_es.cpp | 5 +++++ eo/src/es/make_algo_scalar_real.cpp | 5 +++++ eo/src/es/make_checkpoint_es.cpp | 5 +++++ eo/src/es/make_checkpoint_real.cpp | 5 +++++ eo/src/es/make_continue_es.cpp | 5 +++++ eo/src/es/make_continue_real.cpp | 5 +++++ eo/src/es/make_genotype_es.cpp | 5 +++++ eo/src/es/make_genotype_real.cpp | 5 +++++ eo/src/es/make_op_es.cpp | 5 +++++ eo/src/es/make_op_real.cpp | 5 +++++ eo/src/es/make_pop_es.cpp | 5 +++++ eo/src/es/make_pop_real.cpp | 5 +++++ eo/src/es/make_run_es.cpp | 5 +++++ eo/src/es/make_run_real.cpp | 5 +++++ eo/src/ga/make_algo_scalar_ga.cpp | 5 +++++ eo/src/ga/make_checkpoint_ga.cpp | 5 +++++ eo/src/ga/make_continue_ga.cpp | 5 +++++ eo/src/ga/make_genotype_ga.cpp | 5 +++++ eo/src/ga/make_op_ga.cpp | 5 +++++ eo/src/ga/make_pop_ga.cpp | 5 +++++ eo/src/ga/make_run_ga.cpp | 5 +++++ eo/src/utils/eoFileMonitor.cpp | 5 +++++ eo/src/utils/eoRNG.cpp | 5 +++++ eo/src/utils/eoRealBounds.cpp | 5 +++++ eo/src/utils/eoStdoutMonitor.cpp | 5 +++++ eo/src/utils/make_help.cpp | 5 +++++ 30 files changed, 150 insertions(+) diff --git a/eo/src/eoCtrlCContinue.cpp b/eo/src/eoCtrlCContinue.cpp index 5b3e5d392..36b0abe71 100644 --- a/eo/src/eoCtrlCContinue.cpp +++ b/eo/src/eoCtrlCContinue.cpp @@ -23,6 +23,11 @@ mak@dhi.dk */ //----------------------------------------------------------------------------- +#ifdef _MSC_VER +// to avoid long name warnings +#pragma warning(disable:4786) +#endif + #include #include diff --git a/eo/src/eoFunctorStore.cpp b/eo/src/eoFunctorStore.cpp index dfb66529f..8d552132d 100644 --- a/eo/src/eoFunctorStore.cpp +++ b/eo/src/eoFunctorStore.cpp @@ -1,3 +1,8 @@ +#ifdef _MSC_VER +// to avoid long name warnings +#pragma warning(disable:4786) +#endif + #include #include diff --git a/eo/src/eoPersistent.cpp b/eo/src/eoPersistent.cpp index 50654fd7e..9e61c48d4 100644 --- a/eo/src/eoPersistent.cpp +++ b/eo/src/eoPersistent.cpp @@ -1,3 +1,8 @@ +#ifdef _MSC_VER +// to avoid long name warnings +#pragma warning(disable:4786) +#endif + #include //Implementation of these objects diff --git a/eo/src/eoPrintable.cpp b/eo/src/eoPrintable.cpp index 6810abefc..b56495990 100644 --- a/eo/src/eoPrintable.cpp +++ b/eo/src/eoPrintable.cpp @@ -1,3 +1,8 @@ +#ifdef _MSC_VER +// to avoid long name warnings +#pragma warning(disable:4786) +#endif + //----------------------------------------------------------------------------- // eoPrintable.cpp //----------------------------------------------------------------------------- diff --git a/eo/src/es/make_algo_scalar_es.cpp b/eo/src/es/make_algo_scalar_es.cpp index 5decab968..27624f3eb 100644 --- a/eo/src/es/make_algo_scalar_es.cpp +++ b/eo/src/es/make_algo_scalar_es.cpp @@ -24,6 +24,11 @@ */ //----------------------------------------------------------------------------- +#ifdef _MSC_VER +// to avoid long name warnings +#pragma warning(disable:4786) +#endif + /** This file contains ***INSTANCIATED DEFINITIONS*** of select/replace fns * of the library for evolution of ***eoEs genotypes*** inside EO. * It should be included in the file that calls any of the corresponding fns diff --git a/eo/src/es/make_algo_scalar_real.cpp b/eo/src/es/make_algo_scalar_real.cpp index a6731c177..0a951c0fc 100644 --- a/eo/src/es/make_algo_scalar_real.cpp +++ b/eo/src/es/make_algo_scalar_real.cpp @@ -24,6 +24,11 @@ */ //----------------------------------------------------------------------------- +#ifdef _MSC_VER +// to avoid long name warnings +#pragma warning(disable:4786) +#endif + /** This file contains ***INSTANCIATED DEFINITIONS*** of select/replace fns * of the library for evolution of ***eoReal*** inside EO. * It should be included in the file that calls any of the corresponding fns diff --git a/eo/src/es/make_checkpoint_es.cpp b/eo/src/es/make_checkpoint_es.cpp index a9dfac385..dea658dcb 100644 --- a/eo/src/es/make_checkpoint_es.cpp +++ b/eo/src/es/make_checkpoint_es.cpp @@ -24,6 +24,11 @@ */ //----------------------------------------------------------------------------- +#ifdef _MSC_VER +// to avoid long name warnings +#pragma warning(disable:4786) +#endif + /** This file contains ***INSTANCIATED DEFINITIONS*** of checkpoint fns * of the library for evolution of ***ES genotypes*** inside EO. * It should be included in the file that calls any of the corresponding fns diff --git a/eo/src/es/make_checkpoint_real.cpp b/eo/src/es/make_checkpoint_real.cpp index 15cb8a067..1995d78c1 100644 --- a/eo/src/es/make_checkpoint_real.cpp +++ b/eo/src/es/make_checkpoint_real.cpp @@ -24,6 +24,11 @@ */ //----------------------------------------------------------------------------- +#ifdef _MSC_VER +// to avoid long name warnings +#pragma warning(disable:4786) +#endif + /** This file contains ***INSTANCIATED DEFINITIONS*** of checkpoint fns * of the library for evolution of ***eoReal*** inside EO. * It should be included in the file that calls any of the corresponding fns diff --git a/eo/src/es/make_continue_es.cpp b/eo/src/es/make_continue_es.cpp index 7d53ce399..ca9d4fee3 100644 --- a/eo/src/es/make_continue_es.cpp +++ b/eo/src/es/make_continue_es.cpp @@ -24,6 +24,11 @@ */ //----------------------------------------------------------------------------- +#ifdef _MSC_VER +// to avoid long name warnings +#pragma warning(disable:4786) +#endif + /** This file contains ***INSTANCIATED DEFINITIONS*** of continuator fns * of the library for evolution of ***ES genotypes*** inside EO. * It should be included in the file that calls any of the corresponding fns diff --git a/eo/src/es/make_continue_real.cpp b/eo/src/es/make_continue_real.cpp index 52574024b..868e8eeca 100644 --- a/eo/src/es/make_continue_real.cpp +++ b/eo/src/es/make_continue_real.cpp @@ -24,6 +24,11 @@ */ //----------------------------------------------------------------------------- +#ifdef _MSC_VER +// to avoid long name warnings +#pragma warning(disable:4786) +#endif + /** This file contains ***INSTANCIATED DEFINITIONS*** of continuator fns * of the library for evolution of ***REAL vectors*** inside EO. * It should be included in the file that calls any of the corresponding fns diff --git a/eo/src/es/make_genotype_es.cpp b/eo/src/es/make_genotype_es.cpp index e3b0bd285..a04215736 100644 --- a/eo/src/es/make_genotype_es.cpp +++ b/eo/src/es/make_genotype_es.cpp @@ -24,6 +24,11 @@ */ //----------------------------------------------------------------------------- +#ifdef _MSC_VER +// to avoid long name warnings +#pragma warning(disable:4786) +#endif + /** This file contains ***INSTANCIATED DEFINITIONS*** of eoReal Init fns * It should be included in the file that calls any of the corresponding fns * Compiling this file allows one to generate part of the library (i.e. object diff --git a/eo/src/es/make_genotype_real.cpp b/eo/src/es/make_genotype_real.cpp index c5d58b07e..51a546321 100644 --- a/eo/src/es/make_genotype_real.cpp +++ b/eo/src/es/make_genotype_real.cpp @@ -24,6 +24,11 @@ */ //----------------------------------------------------------------------------- +#ifdef _MSC_VER +// to avoid long name warnings +#pragma warning(disable:4786) +#endif + /** This file contains ***INSTANCIATED DEFINITIONS*** of eoReal Init fns * It should be included in the file that calls any of the corresponding fns * Compiling this file allows one to generate part of the library (i.e. object diff --git a/eo/src/es/make_op_es.cpp b/eo/src/es/make_op_es.cpp index 604d6e7e9..7f4635992 100644 --- a/eo/src/es/make_op_es.cpp +++ b/eo/src/es/make_op_es.cpp @@ -24,6 +24,11 @@ */ //----------------------------------------------------------------------------- +#ifdef _MSC_VER +// to avoid long name warnings +#pragma warning(disable:4786) +#endif + /** This file contains ***INSTANCIATED DEFINITIONS*** of operators fns * of the library for ***eoReal*** evolution inside EO. * It should be included in the file that calls any of the corresponding fns diff --git a/eo/src/es/make_op_real.cpp b/eo/src/es/make_op_real.cpp index 195a4445c..19435831f 100644 --- a/eo/src/es/make_op_real.cpp +++ b/eo/src/es/make_op_real.cpp @@ -24,6 +24,11 @@ */ //----------------------------------------------------------------------------- +#ifdef _MSC_VER +// to avoid long name warnings +#pragma warning(disable:4786) +#endif + /** This file contains ***INSTANCIATED DEFINITIONS*** of operators fns * of the library for ***eoReal*** evolution inside EO. * It should be included in the file that calls any of the corresponding fns diff --git a/eo/src/es/make_pop_es.cpp b/eo/src/es/make_pop_es.cpp index ca826e08d..4f77e2f58 100644 --- a/eo/src/es/make_pop_es.cpp +++ b/eo/src/es/make_pop_es.cpp @@ -24,6 +24,11 @@ */ //----------------------------------------------------------------------------- +#ifdef _MSC_VER +// to avoid long name warnings +#pragma warning(disable:4786) +#endif + /** This file contains ***INSTANCIATED DEFINITIONS*** of pop. init. fns * of the library for evolution of ***ES genotypes*** indis inside EO. * It should be included in the file that calls any of the corresponding fns diff --git a/eo/src/es/make_pop_real.cpp b/eo/src/es/make_pop_real.cpp index effb6245d..eaa75baab 100644 --- a/eo/src/es/make_pop_real.cpp +++ b/eo/src/es/make_pop_real.cpp @@ -24,6 +24,11 @@ */ //----------------------------------------------------------------------------- +#ifdef _MSC_VER +// to avoid long name warnings +#pragma warning(disable:4786) +#endif + /** This file contains ***INSTANCIATED DEFINITIONS*** of pop. init. fns * of the library for evolution of ***eoReal*** indis inside EO. * It should be included in the file that calls any of the corresponding fns diff --git a/eo/src/es/make_run_es.cpp b/eo/src/es/make_run_es.cpp index 6707fe459..77a45a086 100644 --- a/eo/src/es/make_run_es.cpp +++ b/eo/src/es/make_run_es.cpp @@ -24,6 +24,11 @@ */ //----------------------------------------------------------------------------- +#ifdef _MSC_VER +// to avoid long name warnings +#pragma warning(disable:4786) +#endif + /** This file contains ***INSTANCIATED DEFINITIONS*** of run funs * of the library for evolution of ***ES genotypes*** inside EO. * It should be included in the file that calls any of the corresponding fns diff --git a/eo/src/es/make_run_real.cpp b/eo/src/es/make_run_real.cpp index 42f50bb29..ee10fd2a3 100644 --- a/eo/src/es/make_run_real.cpp +++ b/eo/src/es/make_run_real.cpp @@ -24,6 +24,11 @@ */ //----------------------------------------------------------------------------- +#ifdef _MSC_VER +// to avoid long name warnings +#pragma warning(disable:4786) +#endif + /** This file contains ***INSTANCIATED DEFINITIONS*** of run funs * of the library for evolution of ***eoReal*** inside EO. * It should be included in the file that calls any of the corresponding fns diff --git a/eo/src/ga/make_algo_scalar_ga.cpp b/eo/src/ga/make_algo_scalar_ga.cpp index cb5bcca38..f2b6719c5 100644 --- a/eo/src/ga/make_algo_scalar_ga.cpp +++ b/eo/src/ga/make_algo_scalar_ga.cpp @@ -24,6 +24,11 @@ */ //----------------------------------------------------------------------------- +#ifdef _MSC_VER +// to avoid long name warnings +#pragma warning(disable:4786) +#endif + /** This file contains all ***INSTANCIATED DEFINITIONS*** of pop. init. * of the library for ***BISTRING*** evolution inside EO. * It should be included in the file that calls any of the corresponding fns diff --git a/eo/src/ga/make_checkpoint_ga.cpp b/eo/src/ga/make_checkpoint_ga.cpp index 6aaac47a8..f7da6d4a8 100644 --- a/eo/src/ga/make_checkpoint_ga.cpp +++ b/eo/src/ga/make_checkpoint_ga.cpp @@ -24,6 +24,11 @@ */ //----------------------------------------------------------------------------- +#ifdef _MSC_VER +// to avoid long name warnings +#pragma warning(disable:4786) +#endif + /** This file contains all ***INSTANCIATED DEFINITIONS*** of operators * of the library for ***BISTRING*** evolution inside EO. * It should be included in the file that calls any of the corresponding fns diff --git a/eo/src/ga/make_continue_ga.cpp b/eo/src/ga/make_continue_ga.cpp index def01ab3b..e2dbb35a8 100644 --- a/eo/src/ga/make_continue_ga.cpp +++ b/eo/src/ga/make_continue_ga.cpp @@ -24,6 +24,11 @@ */ //----------------------------------------------------------------------------- +#ifdef _MSC_VER +// to avoid long name warnings +#pragma warning(disable:4786) +#endif + /** This file contains all ***INSTANCIATED DEFINITIONS*** of operators * of the library for ***BISTRING*** evolution inside EO. * It should be included in the file that calls any of the corresponding fns diff --git a/eo/src/ga/make_genotype_ga.cpp b/eo/src/ga/make_genotype_ga.cpp index 52bd31a86..873093dce 100644 --- a/eo/src/ga/make_genotype_ga.cpp +++ b/eo/src/ga/make_genotype_ga.cpp @@ -24,6 +24,11 @@ */ //----------------------------------------------------------------------------- +#ifdef _MSC_VER +// to avoid long name warnings +#pragma warning(disable:4786) +#endif + /** This file contains all ***INSTANCIATED DEFINITIONS*** of operators * of the library for ***BISTRING*** evolution inside EO. * It should be included in the file that calls any of the corresponding fns diff --git a/eo/src/ga/make_op_ga.cpp b/eo/src/ga/make_op_ga.cpp index 9186f54ed..8bed5a66a 100644 --- a/eo/src/ga/make_op_ga.cpp +++ b/eo/src/ga/make_op_ga.cpp @@ -24,6 +24,11 @@ */ //----------------------------------------------------------------------------- +#ifdef _MSC_VER +// to avoid long name warnings +#pragma warning(disable:4786) +#endif + /** This file contains all ***INSTANCIATED DEFINITIONS*** of operators * of the library for ***BISTRING*** evolution inside EO. * It should be included in the file that calls any of the corresponding fns diff --git a/eo/src/ga/make_pop_ga.cpp b/eo/src/ga/make_pop_ga.cpp index 8bbd308d2..2ab0b5cde 100644 --- a/eo/src/ga/make_pop_ga.cpp +++ b/eo/src/ga/make_pop_ga.cpp @@ -24,6 +24,11 @@ */ //----------------------------------------------------------------------------- +#ifdef _MSC_VER +// to avoid long name warnings +#pragma warning(disable:4786) +#endif + /** This file contains all ***INSTANCIATED DEFINITIONS*** of population init * of the library for ***BISTRING*** evolution inside EO. * It should be included in the file that calls any of the corresponding fns diff --git a/eo/src/ga/make_run_ga.cpp b/eo/src/ga/make_run_ga.cpp index e3d78ea2e..afdab3d9a 100644 --- a/eo/src/ga/make_run_ga.cpp +++ b/eo/src/ga/make_run_ga.cpp @@ -24,6 +24,11 @@ */ //----------------------------------------------------------------------------- +#ifdef _MSC_VER +// to avoid long name warnings +#pragma warning(disable:4786) +#endif + /** This file contains all ***INSTANCIATED DEFINITIONS*** of operators * of the library for ***BISTRING*** evolution inside EO. * It should be included in the file that calls any of the corresponding fns diff --git a/eo/src/utils/eoFileMonitor.cpp b/eo/src/utils/eoFileMonitor.cpp index e8f57a6f8..edd542e5a 100644 --- a/eo/src/utils/eoFileMonitor.cpp +++ b/eo/src/utils/eoFileMonitor.cpp @@ -1,3 +1,8 @@ +#ifdef _MSC_VER +// to avoid long name warnings +#pragma warning(disable:4786) +#endif + #include #include #include diff --git a/eo/src/utils/eoRNG.cpp b/eo/src/utils/eoRNG.cpp index 62f364b0d..ad347c6cc 100644 --- a/eo/src/utils/eoRNG.cpp +++ b/eo/src/utils/eoRNG.cpp @@ -1,3 +1,8 @@ +#ifdef _MSC_VER +// to avoid long name warnings +#pragma warning(disable:4786) +#endif + #include #include "eoRNG.h" diff --git a/eo/src/utils/eoRealBounds.cpp b/eo/src/utils/eoRealBounds.cpp index 5734c6f54..3f1632a0a 100644 --- a/eo/src/utils/eoRealBounds.cpp +++ b/eo/src/utils/eoRealBounds.cpp @@ -1,3 +1,8 @@ +#ifdef _MSC_VER +// to avoid long name warnings +#pragma warning(disable:4786) +#endif + #include #include #include "eoRealBounds.h" diff --git a/eo/src/utils/eoStdoutMonitor.cpp b/eo/src/utils/eoStdoutMonitor.cpp index 8fc6dc606..8120f516b 100644 --- a/eo/src/utils/eoStdoutMonitor.cpp +++ b/eo/src/utils/eoStdoutMonitor.cpp @@ -1,3 +1,8 @@ +#ifdef _MSC_VER +// to avoid long name warnings +#pragma warning(disable:4786) +#endif + #include #include #include diff --git a/eo/src/utils/make_help.cpp b/eo/src/utils/make_help.cpp index 32e4a735b..d6cd9eab8 100644 --- a/eo/src/utils/make_help.cpp +++ b/eo/src/utils/make_help.cpp @@ -23,6 +23,11 @@ mkeijzer@dhi.dk */ //----------------------------------------------------------------------------- +#ifdef _MSC_VER +// to avoid long name warnings +#pragma warning(disable:4786) +#endif + #include #include #include