[map] Make hb_map_set() return bool
This commit is contained in:
parent
face7cf55d
commit
7bf1980146
|
@ -170,12 +170,12 @@ hb_map_allocation_successful (const hb_map_t *map)
|
||||||
*
|
*
|
||||||
* Since: REPLACEME
|
* Since: REPLACEME
|
||||||
**/
|
**/
|
||||||
void
|
hb_bool_t
|
||||||
hb_map_set (hb_map_t *map,
|
hb_map_set (hb_map_t *map,
|
||||||
hb_codepoint_t key,
|
hb_codepoint_t key,
|
||||||
hb_codepoint_t value)
|
hb_codepoint_t value)
|
||||||
{
|
{
|
||||||
map->set (key, value);
|
return map->set (key, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -80,14 +80,14 @@ hb_map_allocation_successful (const hb_map_t *map);
|
||||||
hb_map_is_empty (const hb_map_t *map);
|
hb_map_is_empty (const hb_map_t *map);
|
||||||
|
|
||||||
HB_EXTERN unsigned int
|
HB_EXTERN unsigned int
|
||||||
hb_set_get_population (const hb_set_t *set);
|
hb_map_get_population (const hb_map_t *map);
|
||||||
|
|
||||||
HB_EXTERN hb_bool_t
|
HB_EXTERN hb_bool_t
|
||||||
hb_map_is_equal (const hb_map_t *map,
|
hb_map_is_equal (const hb_map_t *map,
|
||||||
const hb_map_t *other);
|
const hb_map_t *other);
|
||||||
*/
|
*/
|
||||||
|
|
||||||
HB_EXTERN void
|
HB_EXTERN hb_bool_t
|
||||||
hb_map_set (hb_map_t *map,
|
hb_map_set (hb_map_t *map,
|
||||||
hb_codepoint_t key,
|
hb_codepoint_t key,
|
||||||
hb_codepoint_t value);
|
hb_codepoint_t value);
|
||||||
|
|
Loading…
Reference in New Issue