Skip to content

Commit

Permalink
Drop the second copyright year, update comments to C++ style
Browse files Browse the repository at this point in the history
  • Loading branch information
chfast committed Feb 10, 2022
1 parent eda05c6 commit 669fcfb
Show file tree
Hide file tree
Showing 54 changed files with 112 additions and 141 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# EVMC: Ethereum Client-VM Connector API.
# Copyright 2016-2020 The EVMC Authors.
# Copyright 2016 The EVMC Authors.
# Licensed under the Apache License, Version 2.0.

cmake_minimum_required(VERSION 3.10)
Expand Down
2 changes: 1 addition & 1 deletion bindings/go/evmc/evmc.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// EVMC: Ethereum Client-VM Connector API.
// Copyright 2018-2020 The EVMC Authors.
// Copyright 2018 The EVMC Authors.
// Licensed under the Apache License, Version 2.0.

package evmc
Expand Down
2 changes: 1 addition & 1 deletion bindings/go/evmc/evmc_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// EVMC: Ethereum Client-VM Connector API.
// Copyright 2018-2020 The EVMC Authors.
// Copyright 2018 The EVMC Authors.
// Licensed under the Apache License, Version 2.0.

//go:generate g++ -shared ../../../examples/example_vm/example_vm.cpp -I../../../include -o example_vm.so
Expand Down
7 changes: 3 additions & 4 deletions bindings/go/evmc/host.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* EVMC: Ethereum Client-VM Connector API.
* Copyright 2018-2019 The EVMC Authors.
* Licensed under the Apache License, Version 2.0.
*/
// EVMC: Ethereum Client-VM Connector API.
// Copyright 2018 The EVMC Authors.
// Licensed under the Apache License, Version 2.0.

#include "_cgo_export.h"

Expand Down
2 changes: 1 addition & 1 deletion bindings/go/evmc/host.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// EVMC: Ethereum Client-VM Connector API.
// Copyright 2018-2020 The EVMC Authors.
// Copyright 2018 The EVMC Authors.
// Licensed under the Apache License, Version 2.0.

package evmc
Expand Down
2 changes: 1 addition & 1 deletion bindings/go/evmc/host_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// EVMC: Ethereum Client-VM Connector API.
// Copyright 2018-2020 The EVMC Authors.
// Copyright 2018 The EVMC Authors.
// Licensed under the Apache License, Version 2.0.

package evmc
Expand Down
7 changes: 3 additions & 4 deletions bindings/java/c/evmc-vm.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* EVMC: Ethereum Client-VM Connector API.
* Copyright 2019-2020 The EVMC Authors.
* Licensed under the Apache License, Version 2.0.
*/
// EVMC: Ethereum Client-VM Connector API.
// Copyright 2019 The EVMC Authors.
// Licensed under the Apache License, Version 2.0.

#include "host.h"
#include "org_ethereum_evmc_EvmcVm.h"
Expand Down
7 changes: 3 additions & 4 deletions bindings/java/c/host.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* EVMC: Ethereum Client-VM Connector API.
* Copyright 2019-2020 The EVMC Authors.
* Licensed under the Apache License, Version 2.0.
*/
// EVMC: Ethereum Client-VM Connector API.
// Copyright 2019 The EVMC Authors.
// Licensed under the Apache License, Version 2.0.

#include <assert.h>
#include <stdlib.h>
Expand Down
7 changes: 3 additions & 4 deletions bindings/java/c/host.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* EVMC: Ethereum Client-VM Connector API.
* Copyright 2019-2020 The EVMC Authors.
* Licensed under the Apache License, Version 2.0.
*/
// EVMC: Ethereum Client-VM Connector API.
// Copyright 2019 The EVMC Authors.
// Licensed under the Apache License, Version 2.0.
#include "evmc/evmc.h"
#include <assert.h>
#include <jni.h>
Expand Down
7 changes: 3 additions & 4 deletions bindings/rust/evmc-declare-tests/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* EVMC: Ethereum Client-VM Connector API.
* Copyright 2019 The EVMC Authors.
* Licensed under the Apache License, Version 2.0.
*/
// EVMC: Ethereum Client-VM Connector API.
// Copyright 2019 The EVMC Authors.
// Licensed under the Apache License, Version 2.0.

