Paweł Bylica
c584b84af9
EVM-C: clarify that evm_result::release can be NULL
2017-04-24 18:10:30 +02:00
Paweł Bylica
beac0977f8
EVM-C: Add examples of evm_result usages
2017-04-24 17:32:28 +02:00
Paweł Bylica
faa1aab946
Always build examples if included
2017-01-19 14:32:22 +01:00
Paweł Bylica
66b2ae9663
EVM-C: return by explicit output param
...
In evm_query_fn, return result by explicit output parameter to avoid C ABI issues and inrease portability. C compiler would do the same implicitly.
2017-01-19 14:32:22 +01:00
Paweł Bylica
575337b449
EVM-C: pass callback argument explicitly by pointer
...
We try to avoid C ABI complex rules like passing structs by value to increase portability.
2017-01-19 14:32:22 +01:00
Paweł Bylica
3d2e365661
EVM-C: introduce factory -- simpler interface
...
Replace evm_interface with evm_factory. The factory provides ABI protection and the function for creating EVM instances. After the instance is create you can discard the factory as it is no longer needed.
2017-01-19 14:32:22 +01:00
Paweł Bylica
d1d3ed03ae
Fix example
2016-09-28 16:50:13 +02:00
Paweł Bylica
8b9867c971
EVM-C: Attach result_release function to the result itself
2016-09-27 17:14:19 +02:00
Paweł Bylica
2a99b13573
EVM-C: Replace evm_{uint|hash}256 with single evm_uint256be
...
All values transfered to/from a VM must be passed as big-endian integers.
2016-08-31 11:40:02 +02:00
Paweł Bylica
0b9b01e05c
EVM-C: Simplify evm_hash256 struct
2016-08-28 20:40:20 +02:00
Paweł Bylica
aa1fa5ee32
EVM-C: Add ABI versioning support
2016-08-25 22:02:36 +02:00
Paweł Bylica
93f16f9380
EVM-C: Drop evm_get_info()
2016-08-25 15:01:49 +02:00
Paweł Bylica
2e6b278a59
EVM-C: Rename evm_result_error_code -> evm_result_code
2016-08-25 13:50:11 +02:00
Paweł Bylica
ff8847670d
EVM-C: Update examples
2016-08-25 12:20:39 +02:00
Alex Beregszaszi
6d2b6efa90
EVM-C: update capi.c to reflect the new error handling
2016-08-24 12:43:35 +01:00
Alex Beregszaszi
baeade4d10
EVM-C: rename EVM_RESULT_* to EVM_*
2016-08-24 12:30:52 +01:00
Alex Beregszaszi
f107589c59
EVM-C: rename EVM_EXCEPTION to EVM_CALL_EXCEPTION
2016-08-24 12:30:51 +01:00
Alex Beregszaszi
abc914afd2
EVM-C: include evm_result_outcome in evm_result
2016-08-24 10:47:17 +01:00
Paweł Bylica
530b6684b2
EVM-C: Rename evm_fn_table -> evm_interface
2016-08-23 21:51:42 +02:00
Paweł Bylica
85cdeea4e6
EVM-C: Bring back set_option to ExampleVM
2016-08-23 21:24:22 +02:00
Paweł Bylica
e0ff4b350e
EVM-C: Build examples without #pragma warning suppressions
2016-08-23 21:10:11 +02:00
Paweł Bylica
efb73335c2
Update EVM-C examples
2016-08-23 13:07:33 +02:00
Paweł Bylica
77326672fd
EVM-C: Use int istead of bool type
2016-08-23 11:55:06 +02:00
Alex Beregszaszi
8c2f9d44e8
EVM-C: improve capi.c and compile against ExampleVM
2016-08-22 21:51:43 +01:00
Alex Beregszaszi
2bb6a4a690
EVM-C: include ExampleVM in CMake
2016-08-22 21:39:34 +01:00
Alex Beregszaszi
fc47787b79
EVM-C: include ExampleVM
2016-08-22 21:37:25 +01:00
Paweł Bylica
d26635abc2
EVM-C: get rid of evm_bytes_view type
2016-07-20 14:15:04 +02:00
Paweł Bylica
8684f22c43
Fix build of CAPI example
2016-07-20 13:31:09 +02:00
Paweł Bylica
4198c0d503
EVM-C: Pass logs using evm_update() function
2016-07-05 13:18:36 +02:00
Paweł Bylica
57afb98d2c
Example usage of EVM-C
2016-06-24 11:40:06 +02:00