Commit c338ad57 authored by Guillaume Lazzara's avatar Guillaume Lazzara
Browse files

Handle more global vars with MLN_WO_GLOBAL_VARS

	* mln/canvas/browsing/depth_first_search.hh,
	* mln/debug/filename.hh,
	* mln/debug/quiet.hh,
	* mln/labeling/colorize.hh,
	* mln/math/pi.hh: Add missing MLN_WO_GLOBAL_VARS guards.
parent 4a288470
2010-12-10 Guillaume Lazzara <z@lrde.epita.fr>
Handle more global vars with MLN_WO_GLOBAL_VARS
* mln/canvas/browsing/depth_first_search.hh,
* mln/debug/filename.hh,
* mln/debug/quiet.hh,
* mln/labeling/colorize.hh,
* mln/math/pi.hh: Add missing MLN_WO_GLOBAL_VARS guards.
2010-11-25 Guillaume Lazzara <z@lrde.epita.fr>
 
* mln/io/magick/save.hh: Fix a crash when using GraphicsMagick
// Copyright (C) 2008, 2009 EPITA Research and Development Laboratory (LRDE)
// Copyright (C) 2008, 2009, 2010 EPITA Research and Development
// Laboratory (LRDE)
//
// This file is part of Olena.
//
......@@ -86,8 +87,12 @@ namespace mln
# ifndef MLN_INCLUDE_ONLY
# ifndef MLN_WO_GLOBAL_VARS
const depth_first_search_t depth_first_search;
# endif // ! MLN_WO_GLOBAL_VARS
# endif // ! MLN_INCLUDE_ONLY
} // end of namespace mln::canvas::browsing
......
// Copyright (C) 2009 EPITA Research and Development Laboratory (LRDE)
// Copyright (C) 2009, 2010 EPITA Research and Development Laboratory
// (LRDE)
//
// This file is part of Olena.
//
......@@ -58,8 +59,18 @@ namespace mln
filename(const std::string& filename, int id);
namespace internal
{
extern std::string filename_prefix;
} // end of namespace mln::debug::internal
# ifndef MLN_INCLUDE_ONLY
# ifndef MLN_WO_GLOBAL_VARS
namespace internal
{
......@@ -67,6 +78,8 @@ namespace mln
} // end of namespace mln::debug::internal
# endif // ! MLN_WO_GLOBAL_VARS
inline
std::string
......
// Copyright (C) 2009 EPITA Research and Development Laboratory (LRDE)
// Copyright (C) 2009, 2010 EPITA Research and Development Laboratory
// (LRDE)
//
// This file is part of Olena.
//
......@@ -43,8 +44,12 @@ namespace mln
# ifndef MLN_INCLUDE_ONLY
# ifndef MLN_WO_GLOBAL_VARS
bool quiet = false;
# endif // ! MLN_WO_GLOBAL_VARS
# endif // ! MLN_INCLUDE_ONLY
......
......@@ -94,16 +94,20 @@ namespace mln
# ifndef MLN_INCLUDE_ONLY
# ifndef MLN_WO_GLOBAL_VARS
namespace colorize_
{
unsigned min_value = 20;
unsigned max_value = 220;
}
# endif // ! MLN_WO_GLOBAL_VARS
namespace internal
{
inline
unsigned random_number()
{
unsigned last = colorize_::min_value + (colorize_::max_value - colorize_::min_value + 1) * rand();
......
// Copyright (C) 2009 EPITA Research and Development Laboratory (LRDE)
// Copyright (C) 2009, 2010 EPITA Research and Development Laboratory
// (LRDE)
//
// This file is part of Olena.
//
......@@ -36,8 +37,12 @@ namespace mln
# ifndef MLN_INCLUDE_ONLY
# ifndef MLN_WO_GLOBAL_VARS
const double pi = 3.1415926535897932385;
# endif // ! MLN_WO_GLOBAL_VARS
# endif // ! MLN_INCLUDE_ONLY
} // end of namespace mln::math
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment