Mercurial > hg > th-libs
comparison th_config.c @ 497:ff3ebe22f6c5
Change int th_get_hex_triplet(const char *str) API to
BOOL th_get_hex_triplet(const char *str, unsigned int *value).
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 25 Dec 2019 11:00:51 +0200 |
parents | 85fa3d333556 |
children | 1dbd9259c3b8 |
comparison
equal
deleted
inserted
replaced
496:8c837a33cfb6 | 497:ff3ebe22f6c5 |
---|---|
505 tmpStr[strPos] = 0; | 505 tmpStr[strPos] = 0; |
506 | 506 |
507 switch (item->type) | 507 switch (item->type) |
508 { | 508 { |
509 case ITEM_HEX_TRIPLET: | 509 case ITEM_HEX_TRIPLET: |
510 *(item->v.val_int) = th_get_hex_triplet(tmpStr); | 510 th_get_hex_triplet(tmpStr, item->v.val_uint); |
511 prevMode = parseMode; | 511 prevMode = parseMode; |
512 parseMode = PM_IDLE; | 512 parseMode = PM_IDLE; |
513 break; | 513 break; |
514 case ITEM_STRING: | 514 case ITEM_STRING: |
515 th_pstr_cpy(item->v.val_str, tmpStr); | 515 th_pstr_cpy(item->v.val_str, tmpStr); |