From 65ce50f6209254a5352683e5d56d10703b611984 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Wed, 3 Jul 2024 16:45:03 +0100 Subject: [PATCH] Fix copyright notices and includes --- src/base.cpp | 14 +++++++++----- src/base.hpp | 12 ++++++++---- src/lexer.cpp | 14 +++++++++----- src/lexer.hpp | 12 ++++++++---- src/main.cpp | 16 ++++++++++------ 5 files changed, 44 insertions(+), 24 deletions(-) diff --git a/src/base.cpp b/src/base.cpp index 10cfd3d..8796b38 100644 --- a/src/base.cpp +++ b/src/base.cpp @@ -1,16 +1,20 @@ /* Copyright (C) 2024 Aryadev Chavali - * You may distribute and modify this code under the terms of the - * GPLv2 license. You should have received a copy of the GPLv2 - * license with this file. If not, please write to: - * aryadev@aryadevchavali.com. + * 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 Version 2 for + * details. + + * You may distribute and modify this code under the terms of the GNU General + * Public License Version 2, which you should have received a copy of along with + * this program. If not, please go to . * Created: 2024-04-14 * Author: Aryadev Chavali * Description: */ -#include "./base.hpp" +#include #include diff --git a/src/base.hpp b/src/base.hpp index f55e163..f1da2b0 100644 --- a/src/base.hpp +++ b/src/base.hpp @@ -1,9 +1,13 @@ /* Copyright (C) 2024 Aryadev Chavali - * You may distribute and modify this code under the terms of the - * GPLv2 license. You should have received a copy of the GPLv2 - * license with this file. If not, please write to: - * aryadev@aryadevchavali.com. + * 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 Version 2 for + * details. + + * You may distribute and modify this code under the terms of the GNU General + * Public License Version 2, which you should have received a copy of along with + * this program. If not, please go to . * Created: 2024-04-14 * Author: Aryadev Chavali diff --git a/src/lexer.cpp b/src/lexer.cpp index aeb902c..6e8665d 100644 --- a/src/lexer.cpp +++ b/src/lexer.cpp @@ -1,9 +1,13 @@ /* Copyright (C) 2024 Aryadev Chavali - * You may distribute and modify this code under the terms of the - * GPLv2 license. You should have received a copy of the GPLv2 - * license with this file. If not, please write to: - * aryadev@aryadevchavali.com. + * 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 Version 2 for + * details. + + * You may distribute and modify this code under the terms of the GNU General + * Public License Version 2, which you should have received a copy of along with + * this program. If not, please go to . * Created: 2024-04-14 * Author: Aryadev Chavali @@ -18,7 +22,7 @@ extern "C" #include #include -#include "./lexer.hpp" +#include static_assert(NUMBER_OF_OPCODES == 99, "ERROR: Lexer is out of date"); diff --git a/src/lexer.hpp b/src/lexer.hpp index fa0f3ee..f467a78 100644 --- a/src/lexer.hpp +++ b/src/lexer.hpp @@ -1,9 +1,13 @@ /* Copyright (C) 2024 Aryadev Chavali - * You may distribute and modify this code under the terms of the - * GPLv2 license. You should have received a copy of the GPLv2 - * license with this file. If not, please write to: - * aryadev@aryadevchavali.com. + * 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 Version 2 for + * details. + + * You may distribute and modify this code under the terms of the GNU General + * Public License Version 2, which you should have received a copy of along with + * this program. If not, please go to . * Created: 2024-04-14 * Author: Aryadev Chavali diff --git a/src/main.cpp b/src/main.cpp index c705ec0..fc91a4b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,9 +1,13 @@ /* Copyright (C) 2024 Aryadev Chavali - * You may distribute and modify this code under the terms of the - * GPLv2 license. You should have received a copy of the GPLv2 - * license with this file. If not, please write to: - * aryadev@aryadevchavali.com. + * 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 Version 2 for + * details. + + * You may distribute and modify this code under the terms of the GNU General + * Public License Version 2, which you should have received a copy of along with + * this program. If not, please go to . * Created: 2024-04-14 * Author: Aryadev Chavali @@ -21,8 +25,8 @@ extern "C" #include } -#include "./base.hpp" -#include "./lexer.hpp" +#include +#include using std::cout, std::cerr, std::endl; using std::string, std::string_view, std::vector;