use evmc_declare::evmc_declare_vm;
use evmc_vm::EvmcVm;
Expand Down
7 changes: 3 additions & 4 deletions bindings/rust/evmc-declare/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* EVMC: Ethereum Client-VM Connector API.
* Copyright 2019 The EVMC Authors.
* Licensed under the Apache License, Version 2.0.
*/
// EVMC: Ethereum Client-VM Connector API.
// Copyright 2019 The EVMC Authors.
// Licensed under the Apache License, Version 2.0.

//! evmc-declare is an attribute-style procedural macro to be used for automatic generation of FFI
//! code for the EVMC API with minimal boilerplate.
Expand Down
7 changes: 3 additions & 4 deletions bindings/rust/evmc-sys/build.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* EVMC: Ethereum Client-VM Connector API.
* Copyright 2019 The EVMC Authors.
* Licensed under the Apache License, Version 2.0.
*/
// EVMC: Ethereum Client-VM Connector API.
// Copyright 2019 The EVMC Authors.
// Licensed under the Apache License, Version 2.0.

extern crate bindgen;

Expand Down
7 changes: 3 additions & 4 deletions bindings/rust/evmc-sys/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* EVMC: Ethereum Client-VM Connector API.
* Copyright 2019 The EVMC Authors.
* Licensed under the Apache License, Version 2.0.
*/
// EVMC: Ethereum Client-VM Connector API.
// Copyright 2019 The EVMC Authors.
// Licensed under the Apache License, Version 2.0.

#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
Expand Down
7 changes: 3 additions & 4 deletions bindings/rust/evmc-vm/src/container.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* EVMC: Ethereum Client-VM Connector API.
* Copyright 2019 The EVMC Authors.
* Licensed under the Apache License, Version 2.0.
*/
// EVMC: Ethereum Client-VM Connector API.
// Copyright 2019 The EVMC Authors.
// Licensed under the Apache License, Version 2.0.

use crate::EvmcVm;

Expand Down
7 changes: 3 additions & 4 deletions bindings/rust/evmc-vm/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* EVMC: Ethereum Client-VM Connector API.
* Copyright 2019 The EVMC Authors.
* Licensed under the Apache License, Version 2.0.
*/
// EVMC: Ethereum Client-VM Connector API.
// Copyright 2019 The EVMC Authors.
// Licensed under the Apache License, Version 2.0.

//! Rust bindings for EVMC (Ethereum Client-VM Connector API).
//!
Expand Down
2 changes: 1 addition & 1 deletion cmake/cable/toolchains/cxx11-32bit.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Cable: CMake Bootstrap Library.
# Copyright 2018-2019 Pawel Bylica.
# Copyright 2018 Pawel Bylica.
# Licensed under the Apache License, Version 2.0.

set(CMAKE_CXX_STANDARD 11)
Expand Down
7 changes: 3 additions & 4 deletions examples/example-rust-vm/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* EVMC: Ethereum Client-VM Connector API.
* Copyright 2019 The EVMC Authors.
* Licensed under the Apache License, Version 2.0.
*/
// EVMC: Ethereum Client-VM Connector API.
// Copyright 2019 The EVMC Authors.
// Licensed under the Apache License, Version 2.0.

use evmc_declare::evmc_declare_vm;
use evmc_vm::*;
Expand Down
7 changes: 3 additions & 4 deletions examples/example_host.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* EVMC: Ethereum Client-VM Connector API.
* Copyright 2016-2019 The EVMC Authors.
* Licensed under the Apache License, Version 2.0.
*/
// EVMC: Ethereum Client-VM Connector API.
// Copyright 2016 The EVMC Authors.
// Licensed under the Apache License, Version 2.0.

/// @file
/// Example implementation of an EVMC Host.
Expand Down
7 changes: 3 additions & 4 deletions examples/example_host.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* EVMC: Ethereum Client-VM Connector API.
* Copyright 2016-2019 The EVMC Authors.
* Licensed under the Apache License, Version 2.0.
*/
// EVMC: Ethereum Client-VM Connector API.
// Copyright 2016 The EVMC Authors.
// Licensed under the Apache License, Version 2.0.

#include <evmc/evmc.h>

Expand Down
7 changes: 3 additions & 4 deletions examples/example_precompiles_vm/example_precompiles_vm.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* EVMC: Ethereum Client-VM Connector API.
* Copyright 2019 The EVMC Authors.
* Licensed under the Apache License, Version 2.0.
*/
// EVMC: Ethereum Client-VM Connector API.
// Copyright 2019 The EVMC Authors.
// Licensed under the Apache License, Version 2.0.

