From 313b592639aa6aaa342ca34b9b6a8a77a299621a Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Wed, 9 Apr 2014 16:51:51 -0700 Subject: Add all the missing copyright headers --- src/strings/all.hpp | 2 ++ src/strings/astring.hpp | 2 ++ src/strings/base.hpp | 4 +++- src/strings/base_test.cpp | 20 ++++++++++++++++++++ src/strings/mstring.hpp | 2 ++ src/strings/rstring.hpp | 2 ++ src/strings/sstring.hpp | 2 ++ src/strings/strings2_test.cpp | 21 +++++++++++++++++++++ src/strings/strings_test.cpp | 20 ++++++++++++++++++++ src/strings/tstring.hpp | 2 ++ src/strings/vstring.hpp | 2 ++ src/strings/xstring.hpp | 2 ++ src/strings/zstring.hpp | 2 ++ 13 files changed, 82 insertions(+), 1 deletion(-) (limited to 'src/strings') diff --git a/src/strings/all.hpp b/src/strings/all.hpp index 46d5366..26079ed 100644 --- a/src/strings/all.hpp +++ b/src/strings/all.hpp @@ -19,6 +19,8 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . +# include "../sanity.hpp" + # include "base.hpp" # include "mstring.hpp" # include "rstring.hpp" diff --git a/src/strings/astring.hpp b/src/strings/astring.hpp index e682ef0..aab14cf 100644 --- a/src/strings/astring.hpp +++ b/src/strings/astring.hpp @@ -19,6 +19,8 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . +# include "../sanity.hpp" + # include # include diff --git a/src/strings/base.hpp b/src/strings/base.hpp index c5181da..ee7480b 100644 --- a/src/strings/base.hpp +++ b/src/strings/base.hpp @@ -1,6 +1,6 @@ #ifndef TMWA_STRINGS_BASE_HPP #define TMWA_STRINGS_BASE_HPP -// strings/base.cls.hpp - CRTP base for string implementations. +// strings/base.hpp - CRTP base for string implementations. // // Copyright © 2013 Ben Longbons // @@ -19,6 +19,8 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . +# include "../sanity.hpp" + # include "fwd.hpp" # include "pair.hpp" diff --git a/src/strings/base_test.cpp b/src/strings/base_test.cpp index 3f9900e..52c44dc 100644 --- a/src/strings/base_test.cpp +++ b/src/strings/base_test.cpp @@ -1,4 +1,22 @@ #include "base.hpp" +// strings/base_test.cpp - Testsuite for CRTP base for string implementations. +// +// Copyright © 2013 Ben Longbons +// +// This file is part of The Mana World (Athena server) +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . #include @@ -6,6 +24,8 @@ #include "xstring.hpp" #include "rstring.hpp" +#include "../poison.hpp" + using namespace strings; struct _test : VString<1> {}; diff --git a/src/strings/mstring.hpp b/src/strings/mstring.hpp index 6f257ed..8225d9e 100644 --- a/src/strings/mstring.hpp +++ b/src/strings/mstring.hpp @@ -19,6 +19,8 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . +# include "../sanity.hpp" + # include # include "base.hpp" diff --git a/src/strings/rstring.hpp b/src/strings/rstring.hpp index b79c7f6..7cb19d6 100644 --- a/src/strings/rstring.hpp +++ b/src/strings/rstring.hpp @@ -19,6 +19,8 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . +# include "../sanity.hpp" + # include # include diff --git a/src/strings/sstring.hpp b/src/strings/sstring.hpp index 1836d69..7166e94 100644 --- a/src/strings/sstring.hpp +++ b/src/strings/sstring.hpp @@ -19,6 +19,8 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . +# include "../sanity.hpp" + # include "base.hpp" # include "rstring.hpp" diff --git a/src/strings/strings2_test.cpp b/src/strings/strings2_test.cpp index 24bfc0c..e5d5281 100644 --- a/src/strings/strings2_test.cpp +++ b/src/strings/strings2_test.cpp @@ -1,7 +1,28 @@ #include "all.hpp" +// strings2_test.cpp - Testsuite part 2 for strings. +// +// Copyright © 2013 Ben Longbons +// +// This file is part of The Mana World (Athena server) +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + #include +#include "../poison.hpp" + TEST(StringTests, traits2) { ZString print_non = "\t\e"; diff --git a/src/strings/strings_test.cpp b/src/strings/strings_test.cpp index 55a2ffa..dca463d 100644 --- a/src/strings/strings_test.cpp +++ b/src/strings/strings_test.cpp @@ -1,9 +1,29 @@ #include "all.hpp" +// strings_test.cpp - Testsuite part 1 for strings. +// +// Copyright © 2013 Ben Longbons +// +// This file is part of The Mana World (Athena server) +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . #include #include +#include "../poison.hpp" + template class StringTest : public ::testing::Test { diff --git a/src/strings/tstring.hpp b/src/strings/tstring.hpp index 700ec3d..7003d37 100644 --- a/src/strings/tstring.hpp +++ b/src/strings/tstring.hpp @@ -19,6 +19,8 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . +# include "../sanity.hpp" + # include "base.hpp" # include "rstring.hpp" diff --git a/src/strings/vstring.hpp b/src/strings/vstring.hpp index c467b64..9952ff9 100644 --- a/src/strings/vstring.hpp +++ b/src/strings/vstring.hpp @@ -19,6 +19,8 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . +# include "../sanity.hpp" + # include "base.hpp" namespace strings diff --git a/src/strings/xstring.hpp b/src/strings/xstring.hpp index 2766810..8f6eac5 100644 --- a/src/strings/xstring.hpp +++ b/src/strings/xstring.hpp @@ -19,6 +19,8 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . +# include "../sanity.hpp" + # include "base.hpp" namespace strings diff --git a/src/strings/zstring.hpp b/src/strings/zstring.hpp index 96aadc0..717da88 100644 --- a/src/strings/zstring.hpp +++ b/src/strings/zstring.hpp @@ -19,6 +19,8 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . +# include "../sanity.hpp" + # include # include "base.hpp" -- cgit v1.2.3-70-g09d2