From ad21d2cb2fb8db9b88f910319034010c32c26aaa Mon Sep 17 00:00:00 2001 From: John Maddock Date: Wed, 29 Sep 2004 10:22:04 +0000 Subject: [PATCH] Stamped on more C++ style comments in C compatible code. [SVN r25472] --- include/boost/cregex.hpp | 2 +- include/boost/regex.h | 12 ++++++------ include/boost/regex/config.hpp | 22 +++++++++++----------- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/include/boost/cregex.hpp b/include/boost/cregex.hpp index b591115e..661a5ca2 100644 --- a/include/boost/cregex.hpp +++ b/include/boost/cregex.hpp @@ -30,7 +30,7 @@ #include #endif -#endif // include guard +#endif /* include guard */ diff --git a/include/boost/regex.h b/include/boost/regex.h index fabf0804..52af275c 100644 --- a/include/boost/regex.h +++ b/include/boost/regex.h @@ -21,10 +21,10 @@ #include -// -// add using declarations to bring POSIX API functions into -// global scope, only if this is C++ (and not C). -// +/* +* add using declarations to bring POSIX API functions into +* global scope, only if this is C++ (and not C). +*/ #ifdef __cplusplus using boost::regoff_t; @@ -91,9 +91,9 @@ using boost::REG_E_MEMORY; using boost::REG_E_UNKNOWN; using boost::reg_errcode_t; -#endif // __cplusplus +#endif /* __cplusplus */ -#endif // BOOST_RE_REGEX_H +#endif /* BOOST_RE_REGEX_H */ diff --git a/include/boost/regex/config.hpp b/include/boost/regex/config.hpp index 7bbe3214..838a3919 100644 --- a/include/boost/regex/config.hpp +++ b/include/boost/regex/config.hpp @@ -267,7 +267,7 @@ namespace boost{ typedef wchar_t regex_wchar_type; } * ****************************************************************************/ -// backwards compatibility: +/* backwards compatibility: */ #ifdef BOOST_RE_LOCALE_C # define BOOST_REGEX_USE_C_LOCALE #endif @@ -276,11 +276,11 @@ namespace boost{ typedef wchar_t regex_wchar_type; } # define BOOST_REGEX_USE_CPP_LOCALE #endif -// Win32 defaults to native Win32 locale: +/* Win32 defaults to native Win32 locale: */ #if defined(_WIN32) && !defined(BOOST_REGEX_USE_WIN32_LOCALE) && !defined(BOOST_REGEX_USE_C_LOCALE) && !defined(BOOST_REGEX_USE_CPP_LOCALE) && !defined(BOOST_REGEX_NO_W32) # define BOOST_REGEX_USE_WIN32_LOCALE #endif -// otherwise use C locale: +/* otherwise use C locale: */ #if !defined(BOOST_REGEX_USE_WIN32_LOCALE) && !defined(BOOST_REGEX_USE_C_LOCALE) && !defined(BOOST_REGEX_USE_CPP_LOCALE) # define BOOST_REGEX_USE_C_LOCALE #endif @@ -311,10 +311,10 @@ namespace boost{ typedef wchar_t regex_wchar_type; } ****************************************************************************/ #ifdef BOOST_NO_EXCEPTIONS -// -// If there are no exceptions then we must report critical-errors -// the only way we know how; by terminating. -// +/* +* If there are no exceptions then we must report critical-errors +* the only way we know how; by terminating. +*/ # define BOOST_REGEX_NOEH_ASSERT(x)\ if(0 == (x))\ {\ @@ -324,10 +324,10 @@ if(0 == (x))\ boost::throw_exception(e);\ } #else -// -// With exceptions then error handling is taken care of and -// there is no need for these checks: -// +/* +* With exceptions then error handling is taken care of and +* there is no need for these checks: +*/ # define BOOST_REGEX_NOEH_ASSERT(x) #endif