diff options
Diffstat (limited to 'gettext-tools/src/message.h')
-rw-r--r-- | gettext-tools/src/message.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/gettext-tools/src/message.h b/gettext-tools/src/message.h index bf2215a..8b9bc3f 100644 --- a/gettext-tools/src/message.h +++ b/gettext-tools/src/message.h @@ -114,6 +114,29 @@ enum is_wrap #endif +/* Kinds of syntax checks which apply to strings. */ +enum syntax_check_type +{ + sc_ellipsis_unicode, + sc_space_ellipsis, + sc_quote_unicode +}; +#define NSYNTAXCHECKS 3 +extern DLL_VARIABLE const char *const syntax_check_name[NSYNTAXCHECKS]; + +/* Is current msgid subject to a syntax check? */ +#if 0 +enum is_syntax_check +{ + undecided, + yes, + no +}; +#else /* HACK - C's enum concept is so stupid */ +#define is_syntax_check is_format +#endif + + struct altstr { const char *msgstr; @@ -175,6 +198,9 @@ struct message_ty /* Do we want the string to be wrapped in the emitted PO file? */ enum is_wrap do_wrap; + /* Do we want to apply extra syntax checks on the string? */ + enum is_syntax_check do_syntax_check[NSYNTAXCHECKS]; + /* The prev_msgctxt, prev_msgid and prev_msgid_plural strings appearing before the message, if present. Generated by msgmerge. */ const char *prev_msgctxt; |