summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@redhat.com>2008-08-11 18:01:48 +0930
committerPeter Hutterer <peter.hutterer@redhat.com>2008-08-18 17:40:24 +0930
commiteb18e9176841b3ea64c497f1919686e134713eb6 (patch)
treea080f6a26fdf8c44f0408ac21d299652cfd41c2a /misc.c
parent9b877d83947708259252275e14f6995dcf7c29ce (diff)
Add some explanatory comments
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);