diff options
author | Ran Benita <ran234@gmail.com> | 2014-10-07 23:42:08 +0300 |
---|---|---|
committer | Ran Benita <ran234@gmail.com> | 2014-10-08 00:03:34 +0300 |
commit | 8a0acf2c67633a5569124d6928c17c9a885949a5 (patch) | |
tree | eaf32e8d8ab0bfb4edcd9200dcbddc6b6dc4ff0a /src/compose | |
parent | 8d58e250b005644f5fcaf60c9e6692caf707ef42 (diff) | |
download | xorg-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.c | 2 |
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; } |