summaryrefslogtreecommitdiffstats
path: root/Source/CursesDialog
diff options
context:
space:
mode:
authorAlex Turbov <i.zaufi@gmail.com>2022-08-23 16:31:35 (GMT)
committerAlex Turbov <i.zaufi@gmail.com>2022-11-17 12:37:11 (GMT)
commit96dcfa6b446e5e94143b2d83c587d09b0d00031f (patch)
treed2a6108e742711cc4334b6e1f43145b3e6e03abb /Source/CursesDialog
parent8e2a03c07833f8715a498ee11d32f3345985c163 (diff)
downloadCMake-96dcfa6b446e5e94143b2d83c587d09b0d00031f.zip
CMake-96dcfa6b446e5e94143b2d83c587d09b0d00031f.tar.gz
CMake-96dcfa6b446e5e94143b2d83c587d09b0d00031f.tar.bz2
ccmake.cxx: Use anonymous namespace instead of `static`
Diffstat (limited to 'Source/CursesDialog')
-rw-r--r--Source/CursesDialog/ccmake.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/Source/CursesDialog/ccmake.cxx b/Source/CursesDialog/ccmake.cxx
index 70ed648..2986265 100644
--- a/Source/CursesDialog/ccmake.cxx
+++ b/Source/CursesDialog/ccmake.cxx
@@ -23,12 +23,13 @@
#include "cmSystemTools.h"
#include "cmake.h"
-static const char* cmDocumentationName[][2] = {
+namespace {
+const char* cmDocumentationName[][2] = {
{ nullptr, " ccmake - Curses Interface for CMake." },
{ nullptr, nullptr }
};
-static const char* cmDocumentationUsage[][2] = {
+const char* cmDocumentationUsage[][2] = {
{ nullptr,
" ccmake <path-to-source>\n"
" ccmake <path-to-existing-build>" },
@@ -39,22 +40,18 @@ static const char* cmDocumentationUsage[][2] = {
{ nullptr, nullptr }
};
-static const char* cmDocumentationUsageNote[][2] = {
+const char* cmDocumentationUsageNote[][2] = {
{ nullptr, "Run 'ccmake --help' for more information." },
{ nullptr, nullptr }
};
-static const char* cmDocumentationOptions[][2] = {
- CMAKE_STANDARD_OPTIONS_TABLE,
- { nullptr, nullptr }
-};
-
-cmCursesForm* cmCursesForm::CurrentForm = nullptr;
+const char* cmDocumentationOptions[][2] = { CMAKE_STANDARD_OPTIONS_TABLE,
+ { nullptr, nullptr } };
#ifndef _WIN32
extern "C" {
-static void onsig(int /*unused*/)
+void onsig(int /*unused*/)
{
if (cmCursesForm::CurrentForm) {
cmCursesForm::CurrentForm->HandleResize();
@@ -63,6 +60,9 @@ static void onsig(int /*unused*/)
}
}
#endif // _WIN32
+} // anonymous namespace
+
+cmCursesForm* cmCursesForm::CurrentForm = nullptr;
int main(int argc, char const* const* argv)
{