1 /* GNU gettext - internationalization aids
2 Copyright (C) 1995-1998, 2000-2003, 2006, 2008, 2015 Free Software
5 This file was written by Peter Miller <millerp@canb.auug.org.au>
7 This program is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>. */
34 enum filepos_comment_type
41 /* These functions are used to output a #, flags line. */
43 make_format_description_string (enum is_format is_format,
44 const char *lang, bool debug);
46 significant_format_p (enum is_format is_format);
49 make_range_description_string (struct argument_range range);
51 /* These functions output parts of a message, as comments. */
53 message_print_comment (const message_ty *mp, ostream_t stream);
55 message_print_comment_dot (const message_ty *mp, ostream_t stream);
57 message_print_comment_filepos (const message_ty *mp, ostream_t stream,
58 bool uniforum, size_t page_width);
60 message_print_comment_flags (const message_ty *mp, ostream_t stream,
63 /* These functions set some parameters for use by 'output_format_po.print'. */
65 message_page_width_ignore (void);
67 message_print_style_indent (void);
69 message_print_style_uniforum (void);
71 message_print_style_escape (bool flag);
73 message_print_style_filepos (enum filepos_comment_type type);
75 /* --add-location argument handling. Return an error indicator. */
76 extern bool handle_filepos_comment_option (const char *option);
79 /* Describes a PO file in .po syntax. */
80 extern DLL_VARIABLE const struct catalog_output_format output_format_po;
88 #endif /* _WRITE_PO_H */