From 02de53d767b20bab1517b4e8a3e7eb3b9e7f15be Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Mon, 7 Jun 2010 22:43:01 +0100 Subject: Lazy keysym parsing (avoid XStringToKeysym) Instead of calling XStringToKeysym on every keysym we parse, store it as a string until we need to store it in an actual keymap. Signed-off-by: Daniel Stone --- parseutils.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'parseutils.h') diff --git a/parseutils.h b/parseutils.h index 73a0ec8..e16adff 100644 --- a/parseutils.h +++ b/parseutils.h @@ -121,7 +121,7 @@ extern ExprDef *ActionCreate(Atom /* name */ , ExprDef * /* args */ ); -extern ExprDef *CreateKeysymList(KeySym /* sym */ +extern ExprDef *CreateKeysymList(char * /* sym */ ); extern ShapeDef *ShapeDeclCreate(Atom /* name */ , @@ -161,7 +161,7 @@ extern DoodadDef *DoodadCreate(unsigned /* type */ , ); extern ExprDef *AppendKeysymList(ExprDef * /* list */ , - KeySym /* sym */ + char * /* sym */ ); extern int LookupKeysym(char * /* str */ , -- cgit v1.2.3