diff options
author | Ran Benita <ran234@gmail.com> | 2013-07-21 16:41:27 +0300 |
---|---|---|
committer | Ran Benita <ran234@gmail.com> | 2013-07-21 17:07:41 +0300 |
commit | 7e0ae4b4d5bfcebd7bf4cefcefe681ea7ecc5f61 (patch) | |
tree | bdd39e92c5d9dacd6facc7d5725d4253bcdfa917 /src/atom.h | |
parent | 9cd29453aec206727adeafe0c27d629d61fe1310 (diff) | |
download | xorg-lib-libxkbcommon-7e0ae4b4d5bfcebd7bf4cefcefe681ea7ecc5f61.tar.gz |
atom: allow interning non-NUL-terminated strings
We need this later. The strlen was calculated anyway, so no loss here.
Signed-off-by: Ran Benita <ran234@gmail.com>
Diffstat (limited to 'src/atom.h')
-rw-r--r-- | src/atom.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -37,10 +37,11 @@ void atom_table_free(struct atom_table *table); xkb_atom_t -atom_lookup(struct atom_table *table, const char *string); +atom_lookup(struct atom_table *table, const char *string, size_t len); xkb_atom_t -atom_intern(struct atom_table *table, const char *string, bool steal); +atom_intern(struct atom_table *table, const char *string, size_t len, + bool steal); char * atom_strdup(struct atom_table *table, xkb_atom_t atom); |