From 77326672fde8a781a232d54d5165faeeea250f6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Bylica?= Date: Tue, 23 Aug 2016 11:55:06 +0200 Subject: [PATCH] EVM-C: Use int istead of bool type --- examples/examplevm.c | 8 ++++---- include/evm.h | 9 ++++----- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/examples/examplevm.c b/examples/examplevm.c index a6c4246..c622b24 100644 --- a/examples/examplevm.c +++ b/examples/examplevm.c @@ -39,11 +39,11 @@ EXPORT void evm_destroy(struct evm_instance* evm) free(evm); } -EXPORT bool evm_set_option(struct evm_instance* evm, - char const* name, - char const* value) +EXPORT int evm_set_option(struct evm_instance* evm, + char const* name, + char const* value) { - return false; + return 0; } EXPORT struct evm_result evm_execute(struct evm_instance* instance, diff --git a/include/evm.h b/include/evm.h index cd1dee4..f30133a 100644 --- a/include/evm.h +++ b/include/evm.h @@ -16,7 +16,6 @@ #include // Definition of int64_t, uint64_t. #include // Definition of size_t. -#include // Definition of bool. /// Allow implementation to inject some additional information about function /// linkage and/or symbol visibility in the output library. @@ -284,10 +283,10 @@ EXPORT void evm_destroy(struct evm_instance* evm); /// @param evm The EVM instance to be configured. /// @param name The option name. Cannot be null. /// @param value The new option value. Cannot be null. -/// @return True if the option set successfully. -EXPORT bool evm_set_option(struct evm_instance* evm, - char const* name, - char const* value); +/// @return 1 if the option set successfully, 0 otherwise. +EXPORT int evm_set_option(struct evm_instance* evm, + char const* name, + char const* value); /// EVM compatibility mode aka chain mode.