Merge pull request #30 from ethereum/pedantic-c

Make header compilable in C99 and C11 pedantic mode
This commit is contained in:
Paweł Bylica 2018-05-01 00:44:58 +02:00 committed by GitHub
commit d7c0312f31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 478 additions and 360 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,6 @@
# EVMC -- Ethereum Client-VM Connector API
# EVMC: Ethereum Client-VM Connector API.
# Copyright 2018 Pawel Bylica.
# Licensed under the MIT License. See the LICENSE file.
add_subdirectory(integration)
add_subdirectory(vmtester)

View File

@ -0,0 +1,5 @@
# EVMC: Ethereum Client-VM Connector API.
# Copyright 2018 Pawel Bylica.
# Licensed under the MIT License. See the LICENSE file.
add_subdirectory(compilation)

View File

@ -0,0 +1,11 @@
# EVMC: Ethereum Client-VM Connector API.
# Copyright 2018 Pawel Bylica.
# Licensed under the MIT License. See the LICENSE file.
add_library(test-compile-c99 STATIC compilation_test.c)
target_link_libraries(test-compile-c99 PRIVATE evmc)
set_target_properties(test-compile-c99 PROPERTIES C_STANDARD 99 C_EXTENSIONS OFF)
add_library(test-compile-c11 STATIC compilation_test.c)
target_link_libraries(test-compile-c11 PRIVATE evmc)
set_target_properties(test-compile-c11 PROPERTIES C_STANDARD 11 C_EXTENSIONS OFF)

View File

@ -0,0 +1,7 @@
/* EVMC: Ethereum Client-VM Connector API.
* Copyright 2018 Pawel Bylica.
* Licensed under the MIT License. See the LICENSE file.
*/
#include <evmc/evmc.h>

View File

@ -1,4 +1,4 @@
# EVMC -- Ethereum Client-VM Connector API
# EVMC: Ethereum Client-VM Connector API.
# Copyright 2018 Pawel Bylica.
# Licensed under the MIT License. See the LICENSE file.