From c79c80335be8a60e36b5ad21a05ff351d5bfa3f9 Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Sat, 9 Nov 2019 21:25:01 +0200 Subject: atom: combine atom_intern() and atom_lookup() Use an "add" bool parameter instead. This simplifies the code a bit. Signed-off-by: Ran Benita --- src/context-priv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/context-priv.c') diff --git a/src/context-priv.c b/src/context-priv.c index e3ba32d..03324fd 100644 --- a/src/context-priv.c +++ b/src/context-priv.c @@ -52,13 +52,13 @@ xkb_context_failed_include_path_get(struct xkb_context *ctx, xkb_atom_t xkb_atom_lookup(struct xkb_context *ctx, const char *string) { - return atom_lookup(ctx->atom_table, string, strlen(string)); + return atom_intern(ctx->atom_table, string, strlen(string), false); } xkb_atom_t xkb_atom_intern(struct xkb_context *ctx, const char *string, size_t len) { - return atom_intern(ctx->atom_table, string, len); + return atom_intern(ctx->atom_table, string, len, true); } const char * -- cgit v1.2.1