@@ -269,8 +269,7 @@ void qtreetbl_set_compare(qtreetbl_t *tbl,
269
269
bool qtreetbl_put (qtreetbl_t * tbl , const char * name , const void * data ,
270
270
size_t datasize ) {
271
271
return qtreetbl_putobj (tbl ,
272
- name , (name != NULL ) ? (strlen (name ) + 1 ) : 0 ,
273
- data , datasize );
272
+ name , (name != NULL ) ? (strlen (name ) + 1 ) : 0 , data , datasize );
274
273
}
275
274
276
275
/**
@@ -287,8 +286,8 @@ bool qtreetbl_put(qtreetbl_t *tbl, const char *name, const void *data,
287
286
*/
288
287
bool qtreetbl_putstr (qtreetbl_t * tbl , const char * name , const char * str ) {
289
288
return qtreetbl_putobj (tbl ,
290
- name , (name != NULL ) ? (strlen (name ) + 1 ) : 0 ,
291
- str , (str != NULL ) ? (strlen (str ) + 1 ) : 0 );
289
+ name , (name != NULL ) ? (strlen (name ) + 1 ) : 0 ,
290
+ str , (str != NULL ) ? (strlen (str ) + 1 ) : 0 );
292
291
}
293
292
294
293
/**
@@ -393,8 +392,7 @@ bool qtreetbl_putobj(qtreetbl_t *tbl, const void *name, size_t namesize,
393
392
void * qtreetbl_get (qtreetbl_t * tbl , const char * name , size_t * datasize ,
394
393
bool newmem ) {
395
394
return qtreetbl_getobj (tbl ,
396
- name , (name != NULL ) ? (strlen (name ) + 1 ) : 0 ,
397
- datasize , newmem );
395
+ name , (name != NULL ) ? (strlen (name ) + 1 ) : 0 , datasize , newmem );
398
396
}
399
397
400
398
/**
@@ -418,8 +416,7 @@ void *qtreetbl_get(qtreetbl_t *tbl, const char *name, size_t *datasize,
418
416
*/
419
417
char * qtreetbl_getstr (qtreetbl_t * tbl , const char * name , const bool newmem ) {
420
418
return qtreetbl_getobj (tbl ,
421
- name , (name != NULL ) ? (strlen (name ) + 1 ) : 0 ,
422
- NULL , newmem );
419
+ name , (name != NULL ) ? (strlen (name ) + 1 ) : 0 , NULL , newmem );
423
420
}
424
421
425
422
/**
@@ -1307,7 +1304,7 @@ static void free_objs(qtreetbl_obj_t *obj) {
1307
1304
if (obj == NULL ) {
1308
1305
return ;
1309
1306
}
1310
-
1307
+
1311
1308
free_objs (obj -> left );
1312
1309
free_objs (obj -> right );
1313
1310
0 commit comments