diff options
author | Daiki Ueno <ueno@gnu.org> | 2014-05-02 18:13:33 +0900 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2014-05-02 18:13:33 +0900 |
commit | ec11c813a4f59d2e30859160423ae4792c60d53d (patch) | |
tree | 41980bfb36673a8132ed89c47a2b39977325b9a9 | |
parent | 3fc4eb9cfc22e1b8ed84ba09e8efdff663029171 (diff) | |
download | external_gettext-ec11c813a4f59d2e30859160423ae4792c60d53d.zip external_gettext-ec11c813a4f59d2e30859160423ae4792c60d53d.tar.gz external_gettext-ec11c813a4f59d2e30859160423ae4792c60d53d.tar.bz2 |
xgettext: Add more comments to mixed_string_buffer usage
-rw-r--r-- | gettext-tools/src/x-javascript.c | 1 | ||||
-rw-r--r-- | gettext-tools/src/x-python.c | 1 | ||||
-rw-r--r-- | gettext-tools/src/x-vala.c | 4 |
3 files changed, 6 insertions, 0 deletions
diff --git a/gettext-tools/src/x-javascript.c b/gettext-tools/src/x-javascript.c index 45f67e2..237b68d 100644 --- a/gettext-tools/src/x-javascript.c +++ b/gettext-tools/src/x-javascript.c @@ -1204,6 +1204,7 @@ phase5_get (token_ty *tp) { int uc = phase7_getuc (quote_char); + /* Keep line_number in sync. */ bp->line_number = line_number; if (uc == P7_EOF || uc == P7_STRING_END) diff --git a/gettext-tools/src/x-python.c b/gettext-tools/src/x-python.c index da74683..ee92a8c 100644 --- a/gettext-tools/src/x-python.c +++ b/gettext-tools/src/x-python.c @@ -1409,6 +1409,7 @@ phase5_get (token_ty *tp) int uc = phase7_getuc (quote_char, triple, interpret_ansic, interpret_unicode, &backslash_counter); + /* Keep line_number in sync. */ bp->line_number = line_number; if (uc == P7_EOF || uc == P7_STRING_END) diff --git a/gettext-tools/src/x-vala.c b/gettext-tools/src/x-vala.c index cee1deb..6bf5300 100644 --- a/gettext-tools/src/x-vala.c +++ b/gettext-tools/src/x-vala.c @@ -885,6 +885,10 @@ phase3_get (token_ty *tp) for (;;) { c = phase7_getc (); + + /* Keep line_number in sync. */ + bp->line_number = line_number; + if (c == P7_NEWLINE) { if (verbatim) |