mie: add strict-naming support to mie_name_map
in strict mode, the hint is taken as the required name. if a value already exists with the given name, the operation fails.
This commit is contained in:
@@ -84,7 +84,7 @@ struct mie_value *mie_func_generate_value_name(
|
||||
struct mie_func *func, struct mie_value *val, const char *hint)
|
||||
{
|
||||
struct mie_name *name
|
||||
= mie_name_map_put(func->f_names, &val->v_name, hint);
|
||||
= mie_name_map_put(func->f_names, &val->v_name, hint, 0);
|
||||
return b_unbox(struct mie_value, name, v_name);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user