summaryrefslogtreecommitdiff
path: root/src/compose
diff options
context:
space:
mode:
authorRan Benita <ran234@gmail.com>2014-10-07 23:42:08 +0300
committerRan Benita <ran234@gmail.com>2014-10-08 00:03:34 +0300
commit8a0acf2c67633a5569124d6928c17c9a885949a5 (patch)
treeeaf32e8d8ab0bfb4edcd9200dcbddc6b6dc4ff0a /src/compose
parent8d58e250b005644f5fcaf60c9e6692caf707ef42 (diff)
downloadxorg-lib-libxkbcommon-8a0acf2c67633a5569124d6928c17c9a885949a5.tar.gz
scanner-utils: optimize one-line comments
Compose files have a lot of those. Signed-off-by: Ran Benita <ran234@gmail.com>
Diffstat (limited to 'src/compose')
-rw-r--r--src/compose/parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compose/parser.c b/src/compose/parser.c
index 29229f3..ff0b006 100644
--- a/src/compose/parser.c
+++ b/src/compose/parser.c
@@ -134,7 +134,7 @@ skip_more_whitespace_and_comments:
/* Skip comments. */
if (chr(s, '#')) {
- while (!eof(s) && !eol(s)) next(s);
+ skip_to_eol(s);
goto skip_more_whitespace_and_comments;
}