Changeset 0f75a63 in mainline
- Timestamp:
- 2020-07-05T21:01:49Z (4 years ago)
- Children:
- 6efe1b78
- Parents:
- 0c01270
- git-author:
- Matthieu Riolo <matthieu.riolo@…> (2019-08-23 22:04:34)
- git-committer:
- Matthieu Riolo <matthieu.riolo@…> (2020-07-05 21:01:49)
- Location:
- uspace/lib/conf/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/conf/src/configuration.c
r0c01270 r0f75a63 138 138 { 139 139 bool value; 140 if (str icmp(string, "true") == 0 ||141 str icmp(string, "yes") == 0 ||142 str icmp(string, "1") == 0) {140 if (str_casecmp(string, "true") == 0 || 141 str_casecmp(string, "yes") == 0 || 142 str_casecmp(string, "1") == 0) { 143 143 value = true; 144 } else if (str icmp(string, "false") == 0 ||145 str icmp(string, "no") == 0 ||146 str icmp(string, "0") == 0) {144 } else if (str_casecmp(string, "false") == 0 || 145 str_casecmp(string, "no") == 0 || 146 str_casecmp(string, "0") == 0) { 147 147 value = false; 148 148 } else { -
uspace/lib/conf/src/ini.c
r0c01270 r0f75a63 75 75 } 76 76 77 static size_t ini_section_ht_key_hash( void *key)77 static size_t ini_section_ht_key_hash(const void *key) 78 78 { 79 79 /* Nameless default section */ … … 91 91 } 92 92 93 static bool ini_section_ht_key_equal( void *key, const ht_link_t *item)93 static bool ini_section_ht_key_equal(const void *key, const ht_link_t *item) 94 94 { 95 95 const char *name = key; … … 119 119 } 120 120 121 static size_t ini_item_ht_key_hash( void *key)121 static size_t ini_item_ht_key_hash(const void *key) 122 122 { 123 123 return hash_string((const char *)key); … … 131 131 } 132 132 133 static bool ini_item_ht_key_equal( void *key, const ht_link_t *item)133 static bool ini_item_ht_key_equal(const void *key, const ht_link_t *item) 134 134 { 135 135 return str_cmp((const char *)key, … … 501 501 { 502 502 iterator->cur_item = 503 hash_table_find_next(iterator->table, iterator-> cur_item);503 hash_table_find_next(iterator->table, iterator->first_item, iterator->cur_item); 504 504 iterator->incremented = true; 505 505 }
Note:
See TracChangeset
for help on using the changeset viewer.