|
7 | 7 | #if !defined(TETENGO_JSON_READER_H) |
8 | 8 | #define TETENGO_JSON_READER_H |
9 | 9 |
|
| 10 | +#include <stdbool.h> |
10 | 11 | #include <stddef.h> |
11 | 12 |
|
12 | 13 |
|
@@ -93,24 +94,24 @@ void tetengo_json_reader_destroy(const tetengo_json_reader_t* p_reader); |
93 | 94 | \param p_line_counting_reader A pointer to a line counting reader. |
94 | 95 | \param p_location The storage for a location. |
95 | 96 |
|
96 | | - \retval non-zero When a location has been stored. |
97 | | - \retval 0 When p_line_counting_reader is NULL or not a line counting reader. |
98 | | - And/or when p_location is NULL. |
99 | | - And/or when current position is beyond the termination point. |
| 97 | + \retval true When a location has been stored. |
| 98 | + \retval false When p_line_counting_reader is NULL or not a line counting reader. |
| 99 | + And/or when p_location is NULL. |
| 100 | + And/or when current position is beyond the termination point. |
100 | 101 | */ |
101 | | -int tetengo_json_reader_getLocation( |
| 102 | +bool tetengo_json_reader_getLocation( |
102 | 103 | const tetengo_json_reader_t* p_line_counting_reader, |
103 | 104 | tetengo_json_location_t* p_location); |
104 | 105 |
|
105 | 106 | /*! |
106 | | - \brief Returns non-zero when the next character exists. |
| 107 | + \brief Returns true when the next character exists. |
107 | 108 |
|
108 | 109 | \param p_reader A pointer to a reader. |
109 | 110 |
|
110 | | - \retval non-zero When the next character exists. |
111 | | - \retval 0 Otherwise. |
| 111 | + \retval true When the next character exists. |
| 112 | + \retval false Otherwise. |
112 | 113 | */ |
113 | | -int tetengo_json_reader_hasNext(const tetengo_json_reader_t* p_reader); |
| 114 | +bool tetengo_json_reader_hasNext(const tetengo_json_reader_t* p_reader); |
114 | 115 |
|
115 | 116 | /*! |
116 | 117 | \brief Returns the current character. |
|
0 commit comments