Skip to content

Commit

Permalink
remove headers in files, add central header
Browse files Browse the repository at this point in the history
  • Loading branch information
pantor committed Jul 25, 2021
1 parent c70fd58 commit 99b85d6
Show file tree
Hide file tree
Showing 14 changed files with 46 additions and 50 deletions.
2 changes: 0 additions & 2 deletions include/inja/config.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright (c) 2021 Pantor. All rights reserved.

#ifndef INCLUDE_INJA_CONFIG_HPP_
#define INCLUDE_INJA_CONFIG_HPP_

Expand Down
2 changes: 0 additions & 2 deletions include/inja/environment.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright (c) 2021 Pantor. All rights reserved.

#ifndef INCLUDE_INJA_ENVIRONMENT_HPP_
#define INCLUDE_INJA_ENVIRONMENT_HPP_

Expand Down
2 changes: 0 additions & 2 deletions include/inja/exceptions.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright (c) 2021 Pantor. All rights reserved.

#ifndef INCLUDE_INJA_EXCEPTIONS_HPP_
#define INCLUDE_INJA_EXCEPTIONS_HPP_

Expand Down
2 changes: 0 additions & 2 deletions include/inja/function_storage.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright (c) 2021 Pantor. All rights reserved.

#ifndef INCLUDE_INJA_FUNCTION_STORAGE_HPP_
#define INCLUDE_INJA_FUNCTION_STORAGE_HPP_

