summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/misc.c b/misc.c
index ceae7f5..d1dc832 100644
--- a/misc.c
+++ b/misc.c
@@ -49,6 +49,8 @@ ProcessIncludeFile(IncludeStmt * stmt,
rtrn = XkbFindFileInCache(stmt->file, file_type, &stmt->path);
if (rtrn == NULL)
{
+ /* file not in cache, open it, parse it and store it in cache for next
+ time. */
file = XkbFindFileInPath(stmt->file, file_type, &stmt->path);
if (file == NULL)
{
@@ -62,6 +64,7 @@ ProcessIncludeFile(IncludeStmt * stmt,
setScanState(stmt->file, 1);
if (debugFlags & 2)
INFO1("About to parse include file %s\n", stmt->file);
+ /* parse the file */
if ((XKBParseFile(file, &rtrn) == 0) || (rtrn == NULL))
{
setScanState(oldFile, oldLine);