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/generic/db.cpp | 18 ++++++++++++++++++ src/generic/enum.cpp | 18 ++++++++++++++++++ src/generic/enum.hpp | 18 ++++++++++++++++++ src/generic/intern-pool.cpp | 18 ++++++++++++++++++ src/generic/intern-pool.hpp | 20 ++++++++++++++++++++ src/generic/intern-pool_test.cpp | 20 ++++++++++++++++++++ src/generic/matrix.cpp | 18 ++++++++++++++++++ src/generic/matrix.hpp | 18 ++++++++++++++++++ src/generic/md5.cpp | 18 ++++++++++++++++++ src/generic/md5.hpp | 18 ++++++++++++++++++ src/generic/md5_test.cpp | 20 ++++++++++++++++++++ src/generic/operators.cpp | 18 ++++++++++++++++++ src/generic/operators.hpp | 20 ++++++++++++++++++++ src/generic/random.cpp | 18 ++++++++++++++++++ src/generic/random.hpp | 20 ++++++++++++++++++++ src/generic/random.t.hpp | 20 ++++++++++++++++++++ src/generic/random2.hpp | 20 ++++++++++++++++++++ 17 files changed, 320 insertions(+) (limited to 'src/generic') diff --git a/src/generic/db.cpp b/src/generic/db.cpp index cc58ad8..b953ff0 100644 --- a/src/generic/db.cpp +++ b/src/generic/db.cpp @@ -1,3 +1,21 @@ #include "db.hpp" +// db.cpp - convenience wrappers over std::map +// +// 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 "../poison.hpp" diff --git a/src/generic/enum.cpp b/src/generic/enum.cpp index c5ab250..8c54aba 100644 --- a/src/generic/enum.cpp +++ b/src/generic/enum.cpp @@ -1,3 +1,21 @@ #include "enum.hpp" +// enum.cpp - Safe building blocks for enumerated types. +// +// Copyright © 2014 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 "../poison.hpp" diff --git a/src/generic/enum.hpp b/src/generic/enum.hpp index 29e5c36..8b3509f 100644 --- a/src/generic/enum.hpp +++ b/src/generic/enum.hpp @@ -1,5 +1,23 @@ #ifndef TMWA_GENERIC_ENUM_HPP #define TMWA_GENERIC_ENUM_HPP +// enum.hpp - Safe building blocks for enumerated types. +// +// Copyright © 2012-2014 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 "../sanity.hpp" diff --git a/src/generic/intern-pool.cpp b/src/generic/intern-pool.cpp index 33649f2..f6df5a6 100644 --- a/src/generic/intern-pool.cpp +++ b/src/generic/intern-pool.cpp @@ -1,3 +1,21 @@ #include "intern-pool.hpp" +// intern-pool.cpp - Cached integer/string lookups. +// +// Copyright © 2014 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 "../poison.hpp" diff --git a/src/generic/intern-pool.hpp b/src/generic/intern-pool.hpp index f9c1e8f..0ffddd2 100644 --- a/src/generic/intern-pool.hpp +++ b/src/generic/intern-pool.hpp @@ -1,5 +1,25 @@ #ifndef TMWA_GENERIC_INTERN_POOL_HPP #define TMWA_GENERIC_INTERN_POOL_HPP +// intern-pool.hpp - Cached integer/string lookups. +// +// 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 "../sanity.hpp" # include diff --git a/src/generic/intern-pool_test.cpp b/src/generic/intern-pool_test.cpp index bf17b67..b72ab04 100644 --- a/src/generic/intern-pool_test.cpp +++ b/src/generic/intern-pool_test.cpp @@ -1,9 +1,29 @@ #include "intern-pool.hpp" +// intern-pool.hpp - Testsuite for cached integer/string lookups. +// +// 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 "../strings/base.hpp" +#include "../poison.hpp" + TEST(InternPool, whydoesthisalwaysneedasecondname) { InternPool p; diff --git a/src/generic/matrix.cpp b/src/generic/matrix.cpp index 9ee049e..e1e1f5e 100644 --- a/src/generic/matrix.cpp +++ b/src/generic/matrix.cpp @@ -1,3 +1,21 @@ #include "matrix.hpp" +// matrix.cpp - A 2D array. +// +// 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 "../poison.hpp" diff --git a/src/generic/matrix.hpp b/src/generic/matrix.hpp index b337249..40ff9a8 100644 --- a/src/generic/matrix.hpp +++ b/src/generic/matrix.hpp @@ -1,5 +1,23 @@ #ifndef TMWA_GENERIC_MATRIX_HPP #define TMWA_GENERIC_MATRIX_HPP +// matrix.hpp - A 2D array. +// +// 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 "../sanity.hpp" diff --git a/src/generic/md5.cpp b/src/generic/md5.cpp index a626dc5..b49d36f 100644 --- a/src/generic/md5.cpp +++ b/src/generic/md5.cpp @@ -1,4 +1,22 @@ #include "md5.hpp" +// md5.cpp - Fundamental MD5 operations. +// +// Copyright © 2011-2014 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 diff --git a/src/generic/md5.hpp b/src/generic/md5.hpp index ba1212a..8b1c6ad 100644 --- a/src/generic/md5.hpp +++ b/src/generic/md5.hpp @@ -1,5 +1,23 @@ #ifndef TMWA_GENERIC_MD5CALC_HPP #define TMWA_GENERIC_MD5CALC_HPP +// md5.hpp - Fundamental MD5 operations. +// +// Copyright © 2011-2014 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 "../sanity.hpp" diff --git a/src/generic/md5_test.cpp b/src/generic/md5_test.cpp index 7086c8c..f6a2324 100644 --- a/src/generic/md5_test.cpp +++ b/src/generic/md5_test.cpp @@ -1,10 +1,30 @@ #include "md5.hpp" +// md5_test.cpp - Testsuite for fundamental MD5 operations. +// +// 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 "../strings/xstring.hpp" #include "../strings/vstring.hpp" +#include "../poison.hpp" + // This should be made part of the main API, // but is not yet to keep the diff small. // Edit: hack to fix the new strict comparison. diff --git a/src/generic/operators.cpp b/src/generic/operators.cpp index 877aec6..8d79e1b 100644 --- a/src/generic/operators.cpp +++ b/src/generic/operators.cpp @@ -1,3 +1,21 @@ #include "operators.hpp" +// operators.cpp - ADL helper for value wrappers. +// +// 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 "../poison.hpp" diff --git a/src/generic/operators.hpp b/src/generic/operators.hpp index 3d3dccd..2a71c46 100644 --- a/src/generic/operators.hpp +++ b/src/generic/operators.hpp @@ -1,5 +1,25 @@ #ifndef TMWA_GENERIC_OPERATORS_HPP #define TMWA_GENERIC_OPERATORS_HPP +// operators.hpp - ADL helper for value wrappers. +// +// 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 "../sanity.hpp" namespace _operators { diff --git a/src/generic/random.cpp b/src/generic/random.cpp index 273dcec..8a06571 100644 --- a/src/generic/random.cpp +++ b/src/generic/random.cpp @@ -1,4 +1,22 @@ #include "random2.hpp" +// random.cpp - Random number generation. +// +// 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 "../poison.hpp" diff --git a/src/generic/random.hpp b/src/generic/random.hpp index 5d7a7af..45b5371 100644 --- a/src/generic/random.hpp +++ b/src/generic/random.hpp @@ -1,5 +1,25 @@ #ifndef TMWA_GENERIC_RANDOM_HPP #define TMWA_GENERIC_RANDOM_HPP +// random.hpp - Random number generation. +// +// 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 "../sanity.hpp" # include "random.t.hpp" diff --git a/src/generic/random.t.hpp b/src/generic/random.t.hpp index feea2b0..d26bf56 100644 --- a/src/generic/random.t.hpp +++ b/src/generic/random.t.hpp @@ -1,5 +1,25 @@ #ifndef TMWA_GENERIC_RANDOM_T_HPP #define TMWA_GENERIC_RANDOM_T_HPP +// random.t.hpp - Random number generation. +// +// 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 "../sanity.hpp" namespace random_ { diff --git a/src/generic/random2.hpp b/src/generic/random2.hpp index 4bdc72e..40fcbcf 100644 --- a/src/generic/random2.hpp +++ b/src/generic/random2.hpp @@ -1,5 +1,25 @@ #ifndef TMWA_GENERIC_RANDOM2_HPP #define TMWA_GENERIC_RANDOM2_HPP +// random2.hpp - Random number generation. +// +// 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 "../sanity.hpp" # include "random.hpp" -- cgit v1.2.3-60-g2f50