Expand Down
24 changes: 23 additions & 1 deletion include/inja/inja.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,26 @@
// Copyright (c) 2021 Pantor. All rights reserved.
/*
___ _ Version 3.2
|_ _|_ __ (_) __ _ https://github.com/pantor/inja
| || '_ \ | |/ _` | Licensed under the MIT License <http://opensource.org/licenses/MIT>.
| || | | || | (_| |
|___|_| |_|/ |\__,_| Copyright (c) 2018-2021 Lars Berscheid
|__/
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/

#ifndef INCLUDE_INJA_INJA_HPP_
#define INCLUDE_INJA_INJA_HPP_
Expand Down
2 changes: 0 additions & 2 deletions include/inja/lexer.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright (c) 2020 Pantor. All rights reserved.

#ifndef INCLUDE_INJA_LEXER_HPP_
#define INCLUDE_INJA_LEXER_HPP_

Expand Down
2 changes: 0 additions & 2 deletions include/inja/node.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright (c) 2021 Pantor. All rights reserved.

#ifndef INCLUDE_INJA_NODE_HPP_
#define INCLUDE_INJA_NODE_HPP_

Expand Down
2 changes: 0 additions & 2 deletions include/inja/parser.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright (c) 2021 Pantor. All rights reserved.

#ifndef INCLUDE_INJA_PARSER_HPP_
#define INCLUDE_INJA_PARSER_HPP_

Expand Down
2 changes: 0 additions & 2 deletions include/inja/renderer.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright (c) 2021 Pantor. All rights reserved.

#ifndef INCLUDE_INJA_RENDERER_HPP_
#define INCLUDE_INJA_RENDERER_HPP_

Expand Down
2 changes: 0 additions & 2 deletions include/inja/statistics.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright (c) 2021 Pantor. All rights reserved.

#ifndef INCLUDE_INJA_STATISTICS_HPP_
#define INCLUDE_INJA_STATISTICS_HPP_

Expand Down
2 changes: 0 additions & 2 deletions include/inja/template.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright (c) 2021 Pantor. All rights reserved.

#ifndef INCLUDE_INJA_TEMPLATE_HPP_
#define INCLUDE_INJA_TEMPLATE_HPP_

Expand Down
2 changes: 0 additions & 2 deletions include/inja/token.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright (c) 2021 Pantor. All rights reserved.

#ifndef INCLUDE_INJA_TOKEN_HPP_
#define INCLUDE_INJA_TOKEN_HPP_

Expand Down
2 changes: 0 additions & 2 deletions include/inja/utils.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright (c) 2021 Pantor. All rights reserved.

#ifndef INCLUDE_INJA_UTILS_HPP_
#define INCLUDE_INJA_UTILS_HPP_

Expand Down
48 changes: 23 additions & 25 deletions single_include/inja/inja.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,26 @@
// Copyright (c) 2021 Pantor. All rights reserved.
/*
___ _ Version 3.2
|_ _|_ __ (_) __ _ https://github.com/pantor/inja
| || '_ \ | |/ _` | Licensed under the MIT License <http://opensource.org/licenses/MIT>.
| || | | || | (_| |
|___|_| |_|/ |\__,_| Copyright (c) 2018-2021 Lars Berscheid
|__/
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/

#ifndef INCLUDE_INJA_INJA_HPP_
#define INCLUDE_INJA_INJA_HPP_
Expand All @@ -20,8 +42,6 @@
#endif

// #include "environment.hpp"
// Copyright (c) 2021 Pantor. All rights reserved.

#ifndef INCLUDE_INJA_ENVIRONMENT_HPP_
#define INCLUDE_INJA_ENVIRONMENT_HPP_

Expand All @@ -34,8 +54,6 @@
#include <nlohmann/json.hpp>

// #include "config.hpp"
// Copyright (c) 2021 Pantor. All rights reserved.

#ifndef INCLUDE_INJA_CONFIG_HPP_
#define INCLUDE_INJA_CONFIG_HPP_

Expand Down Expand Up @@ -1534,8 +1552,6 @@ struct RenderConfig {
#endif // INCLUDE_INJA_CONFIG_HPP_

// #include "function_storage.hpp"
// Copyright (c) 2021 Pantor. All rights reserved.

#ifndef INCLUDE_INJA_FUNCTION_STORAGE_HPP_
#define INCLUDE_INJA_FUNCTION_STORAGE_HPP_

Expand Down Expand Up @@ -1681,8 +1697,6 @@ class FunctionStorage {
#endif // INCLUDE_INJA_FUNCTION_STORAGE_HPP_

// #include "parser.hpp"
// Copyright (c) 2021 Pantor. All rights reserved.

#ifndef INCLUDE_INJA_PARSER_HPP_
#define INCLUDE_INJA_PARSER_HPP_

Expand All @@ -1696,8 +1710,6 @@ class FunctionStorage {
// #include "config.hpp"

// #include "exceptions.hpp"
// Copyright (c) 2021 Pantor. All rights reserved.

#ifndef INCLUDE_INJA_EXCEPTIONS_HPP_
#define INCLUDE_INJA_EXCEPTIONS_HPP_

Expand Down Expand Up @@ -1750,8 +1762,6 @@ struct JsonError : public InjaError {
// #include "function_storage.hpp"

// #include "lexer.hpp"
// Copyright (c) 2020 Pantor. All rights reserved.

#ifndef INCLUDE_INJA_LEXER_HPP_
#define INCLUDE_INJA_LEXER_HPP_

Expand All @@ -1761,8 +1771,6 @@ struct JsonError : public InjaError {
// #include "config.hpp"

// #include "token.hpp"
// Copyright (c) 2021 Pantor. All rights reserved.

#ifndef INCLUDE_INJA_TOKEN_HPP_
#define INCLUDE_INJA_TOKEN_HPP_

Expand Down Expand Up @@ -1840,8 +1848,6 @@ struct Token {
#endif // INCLUDE_INJA_TOKEN_HPP_

// #include "utils.hpp"
// Copyright (c) 2021 Pantor. All rights reserved.

#ifndef INCLUDE_INJA_UTILS_HPP_
#define INCLUDE_INJA_UTILS_HPP_

Expand Down Expand Up @@ -2355,8 +2361,6 @@ class Lexer {
#endif // INCLUDE_INJA_LEXER_HPP_

// #include "node.hpp"
// Copyright (c) 2021 Pantor. All rights reserved.

#ifndef INCLUDE_INJA_NODE_HPP_
#define INCLUDE_INJA_NODE_HPP_

Expand Down Expand Up @@ -2735,8 +2739,6 @@ class SetStatementNode : public StatementNode {
#endif // INCLUDE_INJA_NODE_HPP_

// #include "template.hpp"
// Copyright (c) 2021 Pantor. All rights reserved.

#ifndef INCLUDE_INJA_TEMPLATE_HPP_
#define INCLUDE_INJA_TEMPLATE_HPP_

Expand All @@ -2748,8 +2750,6 @@ class SetStatementNode : public StatementNode {
// #include "node.hpp"

// #include "statistics.hpp"
// Copyright (c) 2021 Pantor. All rights reserved.

#ifndef INCLUDE_INJA_STATISTICS_HPP_
#define INCLUDE_INJA_STATISTICS_HPP_

Expand Down Expand Up @@ -3489,8 +3489,6 @@ class Parser {
#endif // INCLUDE_INJA_PARSER_HPP_

// #include "renderer.hpp"
// Copyright (c) 2021 Pantor. All rights reserved.

#ifndef INCLUDE_INJA_RENDERER_HPP_
#define INCLUDE_INJA_RENDERER_HPP_

Expand Down

0 comments on commit 99b85d6

Please sign in to comment.