From 062dd0e24c283f210216ede06bbde0ed72c7ed25 Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 13 May 2010 10:14:29 +0000 Subject: (svn r19814) -Codechange: give some more unnamed enums a name, in case they consisted of unrelated values use static const (u)int --- src/signal.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/signal.cpp') diff --git a/src/signal.cpp b/src/signal.cpp index cdcde264e..9daefff8d 100644 --- a/src/signal.cpp +++ b/src/signal.cpp @@ -20,12 +20,10 @@ /** these are the maximums used for updating signal blocks */ -enum { - SIG_TBU_SIZE = 64, ///< number of signals entering to block - SIG_TBD_SIZE = 256, ///< number of intersections - open nodes in current block - SIG_GLOB_SIZE = 128, ///< number of open blocks (block can be opened more times until detected) - SIG_GLOB_UPDATE = 64, ///< how many items need to be in _globset to force update -}; +static const uint SIG_TBU_SIZE = 64; ///< number of signals entering to block +static const uint SIG_TBD_SIZE = 256; ///< number of intersections - open nodes in current block +static const uint SIG_GLOB_SIZE = 128; ///< number of open blocks (block can be opened more times until detected) +static const uint SIG_GLOB_UPDATE = 64; ///< how many items need to be in _globset to force update assert_compile(SIG_GLOB_UPDATE <= SIG_GLOB_SIZE); -- cgit v1.2.3-54-g00ecf