#include "example_precompiles_vm.h"
#include <algorithm>
Expand Down
7 changes: 3 additions & 4 deletions examples/example_precompiles_vm/example_precompiles_vm.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* EVMC: Ethereum Client-VM Connector API.
* Copyright 2019 The EVMC Authors.
* Licensed under the Apache License, Version 2.0.
*/
// EVMC: Ethereum Client-VM Connector API.
// Copyright 2019 The EVMC Authors.
// Licensed under the Apache License, Version 2.0.
#pragma once

#include <evmc/evmc.h>
Expand Down
2 changes: 1 addition & 1 deletion examples/example_vm/example_vm.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// EVMC: Ethereum Client-VM Connector API.
// Copyright 2016-2020 The EVMC Authors.
// Copyright 2016 The EVMC Authors.
// Licensed under the Apache License, Version 2.0.

/// @file
Expand Down
7 changes: 3 additions & 4 deletions examples/example_vm/example_vm.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* EVMC: Ethereum Client-VM Connector API.
* Copyright 2018-2019 The EVMC Authors.
* Licensed under the Apache License, Version 2.0.
*/
// EVMC: Ethereum Client-VM Connector API.
// Copyright 2018 The EVMC Authors.
// Licensed under the Apache License, Version 2.0.

#pragma once

Expand Down
2 changes: 1 addition & 1 deletion examples/use_evmc_in_cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# EVMC: Ethereum Client-VM Connector API.
# Copyright 2018-2019 The EVMC Authors.
# Copyright 2018 The EVMC Authors.
# Licensed under the Apache License, Version 2.0.

# This example shows how to use evmc INTERFACE library from evmc CMake package.
Expand Down
7 changes: 3 additions & 4 deletions examples/use_evmc_in_cmake/use_evmc_in_cmake.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* EVMC: Ethereum Client-VM Connector API.
* Copyright 2018-2019 The EVMC Authors.
* Licensed under the Apache License, Version 2.0.
*/
// EVMC: Ethereum Client-VM Connector API.
// Copyright 2018 The EVMC Authors.
// Licensed under the Apache License, Version 2.0.

/** This example shows how to use evmc INTERFACE library from evmc CMake package. */

Expand Down
2 changes: 1 addition & 1 deletion examples/use_instructions_in_cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# EVMC: Ethereum Client-VM Connector API.
# Copyright 2018-2019 The EVMC Authors.
# Copyright 2018 The EVMC Authors.
# Licensed under the Apache License, Version 2.0.

# This example shows how to use evmc::instructions library from evmc CMake package.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* EVMC: Ethereum Client-VM Connector API.
* Copyright 2018-2019 The EVMC Authors.
* Licensed under the Apache License, Version 2.0.
*/
// EVMC: Ethereum Client-VM Connector API.
// Copyright 2018 The EVMC Authors.
// Licensed under the Apache License, Version 2.0.

/** This example shows how to use evmc::instructions library from evmc CMake package. */

Expand Down
2 changes: 1 addition & 1 deletion include/evmc/evmc.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* EVMC: Ethereum Client-VM Connector API
*
* @copyright
* Copyright 2016-2019 The EVMC Authors.
* Copyright 2016 The EVMC Authors.
* Licensed under the Apache License, Version 2.0.
*
* @defgroup EVMC EVMC
Expand Down
7 changes: 3 additions & 4 deletions include/evmc/evmc.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* EVMC: Ethereum Client-VM Connector API.
* Copyright 2018-2020 The EVMC Authors.
* Licensed under the Apache License, Version 2.0.
*/
// EVMC: Ethereum Client-VM Connector API.
// Copyright 2018 The EVMC Authors.
// Licensed under the Apache License, Version 2.0.
#pragma once

#include <evmc/evmc.h>
Expand Down
7 changes: 3 additions & 4 deletions include/evmc/helpers.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* EVMC: Ethereum Client-VM Connector API.
* Copyright 2018-2019 The EVMC Authors.
* Licensed under the Apache License, Version 2.0.
*/
// EVMC: Ethereum Client-VM Connector API.
// Copyright 2018 The EVMC Authors.
// Licensed under the Apache License, Version 2.0.

