From 73403597029a6de407a0d20eb7d11b95bdd0627d Mon Sep 17 00:00:00 2001 From: jangko Date: Mon, 12 Feb 2024 10:26:05 +0700 Subject: [PATCH] Add copyright to source code --- config.nims | 9 +++++++++ confutils.nim | 11 ++++++++++- confutils.nimble | 9 +++++++++ confutils/cli_parser.nim | 10 +++++++++- confutils/cli_parsing_fuzzer.nim | 9 +++++++++ confutils/config_file.nim | 9 +++++++++ confutils/defs.nim | 9 +++++++++ confutils/shell_completion.nim | 9 +++++++++ confutils/std/net.nim | 9 +++++++++ confutils/toml/defs.nim | 9 +++++++++ confutils/toml/std/net.nim | 9 +++++++++ confutils/toml/std/uri.nim | 9 +++++++++ confutils/winreg/reader.nim | 9 +++++++++ confutils/winreg/types.nim | 9 +++++++++ confutils/winreg/utils.nim | 9 +++++++++ confutils/winreg/winreg_serialization.nim | 9 +++++++++ confutils/winreg/writer.nim | 9 +++++++++ nim.cfg | 9 +++++++++ 18 files changed, 163 insertions(+), 2 deletions(-) diff --git a/config.nims b/config.nims index 7c9db32..8f11296 100644 --- a/config.nims +++ b/config.nims @@ -1,3 +1,12 @@ +# confutils +# Copyright (c) 2018-2024 Status Research & Development GmbH +# Licensed under either of +# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) +# * MIT license ([LICENSE-MIT](LICENSE-MIT)) +# at your option. +# This file may not be copied, modified, or distributed except according to +# those terms. + # begin Nimble config (version 1) when fileExists("nimble.paths"): include "nimble.paths" diff --git a/confutils.nim b/confutils.nim index 556ed78..2262f51 100644 --- a/confutils.nim +++ b/confutils.nim @@ -1,3 +1,12 @@ +# confutils +# Copyright (c) 2018-2024 Status Research & Development GmbH +# Licensed under either of +# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) +# * MIT license ([LICENSE-MIT](LICENSE-MIT)) +# at your option. +# This file may not be copied, modified, or distributed except according to +# those terms. + import os, std/[enumutils, options, strutils, wordwrap, strformat], @@ -889,7 +898,7 @@ func constructEnvKey*(prefix: string, key: string): string {.raises: [].} = # See https://nim-lang.org/docs/os.html#commandLineParams when not declared(commandLineParams): proc commandLineParams(): seq[string] = discard - + proc loadImpl[C, SecondarySources]( Configuration: typedesc[C], cmdLine = commandLineParams(), diff --git a/confutils.nimble b/confutils.nimble index 580b5da..42bd49b 100644 --- a/confutils.nimble +++ b/confutils.nimble @@ -1,3 +1,12 @@ +# confutils +# Copyright (c) 2018-2024 Status Research & Development GmbH +# Licensed under either of +# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) +# * MIT license ([LICENSE-MIT](LICENSE-MIT)) +# at your option. +# This file may not be copied, modified, or distributed except according to +# those terms. + import os, strutils mode = ScriptMode.Verbose diff --git a/confutils/cli_parser.nim b/confutils/cli_parser.nim index 867ac20..d9ed5af 100644 --- a/confutils/cli_parser.nim +++ b/confutils/cli_parser.nim @@ -1,4 +1,12 @@ -# Copyright 2018-2022 Status Research & Development GmbH +# confutils +# Copyright (c) 2018-2024 Status Research & Development GmbH +# Licensed under either of +# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) +# * MIT license ([LICENSE-MIT](LICENSE-MIT)) +# at your option. +# This file may not be copied, modified, or distributed except according to +# those terms. + # Parts taken from Nim's Runtime Library (c) Copyright 2015 Andreas Rumpf type diff --git a/confutils/cli_parsing_fuzzer.nim b/confutils/cli_parsing_fuzzer.nim index b90e4c6..48033af 100644 --- a/confutils/cli_parsing_fuzzer.nim +++ b/confutils/cli_parsing_fuzzer.nim @@ -1,3 +1,12 @@ +# confutils +# Copyright (c) 2018-2024 Status Research & Development GmbH +# Licensed under either of +# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) +# * MIT license ([LICENSE-MIT](LICENSE-MIT)) +# at your option. +# This file may not be copied, modified, or distributed except according to +# those terms. + import strutils, stew/byteutils, testutils/fuzzing, diff --git a/confutils/config_file.nim b/confutils/config_file.nim index 3f6ff39..e2c05e7 100644 --- a/confutils/config_file.nim +++ b/confutils/config_file.nim @@ -1,3 +1,12 @@ +# confutils +# Copyright (c) 2018-2024 Status Research & Development GmbH +# Licensed under either of +# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) +# * MIT license ([LICENSE-MIT](LICENSE-MIT)) +# at your option. +# This file may not be copied, modified, or distributed except according to +# those terms. + import std/[tables, macrocache], stew/shims/macros diff --git a/confutils/defs.nim b/confutils/defs.nim index 94f76c7..19b50be 100644 --- a/confutils/defs.nim +++ b/confutils/defs.nim @@ -1,3 +1,12 @@ +# confutils +# Copyright (c) 2018-2024 Status Research & Development GmbH +# Licensed under either of +# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) +# * MIT license ([LICENSE-MIT](LICENSE-MIT)) +# at your option. +# This file may not be copied, modified, or distributed except according to +# those terms. + import std/options diff --git a/confutils/shell_completion.nim b/confutils/shell_completion.nim index dc556b4..962d5b0 100644 --- a/confutils/shell_completion.nim +++ b/confutils/shell_completion.nim @@ -1,3 +1,12 @@ +# confutils +# Copyright (c) 2018-2024 Status Research & Development GmbH +# Licensed under either of +# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) +# * MIT license ([LICENSE-MIT](LICENSE-MIT)) +# at your option. +# This file may not be copied, modified, or distributed except according to +# those terms. + ## A simple lexer meant to tokenize an input string as a shell would do. import lexbase import options diff --git a/confutils/std/net.nim b/confutils/std/net.nim index bcea7f9..18033bc 100644 --- a/confutils/std/net.nim +++ b/confutils/std/net.nim @@ -1,3 +1,12 @@ +# confutils +# Copyright (c) 2018-2024 Status Research & Development GmbH +# Licensed under either of +# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) +# * MIT license ([LICENSE-MIT](LICENSE-MIT)) +# at your option. +# This file may not be copied, modified, or distributed except according to +# those terms. + import std/net from std/parseutils import parseInt export net diff --git a/confutils/toml/defs.nim b/confutils/toml/defs.nim index c43854e..c1ea5b8 100644 --- a/confutils/toml/defs.nim +++ b/confutils/toml/defs.nim @@ -1,3 +1,12 @@ +# confutils +# Copyright (c) 2018-2024 Status Research & Development GmbH +# Licensed under either of +# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) +# * MIT license ([LICENSE-MIT](LICENSE-MIT)) +# at your option. +# This file may not be copied, modified, or distributed except according to +# those terms. + import toml_serialization, ../defs as confutilsDefs diff --git a/confutils/toml/std/net.nim b/confutils/toml/std/net.nim index 95bd414..5ee8dd0 100644 --- a/confutils/toml/std/net.nim +++ b/confutils/toml/std/net.nim @@ -1,3 +1,12 @@ +# confutils +# Copyright (c) 2018-2024 Status Research & Development GmbH +# Licensed under either of +# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) +# * MIT license ([LICENSE-MIT](LICENSE-MIT)) +# at your option. +# This file may not be copied, modified, or distributed except according to +# those terms. + import std/net, toml_serialization, toml_serialization/lexer diff --git a/confutils/toml/std/uri.nim b/confutils/toml/std/uri.nim index 8040043..6f18f90 100644 --- a/confutils/toml/std/uri.nim +++ b/confutils/toml/std/uri.nim @@ -1,3 +1,12 @@ +# confutils +# Copyright (c) 2018-2024 Status Research & Development GmbH +# Licensed under either of +# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) +# * MIT license ([LICENSE-MIT](LICENSE-MIT)) +# at your option. +# This file may not be copied, modified, or distributed except according to +# those terms. + import std/uri, toml_serialization, toml_serialization/lexer diff --git a/confutils/winreg/reader.nim b/confutils/winreg/reader.nim index fb9aea7..c421599 100644 --- a/confutils/winreg/reader.nim +++ b/confutils/winreg/reader.nim @@ -1,3 +1,12 @@ +# confutils +# Copyright (c) 2018-2024 Status Research & Development GmbH +# Licensed under either of +# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) +# * MIT license ([LICENSE-MIT](LICENSE-MIT)) +# at your option. +# This file may not be copied, modified, or distributed except according to +# those terms. + import tables, typetraits, options, serialization/[object_serialization], diff --git a/confutils/winreg/types.nim b/confutils/winreg/types.nim index 01c84e9..6e33d25 100644 --- a/confutils/winreg/types.nim +++ b/confutils/winreg/types.nim @@ -1,3 +1,12 @@ +# confutils +# Copyright (c) 2018-2024 Status Research & Development GmbH +# Licensed under either of +# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) +# * MIT license ([LICENSE-MIT](LICENSE-MIT)) +# at your option. +# This file may not be copied, modified, or distributed except according to +# those terms. + import serialization/errors diff --git a/confutils/winreg/utils.nim b/confutils/winreg/utils.nim index 4968539..43f855d 100644 --- a/confutils/winreg/utils.nim +++ b/confutils/winreg/utils.nim @@ -1,3 +1,12 @@ +# confutils +# Copyright (c) 2018-2024 Status Research & Development GmbH +# Licensed under either of +# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) +# * MIT license ([LICENSE-MIT](LICENSE-MIT)) +# at your option. +# This file may not be copied, modified, or distributed except according to +# those terms. + import strutils, ./types diff --git a/confutils/winreg/winreg_serialization.nim b/confutils/winreg/winreg_serialization.nim index 762692d..69a2588 100644 --- a/confutils/winreg/winreg_serialization.nim +++ b/confutils/winreg/winreg_serialization.nim @@ -1,3 +1,12 @@ +# confutils +# Copyright (c) 2018-2024 Status Research & Development GmbH +# Licensed under either of +# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) +# * MIT license ([LICENSE-MIT](LICENSE-MIT)) +# at your option. +# This file may not be copied, modified, or distributed except according to +# those terms. + import stew/shims/macros, serialization, ./reader, ./writer, ./utils, ./types diff --git a/confutils/winreg/writer.nim b/confutils/winreg/writer.nim index b21f833..c971430 100644 --- a/confutils/winreg/writer.nim +++ b/confutils/winreg/writer.nim @@ -1,3 +1,12 @@ +# confutils +# Copyright (c) 2018-2024 Status Research & Development GmbH +# Licensed under either of +# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) +# * MIT license ([LICENSE-MIT](LICENSE-MIT)) +# at your option. +# This file may not be copied, modified, or distributed except according to +# those terms. + import typetraits, options, tables, serialization, diff --git a/nim.cfg b/nim.cfg index 371f6d7..3876094 100644 --- a/nim.cfg +++ b/nim.cfg @@ -1,3 +1,12 @@ +# confutils +# Copyright (c) 2018-2024 Status Research & Development GmbH +# Licensed under either of +# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) +# * MIT license ([LICENSE-MIT](LICENSE-MIT)) +# at your option. +# This file may not be copied, modified, or distributed except according to +# those terms. + # Avoid some rare stack corruption while using exceptions with a SEH-enabled # toolchain: https://github.com/status-im/nimbus-eth2/issues/3121 @if windows and not vcc: