77#if !defined(TETENGO_TRIE_STORAGE_H )
88#define TETENGO_TRIE_STORAGE_H
99
10+ #include <stdbool.h>
1011#include <stddef.h>
1112#if defined(_WIN32 )
1213#include <wchar.h>
@@ -117,10 +118,10 @@ int tetengo_trie_storage_baseAt(const tetengo_trie_storage_t* p_storage, size_t
117118 \param base_check_index A base-check index.
118119 \param base A base value.
119120
120- \retval non-zero On no error.
121- \retval 0 Otherwise.
121+ \retval true On no error.
122+ \retval false Otherwise.
122123*/
123- int tetengo_trie_storage_setBaseAt (tetengo_trie_storage_t * p_storage , size_t base_check_index , int base );
124+ bool tetengo_trie_storage_setBaseAt (tetengo_trie_storage_t * p_storage , size_t base_check_index , int base );
124125
125126/*!
126127 \brief Returns the check value.
@@ -139,10 +140,10 @@ unsigned char tetengo_trie_storage_checkAt(const tetengo_trie_storage_t* p_stora
139140 \param base_check_index A base-check index.
140141 \param check A check value.
141142
142- \retval non-zero On no error.
143- \retval 0 Otherwise.
143+ \retval true On no error.
144+ \retval false Otherwise.
144145*/
145- int tetengo_trie_storage_setCheckAt (tetengo_trie_storage_t * p_storage , size_t base_check_index , unsigned char check );
146+ bool tetengo_trie_storage_setCheckAt (tetengo_trie_storage_t * p_storage , size_t base_check_index , unsigned char check );
146147
147148/*!
148149 \brief Returns the value count.
@@ -171,10 +172,10 @@ const void* tetengo_trie_storage_valueAt(const tetengo_trie_storage_t* p_storage
171172 \param p_value A pointer to a value object. Must not be NULL.
172173 \param value_size A value size.
173174
174- \retval non-zero On no error.
175- \retval 0 Otherwise.
175+ \retval true On no error.
176+ \retval false Otherwise.
176177*/
177- int tetengo_trie_storage_addValueAt (
178+ bool tetengo_trie_storage_addValueAt (
178179 tetengo_trie_storage_t * p_storage ,
179180 size_t value_index ,
180181 const void * p_value ,
@@ -196,10 +197,10 @@ double tetengo_trie_storage_fillingRate(const tetengo_trie_storage_t* p_storage)
196197 \param path A file path.
197198 \param fixed_value_size The value size if it is fixed. Or 0 if the size is variable.
198199
199- \retval non-zero On no error.
200- \retval 0 Otherwise.
200+ \retval true On no error.
201+ \retval false Otherwise.
201202*/
202- int tetengo_trie_storage_serialize (
203+ bool tetengo_trie_storage_serialize (
203204 const tetengo_trie_storage_t * p_storage ,
204205 const path_character_type * path ,
205206 size_t fixed_value_size );
0 commit comments