mirror of
https://github.com/rafagafe/tiny-json.git
synced 2024-11-17 03:35:29 +00:00
Comments refactor.
This commit is contained in:
parent
fb3ef655bd
commit
cd6b0a0749
@ -161,9 +161,9 @@ static char* _textValue( char* ptr, json_t* property ) {
|
||||
}
|
||||
|
||||
/** Compare two strings until get the null character in the second one.
|
||||
* @param ptr
|
||||
* @param str
|
||||
* @retval
|
||||
* @param ptr sub string
|
||||
* @param str main string
|
||||
* @retval Pointer to next chraracter.
|
||||
* @retval Null pointer if any error occur. */
|
||||
static char* _checkStr( char* ptr, char const* str ) {
|
||||
while( *str )
|
||||
|
@ -47,8 +47,8 @@ typedef struct json_s {
|
||||
|
||||
/** Parse a string to get a json.
|
||||
* @param str String pointer with a JSON object. It will be modified.
|
||||
* @param mem
|
||||
* @param qty
|
||||
* @param mem Array of json properties to allocate.
|
||||
* @param qty Number of elementes of mem.
|
||||
* @retval Null pointer if any was wrong in the parse process.
|
||||
* @retval If the parser process was successfully a valid handler of a json.
|
||||
* This property is always unnamed and its type is JSON_OBJ. */
|
||||
@ -122,4 +122,3 @@ static inline int64_t json_getInteger( json_t const* property ) {
|
||||
#endif
|
||||
|
||||
#endif /* _TINY_JSON_H_ */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user