LC_IDENTIFICATION-optional-fields.diff

From: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Date: Fri, 11 Nov 2022 23:32:07 +0800
Subject: LC_IDENTIFICATION-optional-fields
This commit is contained in:
denghao 2022-11-10 04:59:46 +03:00
parent 7155df664b
commit 064770fe32
1 changed files with 6 additions and 3 deletions

View File

@ -144,6 +144,9 @@ No definition for %s category found"), "LC_IDENTIFICATION");
#cat); \
identification->cat = ""; \
}
#define TEST_ELEM_OPT(cat) \
if (identification->cat == NULL) \
identification->cat = ""; \
TEST_ELEM (title);
TEST_ELEM (source);
@ -154,9 +157,9 @@ No definition for %s category found"), "LC_IDENTIFICATION");
TEST_ELEM (fax);
TEST_ELEM (language);
TEST_ELEM (territory);
TEST_ELEM (audience);
TEST_ELEM (application);
TEST_ELEM (abbreviation);
TEST_ELEM_OPT (audience);
TEST_ELEM_OPT (application);
TEST_ELEM_OPT (abbreviation);
TEST_ELEM (revision);
TEST_ELEM (date);