99
1010#include <stdbool.h>
1111#include <stddef.h>
12+ #include <stdint.h>
1213#if defined(_WIN32 )
1314#include <wchar.h>
1415#endif
@@ -44,7 +45,7 @@ typedef char path_character_type;
4445
4546 \return The check value for a vacant element.
4647*/
47- unsigned char tetengo_trie_storage_vacantCheckValue ();
48+ uint8_t tetengo_trie_storage_vacantCheckValue ();
4849
4950/*!
5051 \brief Creates a storage.
@@ -107,9 +108,9 @@ size_t tetengo_trie_storage_baseCheckSize(const tetengo_trie_storage_t* p_storag
107108 \param p_storage A pointer to a storage.
108109 \param base_check_index A base-check index.
109110
110- \return The base value. Or INT_MAX on error.
111+ \return The base value. Or INT32_MAX on error.
111112*/
112- int tetengo_trie_storage_baseAt (const tetengo_trie_storage_t * p_storage , size_t base_check_index );
113+ int32_t tetengo_trie_storage_baseAt (const tetengo_trie_storage_t * p_storage , size_t base_check_index );
113114
114115/*!
115116 \brief Sets a base value.
@@ -121,17 +122,17 @@ int tetengo_trie_storage_baseAt(const tetengo_trie_storage_t* p_storage, size_t
121122 \retval true On no error.
122123 \retval false Otherwise.
123124*/
124- bool tetengo_trie_storage_setBaseAt (tetengo_trie_storage_t * p_storage , size_t base_check_index , int base );
125+ bool tetengo_trie_storage_setBaseAt (tetengo_trie_storage_t * p_storage , size_t base_check_index , int32_t base );
125126
126127/*!
127128 \brief Returns the check value.
128129
129130 \param p_storage A pointer to a storage.
130131 \param base_check_index A base-check index.
131132
132- \return The check value. Or UCHAR_MAX on error.
133+ \return The check value. Or UINT8_MAX on error.
133134*/
134- unsigned char tetengo_trie_storage_checkAt (const tetengo_trie_storage_t * p_storage , size_t base_check_index );
135+ uint8_t tetengo_trie_storage_checkAt (const tetengo_trie_storage_t * p_storage , size_t base_check_index );
135136
136137/*!
137138 \brief Sets a check value.
@@ -143,7 +144,7 @@ unsigned char tetengo_trie_storage_checkAt(const tetengo_trie_storage_t* p_stora
143144 \retval true On no error.
144145 \retval false Otherwise.
145146*/
146- bool tetengo_trie_storage_setCheckAt (tetengo_trie_storage_t * p_storage , size_t base_check_index , unsigned char check );
147+ bool tetengo_trie_storage_setCheckAt (tetengo_trie_storage_t * p_storage , size_t base_check_index , uint8_t check );
147148
148149/*!
149150 \brief Returns the value count.
0 commit comments