diff options
author | Daiki Ueno <ueno@gnu.org> | 2014-12-08 19:22:16 +0900 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2014-12-09 07:09:04 +0900 |
commit | dee40f0602625f62443c4d715a1b9674742c9a3e (patch) | |
tree | 181edea11b31198ca53afa05fd6a45c8b2919e37 /gettext-tools/tests/ChangeLog | |
parent | 2ff7a10564a2a7b9821a1c9174e314f4cf5f7295 (diff) | |
download | external_gettext-dee40f0602625f62443c4d715a1b9674742c9a3e.zip external_gettext-dee40f0602625f62443c4d715a1b9674742c9a3e.tar.gz external_gettext-dee40f0602625f62443c4d715a1b9674742c9a3e.tar.bz2 |
desktop: Simplify the parsing logic
* read-desktop.h (desktop_reader_class_ty): Rename 'handle_text'
to 'handle_blank'.
(desktop_reader_handle_blank): Rename from
'desktop_reader_handle_text'.
* read-desktop.c (SIZEOF): New macro.
(desktop_reader_handle_blank): Rename from
'desktop_reader_handle_blank'.
(read_until_newline, read_group_name, read_key_name): Remove.
Merge into...
(desktop_lex): ...here.
(desktop_parse): Call 'desktop_lex' instead of read_*. Don't
normalize whitespaces.
(enum token_type_ty): New enum.
(struct token_ty): New struct.
(free_token): New function.
* write-desktop.c (msgfmt_desktop_handle_blank): Rename from
'msgfmt_desktop_handle_text'.
* x-desktop.c: Include "c-ctype.h".
(extract_desktop_handle_comment): Normalize whitespaces here.
(extract_desktop_handle_blank): Rename from
'extract_desktop_handle_text'.
Diffstat (limited to 'gettext-tools/tests/ChangeLog')
0 files changed, 0 insertions, 0 deletions