diff options
author | Andrew Woloszyn <awoloszyn@google.com> | 2015-11-11 11:05:07 -0500 |
---|---|---|
committer | David Neto <dneto@google.com> | 2015-11-11 12:12:13 -0500 |
commit | 55ecc2e097405a6ab38d53e0a4f6046447e45c05 (patch) | |
tree | 2fabf88e71e8944743ccbc4d0fc88f58c593ff35 /source/binary.h | |
parent | 9049bb48771cc74dcf72b8aa754d845eb51cf18a (diff) |
Fixed warnings on windows and constness of spv_binary.
Replaced uint64_t with size_t in the places that make sense and
added spv_const_binary{,_t} to allow the interface to accept non
modifiable spirv where appropriate.
Diffstat (limited to 'source/binary.h')
-rwxr-xr-x[-rw-r--r--] | source/binary.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/binary.h b/source/binary.h index 08f06994..889716fc 100644..100755 --- a/source/binary.h +++ b/source/binary.h @@ -107,7 +107,7 @@ typedef spv_result_t (*spv_parsed_instruction_fn_t)( // returns SPV_ERROR_INVALID_BINARY and emits a diagnostic. If a callback // returns anything other than SPV_SUCCESS, then that error code is returned // and parsing terminates early. -spv_result_t spvBinaryParse(void* user_data, const uint32_t* const words, +spv_result_t spvBinaryParse(void* user_data, const uint32_t* words, const size_t num_words, spv_parsed_header_fn_t parse_header, spv_parsed_instruction_fn_t parse_instruction, @@ -124,7 +124,7 @@ spv_result_t spvBinaryParse(void* user_data, const uint32_t* const words, /// @param[out] pHeader the returned header /// /// @return result code -spv_result_t spvBinaryHeaderGet(const spv_binary binary, +spv_result_t spvBinaryHeaderGet(const spv_const_binary binary, const spv_endianness_t endian, spv_header_t* pHeader); |