/**
* EVMC Helpers
Expand Down
7 changes: 3 additions & 4 deletions include/evmc/instructions.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* EVMC: Ethereum Client-VM Connector API.
* Copyright 2018-2019 The EVMC Authors.
* Licensed under the Apache License, Version 2.0.
*/
// EVMC: Ethereum Client-VM Connector API.
// Copyright 2018 The EVMC Authors.
// Licensed under the Apache License, Version 2.0.

/**
* EVM Instruction Tables
Expand Down
7 changes: 3 additions & 4 deletions include/evmc/loader.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* EVMC: Ethereum Client-VM Connector API.
* Copyright 2018-2019 The EVMC Authors.
* Licensed under the Apache License, Version 2.0.
*/
// EVMC: Ethereum Client-VM Connector API.
// Copyright 2018 The EVMC Authors.
// Licensed under the Apache License, Version 2.0.

/**
* EVMC Loader Library
Expand Down
7 changes: 3 additions & 4 deletions include/evmc/utils.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* EVMC: Ethereum Client-VM Connector API.
* Copyright 2018-2019 The EVMC Authors.
* Licensed under the Apache License, Version 2.0.
*/
// EVMC: Ethereum Client-VM Connector API.
// Copyright 2018 The EVMC Authors.
// Licensed under the Apache License, Version 2.0.

#pragma once

Expand Down
2 changes: 1 addition & 1 deletion lib/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# EVMC: Ethereum Client-VM Connector API.
# Copyright 2018-2020 The EVMC Authors.
# Copyright 2018 The EVMC Authors.
# Licensed under the Apache License, Version 2.0.

add_library(evmc INTERFACE)
Expand Down
2 changes: 1 addition & 1 deletion lib/instructions/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# EVMC: Ethereum Client-VM Connector API.
# Copyright 2018-2019 The EVMC Authors.
# Copyright 2018 The EVMC Authors.
# Licensed under the Apache License, Version 2.0.

add_library(
Expand Down
7 changes: 3 additions & 4 deletions lib/instructions/instruction_metrics.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* EVMC: Ethereum Client-VM Connector API.
* Copyright 2018-2019 The EVMC Authors.
* Licensed under the Apache License, Version 2.0.
*/
// EVMC: Ethereum Client-VM Connector API.
// Copyright 2018 The EVMC Authors.
// Licensed under the Apache License, Version 2.0.

#include <evmc/instructions.h>

Expand Down
7 changes: 3 additions & 4 deletions lib/instructions/instruction_names.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* EVMC: Ethereum Client-VM Connector API.
* Copyright 2018-2019 The EVMC Authors.
* Licensed under the Apache License, Version 2.0.
*/
// EVMC: Ethereum Client-VM Connector API.
// Copyright 2018 The EVMC Authors.
// Licensed under the Apache License, Version 2.0.

#include <evmc/instructions.h>

Expand Down
2 changes: 1 addition & 1 deletion lib/loader/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# EVMC: Ethereum Client-VM Connector API.
# Copyright 2018-2019 The EVMC Authors.
# Copyright 2018 The EVMC Authors.
# Licensed under the Apache License, Version 2.0.

add_library(
Expand Down
7 changes: 3 additions & 4 deletions lib/loader/loader.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* EVMC: Ethereum Client-VM Connector API.
* Copyright 2018-2019 The EVMC Authors.
* Licensed under the Apache License, Version 2.0.
*/
// EVMC: Ethereum Client-VM Connector API.
// Copyright 2018 The EVMC Authors.
// Licensed under the Apache License, Version 2.0.

#include <evmc/loader.h>

Expand Down
2 changes: 1 addition & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# EVMC: Ethereum Client-VM Connector API.
# Copyright 2018-2020 The EVMC Authors.
# Copyright 2018 The EVMC Authors.
# Licensed under the Apache License, Version 2.0.

add_subdirectory(cmake_package)
Expand Down
2 changes: 1 addition & 1 deletion test/compilation/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# EVMC: Ethereum Client-VM Connector API.
# Copyright 2018-2020 The EVMC Authors.
# Copyright 2018 The EVMC Authors.
# Licensed under the Apache License, Version 2.0.

# This CMake script creates multiple additional targets to test the compilation of public headers
Expand Down
Loading

0 comments on commit 669fcfb

Please sign in to comment.