]> git.ipfire.org Git - thirdparty/gettext.git/commit
xgettext: Desktop: Correct the line numbers in the output and in error messages.
authorBruno Haible <bruno@clisp.org>
Sun, 13 Oct 2024 18:18:15 +0000 (20:18 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 13 Oct 2024 18:49:37 +0000 (20:49 +0200)
commit3f5a362d35f04be9978a939edcb68092429c55c8
tree64b311a91901ad1d12acfb4fd78289477bbe397d
parent46e8f5c6adbc6797b07ce4d07ec17c2fde036170
xgettext: Desktop: Correct the line numbers in the output and in error messages.

* gettext-tools/src/read-desktop.c (struct token_ty): Add a 'lineno' field.
(desktop_lex): Correct the line numbers in error messages. For a token of type
token_type_pair, store the line number.
(desktop_parse): Pass the line number from the token to
desktop_reader_handle_pair.
* gettext-tools/tests/xgettext-desktop-1: Update expected output.
* gettext-tools/tests/xgettext-desktop-2: Likewise.
* NEWS: Mention the change.
NEWS
gettext-tools/src/read-desktop.c
gettext-tools/tests/xgettext-desktop-1
gettext-tools/tests/xgettext-desktop-2