summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--console-client/xkb/lex.l12
1 files changed, 12 insertions, 0 deletions
diff --git a/console-client/xkb/lex.l b/console-client/xkb/lex.l
index 379ce692..8887e7a5 100644
--- a/console-client/xkb/lex.l
+++ b/console-client/xkb/lex.l
@@ -368,3 +368,15 @@ overlay2 { yylval.val = 2; return OVERLAY; }
fprintf (stderr, "%s:%d: %s\n", filename, lineno, s);
// error_at_line (0, 1, filename, lineno, "foo %d\n", 2);
}
+
+ int
+ scanner_get_current_location()
+ {
+ return lineno;
+ }
+
+ const char*
+ scanner_get_current_file()
+ {
+ return filename;
+ }