summaryrefslogtreecommitdiff
path: root/console-client/xkb/lex.l
diff options
context:
space:
mode:
authorDiego Nieto Cid <dnietoc@gmail.com>2010-07-26 13:18:47 -0300
committerDiego Nieto Cid <dnietoc@gmail.com>2011-04-08 14:36:19 -0300
commit8ff4dc8b26e35c192d090ad1b058493ca8e7269e (patch)
tree1ea9e6df92f2c4058442f5bbddf11436edbf82a2 /console-client/xkb/lex.l
parenta9a5bcb152def4c737abb84a665232fadfb5e5b2 (diff)
Add debugging messages.
* console-client/xkb/lex.l(include_file): Log file changes. * console-client/xkb/parser.y(key_set_keysym): Log symbol associations. (include_section): Log section being read. (symbolssect,keycodesect,key_new): Log current key. * console-client/xkb/xkbdata.c(keyname_add): Log keyname, keycode and hash. (set_rmod_keycode): Log modifier, keyname and keycode.
Diffstat (limited to 'console-client/xkb/lex.l')
-rw-r--r--console-client/xkb/lex.l3
1 files changed, 3 insertions, 0 deletions
diff --git a/console-client/xkb/lex.l b/console-client/xkb/lex.l
index 8887e7a5..71d6dfc9 100644
--- a/console-client/xkb/lex.l
+++ b/console-client/xkb/lex.l
@@ -323,6 +323,8 @@ overlay2 { yylval.val = 2; return OVERLAY; }
{
YY_BUFFER_STATE buffer;
+ debug_printf ("including file %s\n.", fname);
+
if (include_stack_ptr >= MAX_INCLUDE_DEPTH)
{
fprintf (stderr, "Includes nested too deeply\n");
@@ -358,6 +360,7 @@ overlay2 { yylval.val = 2; return OVERLAY; }
lineno = include_stack[include_stack_ptr].currline;
filename = include_stack[include_stack_ptr].filename;
yy_switch_to_buffer (include_stack[include_stack_ptr].buffer);
+ debug_printf ("closing file. going back to %s.\n", filename);
return (0);
}
}