aboutsummaryrefslogtreecommitdiff
path: root/build2/test/script
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-05-01 18:24:31 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-05-01 19:30:26 +0300
commit70317569c6dcd9809ed4a8c425777e653ec6ca08 (patch)
tree07a538b296933e9e2a1f81088f8fcc8da3f749ad /build2/test/script
parentcbec9ea8841c8a58b2d50bb628b28aea7a6fe179 (diff)
Add hxx extension for headers
Diffstat (limited to 'build2/test/script')
-rw-r--r--build2/test/script/builtin.cxx12
-rw-r--r--build2/test/script/builtin.hxx (renamed from build2/test/script/builtin)12
-rw-r--r--build2/test/script/lexer.cxx2
-rw-r--r--build2/test/script/lexer.hxx (renamed from build2/test/script/lexer)16
-rw-r--r--build2/test/script/parser.cxx8
-rw-r--r--build2/test/script/parser.hxx (renamed from build2/test/script/parser)20
-rw-r--r--build2/test/script/regex.cxx2
-rw-r--r--build2/test/script/regex.hxx (renamed from build2/test/script/regex)12
-rw-r--r--build2/test/script/runner.cxx18
-rw-r--r--build2/test/script/runner.hxx (renamed from build2/test/script/runner)16
-rw-r--r--build2/test/script/script.cxx6
-rw-r--r--build2/test/script/script.hxx (renamed from build2/test/script/script)18
-rw-r--r--build2/test/script/token.cxx2
-rw-r--r--build2/test/script/token.hxx (renamed from build2/test/script/token)14
14 files changed, 79 insertions, 79 deletions
diff --git a/build2/test/script/builtin.cxx b/build2/test/script/builtin.cxx
index a2f3107..d45b200 100644
--- a/build2/test/script/builtin.cxx
+++ b/build2/test/script/builtin.cxx
@@ -2,7 +2,7 @@
// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
// license : MIT; see accompanying LICENSE file
-#include <build2/test/script/builtin>
+#include <build2/test/script/builtin.hxx>
#ifndef _WIN32
# include <utime.h>
@@ -14,13 +14,13 @@
#include <ostream>
#include <sstream>
-#include <butl/path-io> // use default operator<< implementation
-#include <butl/fdstream> // fdopen_mode, fdstream_mode
-#include <butl/filesystem> // mkdir_status
+#include <libbutl/path-io.hxx> // use default operator<< implementation
+#include <libbutl/fdstream.hxx> // fdopen_mode, fdstream_mode
+#include <libbutl/filesystem.hxx> // mkdir_status
-#include <build2/regex>
+#include <build2/regex.hxx>
-#include <build2/test/script/script>
+#include <build2/test/script/script.hxx>
// Strictly speaking a builtin which reads/writes from/to standard streams
// must be asynchronous so that the caller can communicate with it through
diff --git a/build2/test/script/builtin b/build2/test/script/builtin.hxx
index 7d902ea..ae0681f 100644
--- a/build2/test/script/builtin
+++ b/build2/test/script/builtin.hxx
@@ -1,14 +1,14 @@
-// file : build2/test/script/builtin -*- C++ -*-
+// file : build2/test/script/builtin.hxx -*- C++ -*-
// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
// license : MIT; see accompanying LICENSE file
-#ifndef BUILD2_TEST_SCRIPT_BUILTIN
-#define BUILD2_TEST_SCRIPT_BUILTIN
+#ifndef BUILD2_TEST_SCRIPT_BUILTIN_HXX
+#define BUILD2_TEST_SCRIPT_BUILTIN_HXX
#include <map>
-#include <build2/types>
-#include <build2/utility>
+#include <build2/types.hxx>
+#include <build2/utility.hxx>
namespace build2
{
@@ -72,4 +72,4 @@ namespace build2
}
}
-#endif // BUILD2_TEST_SCRIPT_BUILTIN
+#endif // BUILD2_TEST_SCRIPT_BUILTIN_HXX
diff --git a/build2/test/script/lexer.cxx b/build2/test/script/lexer.cxx
index fab5cc2..4d139ce 100644
--- a/build2/test/script/lexer.cxx
+++ b/build2/test/script/lexer.cxx
@@ -2,7 +2,7 @@
// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
// license : MIT; see accompanying LICENSE file
-#include <build2/test/script/lexer>
+#include <build2/test/script/lexer.hxx>
#include <cstring> // strchr()
diff --git a/build2/test/script/lexer b/build2/test/script/lexer.hxx
index 4851e13..a262764 100644
--- a/build2/test/script/lexer
+++ b/build2/test/script/lexer.hxx
@@ -1,16 +1,16 @@
-// file : build2/test/script/lexer -*- C++ -*-
+// file : build2/test/script/lexer.hxx -*- C++ -*-
// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
// license : MIT; see accompanying LICENSE file
-#ifndef BUILD2_TEST_SCRIPT_LEXER
-#define BUILD2_TEST_SCRIPT_LEXER
+#ifndef BUILD2_TEST_SCRIPT_LEXER_HXX
+#define BUILD2_TEST_SCRIPT_LEXER_HXX
-#include <build2/types>
-#include <build2/utility>
+#include <build2/types.hxx>
+#include <build2/utility.hxx>
-#include <build2/lexer>
+#include <build2/lexer.hxx>
-#include <build2/test/script/token>
+#include <build2/test/script/token.hxx>
namespace build2
{
@@ -87,4 +87,4 @@ namespace build2
}
}
-#endif // BUILD2_TEST_SCRIPT_LEXER
+#endif // BUILD2_TEST_SCRIPT_LEXER_HXX
diff --git a/build2/test/script/parser.cxx b/build2/test/script/parser.cxx
index 350ca44..ae6bdbc 100644
--- a/build2/test/script/parser.cxx
+++ b/build2/test/script/parser.cxx
@@ -2,14 +2,14 @@
// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
// license : MIT; see accompanying LICENSE file
-#include <build2/test/script/parser>
+#include <build2/test/script/parser.hxx>
#include <sstream>
-#include <build2/context> // sched, keep_going
+#include <build2/context.hxx> // sched, keep_going
-#include <build2/test/script/lexer>
-#include <build2/test/script/runner>
+#include <build2/test/script/lexer.hxx>
+#include <build2/test/script/runner.hxx>
using namespace std;
diff --git a/build2/test/script/parser b/build2/test/script/parser.hxx
index e018548..21ea61a 100644
--- a/build2/test/script/parser
+++ b/build2/test/script/parser.hxx
@@ -1,18 +1,18 @@
-// file : build2/test/script/parser -*- C++ -*-
+// file : build2/test/script/parser.hxx -*- C++ -*-
// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
// license : MIT; see accompanying LICENSE file
-#ifndef BUILD2_TEST_SCRIPT_PARSER
-#define BUILD2_TEST_SCRIPT_PARSER
+#ifndef BUILD2_TEST_SCRIPT_PARSER_HXX
+#define BUILD2_TEST_SCRIPT_PARSER_HXX
-#include <build2/types>
-#include <build2/utility>
+#include <build2/types.hxx>
+#include <build2/utility.hxx>
-#include <build2/parser>
-#include <build2/diagnostics>
+#include <build2/parser.hxx>
+#include <build2/diagnostics.hxx>
-#include <build2/test/script/token>
-#include <build2/test/script/script>
+#include <build2/test/script/token.hxx>
+#include <build2/test/script/script.hxx>
namespace build2
{
@@ -242,4 +242,4 @@ namespace build2
}
}
-#endif // BUILD2_TEST_SCRIPT_PARSER
+#endif // BUILD2_TEST_SCRIPT_PARSER_HXX
diff --git a/build2/test/script/regex.cxx b/build2/test/script/regex.cxx
index b77f8a5..bf38a62 100644
--- a/build2/test/script/regex.cxx
+++ b/build2/test/script/regex.cxx
@@ -2,7 +2,7 @@
// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
// license : MIT; see accompanying LICENSE file
-#include <build2/test/script/regex>
+#include <build2/test/script/regex.hxx>
#include <algorithm> // copy(), copy_backward()
diff --git a/build2/test/script/regex b/build2/test/script/regex.hxx
index 1170b99..d4f1cf5 100644
--- a/build2/test/script/regex
+++ b/build2/test/script/regex.hxx
@@ -1,9 +1,9 @@
-// file : build2/test/script/regex -*- C++ -*-
+// file : build2/test/script/regex.hxx -*- C++ -*-
// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
// license : MIT; see accompanying LICENSE file
-#ifndef BUILD2_TEST_SCRIPT_REGEX
-#define BUILD2_TEST_SCRIPT_REGEX
+#ifndef BUILD2_TEST_SCRIPT_REGEX_HXX
+#define BUILD2_TEST_SCRIPT_REGEX_HXX
#include <list>
#include <regex>
@@ -13,8 +13,8 @@
#include <type_traits> // make_unsigned, enable_if, is_*
#include <unordered_set>
-#include <build2/types>
-#include <build2/utility>
+#include <build2/types.hxx>
+#include <build2/utility.hxx>
namespace build2
{
@@ -681,4 +681,4 @@ namespace build2
#include <build2/test/script/regex.ixx>
-#endif // BUILD2_TEST_SCRIPT_REGEX
+#endif // BUILD2_TEST_SCRIPT_REGEX_HXX
diff --git a/build2/test/script/runner.cxx b/build2/test/script/runner.cxx
index 105039a..ce32150 100644
--- a/build2/test/script/runner.cxx
+++ b/build2/test/script/runner.cxx
@@ -2,22 +2,22 @@
// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
// license : MIT; see accompanying LICENSE file
-#include <build2/test/script/runner>
+#include <build2/test/script/runner.hxx>
#include <set>
#include <ios> // streamsize
-#include <butl/fdstream> // fdopen_mode, fdnull(), fddup()
+#include <libbutl/fdstream.hxx> // fdopen_mode, fdnull(), fddup()
-#include <build2/regex>
-#include <build2/variable>
-#include <build2/filesystem>
+#include <build2/regex.hxx>
+#include <build2/variable.hxx>
+#include <build2/filesystem.hxx>
-#include <build2/test/common>
+#include <build2/test/common.hxx>
-#include <build2/test/script/regex>
-#include <build2/test/script/parser>
-#include <build2/test/script/builtin>
+#include <build2/test/script/regex.hxx>
+#include <build2/test/script/parser.hxx>
+#include <build2/test/script/builtin.hxx>
using namespace std;
using namespace butl;
diff --git a/build2/test/script/runner b/build2/test/script/runner.hxx
index 566b9de..7833692 100644
--- a/build2/test/script/runner
+++ b/build2/test/script/runner.hxx
@@ -1,16 +1,16 @@
-// file : build2/test/script/runner -*- C++ -*-
+// file : build2/test/script/runner.hxx -*- C++ -*-
// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
// license : MIT; see accompanying LICENSE file
-#ifndef BUILD2_TEST_SCRIPT_RUNNER
-#define BUILD2_TEST_SCRIPT_RUNNER
+#ifndef BUILD2_TEST_SCRIPT_RUNNER_HXX
+#define BUILD2_TEST_SCRIPT_RUNNER_HXX
-#include <build2/types>
-#include <build2/utility>
+#include <build2/types.hxx>
+#include <build2/utility.hxx>
-#include <build2/diagnostics> // location
+#include <build2/diagnostics.hxx> // location
-#include <build2/test/script/script>
+#include <build2/test/script/script.hxx>
namespace build2
{
@@ -87,4 +87,4 @@ namespace build2
}
}
-#endif // BUILD2_TEST_SCRIPT_RUNNER
+#endif // BUILD2_TEST_SCRIPT_RUNNER_HXX
diff --git a/build2/test/script/script.cxx b/build2/test/script/script.cxx
index d4945fe..25f72af 100644
--- a/build2/test/script/script.cxx
+++ b/build2/test/script/script.cxx
@@ -2,13 +2,13 @@
// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
// license : MIT; see accompanying LICENSE file
-#include <build2/test/script/script>
+#include <build2/test/script/script.hxx>
#include <sstream>
#include <algorithm> // find()
-#include <build2/target>
-#include <build2/algorithm>
+#include <build2/target.hxx>
+#include <build2/algorithm.hxx>
using namespace std;
diff --git a/build2/test/script/script b/build2/test/script/script.hxx
index 9a54c71..4f6fdab 100644
--- a/build2/test/script/script
+++ b/build2/test/script/script.hxx
@@ -1,20 +1,20 @@
-// file : build2/test/script/script -*- C++ -*-
+// file : build2/test/script/script.hxx -*- C++ -*-
// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
// license : MIT; see accompanying LICENSE file
-#ifndef BUILD2_TEST_SCRIPT_SCRIPT
-#define BUILD2_TEST_SCRIPT_SCRIPT
+#ifndef BUILD2_TEST_SCRIPT_SCRIPT_HXX
+#define BUILD2_TEST_SCRIPT_SCRIPT_HXX
#include <set>
-#include <build2/types>
-#include <build2/utility>
+#include <build2/types.hxx>
+#include <build2/utility.hxx>
-#include <build2/variable>
+#include <build2/variable.hxx>
-#include <build2/test/target>
+#include <build2/test/target.hxx>
-#include <build2/test/script/token> // replay_tokens
+#include <build2/test/script/token.hxx> // replay_tokens
namespace build2
{
@@ -549,4 +549,4 @@ namespace build2
#include <build2/test/script/script.ixx>
-#endif // BUILD2_TEST_SCRIPT_SCRIPT
+#endif // BUILD2_TEST_SCRIPT_SCRIPT_HXX
diff --git a/build2/test/script/token.cxx b/build2/test/script/token.cxx
index 3d3dc8e..42428c6 100644
--- a/build2/test/script/token.cxx
+++ b/build2/test/script/token.cxx
@@ -2,7 +2,7 @@
// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
// license : MIT; see accompanying LICENSE file
-#include <build2/test/script/token>
+#include <build2/test/script/token.hxx>
using namespace std;
diff --git a/build2/test/script/token b/build2/test/script/token.hxx
index 9d3e330..0e8a577 100644
--- a/build2/test/script/token
+++ b/build2/test/script/token.hxx
@@ -1,14 +1,14 @@
-// file : build2/test/script/token -*- C++ -*-
+// file : build2/test/script/token.hxx -*- C++ -*-
// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
// license : MIT; see accompanying LICENSE file
-#ifndef BUILD2_TEST_SCRIPT_TOKEN
-#define BUILD2_TEST_SCRIPT_TOKEN
+#ifndef BUILD2_TEST_SCRIPT_TOKEN_HXX
+#define BUILD2_TEST_SCRIPT_TOKEN_HXX
-#include <build2/types>
-#include <build2/utility>
+#include <build2/types.hxx>
+#include <build2/utility.hxx>
-#include <build2/token>
+#include <build2/token.hxx>
namespace build2
{
@@ -62,4 +62,4 @@ namespace build2
}
}
-#endif // BUILD2_TEST_SCRIPT_TOKEN
+#endif // BUILD2_TEST_SCRIPT_TOKEN_HXX