diff options
author | Peter Hutterer <peter.hutterer@redhat.com> | 2008-08-11 18:01:48 +0930 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@redhat.com> | 2008-08-18 17:40:24 +0930 |
commit | eb18e9176841b3ea64c497f1919686e134713eb6 (patch) | |
tree | a080f6a26fdf8c44f0408ac21d299652cfd41c2a /xkbcomp.c | |
parent | 9b877d83947708259252275e14f6995dcf7c29ce (diff) |
Add some explanatory comments
Diffstat (limited to 'xkbcomp.c')
-rw-r--r-- | xkbcomp.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -868,7 +868,7 @@ extern int yydebug; int main(int argc, char *argv[]) { - FILE *file; + FILE *file; /* input file (or stdin) */ XkbFile *rtrn; XkbFile *mapToUse; int ok; @@ -953,12 +953,12 @@ main(int argc, char *argv[]) { ok = True; setScanState(inputFile, 1); - if ((inputFormat == INPUT_XKB) + if ((inputFormat == INPUT_XKB) /* parse .xkb file */ && (XKBParseFile(file, &rtrn) && (rtrn != NULL))) { fclose(file); mapToUse = rtrn; - if (inputMap != NULL) + if (inputMap != NULL) /* map specified on cmdline? */ { while ((mapToUse) && (!uStringEqual(mapToUse->name, inputMap))) @@ -974,6 +974,7 @@ main(int argc, char *argv[]) } else if (rtrn->common.next != NULL) { + /* look for map with XkbLC_Default flag. */ mapToUse = rtrn; for (; mapToUse; mapToUse = (XkbFile *) mapToUse->common.next) { @@ -1034,7 +1035,7 @@ main(int argc, char *argv[]) break; } } - else if (inputFormat == INPUT_XKM) + else if (inputFormat == INPUT_XKM) /* parse xkm file */ { unsigned tmp; bzero((char *) &result, sizeof(result)); |