+2001-04-30 Bruno Haible <haible@clisp.cons.org>
+
+ * message.h (message_alloc): Add const to prototype.
+ * message.c (message_alloc): Add const to argument type.
+ * msgcmp.c (compare_class_ty): Add const to 'domain' field.
+ * xgettext.c (default_domain): Add const.
+ (msgstr_prefix): Likewise.
+ (msgstr_suffix): Likewise.
+ (main): Add const to 'file_name' variable.
+
2001-04-29 Bruno Haible <haible@clisp.cons.org>
* read-po.h: New file.
message_ty *
message_alloc (msgid, msgid_plural)
- char *msgid;
+ const char *msgid;
const char *msgid_plural;
{
message_ty *mp;
int obsolete;
};
-message_ty *message_alloc PARAMS ((char *msgid, const char *msgid_plural));
+message_ty *message_alloc PARAMS ((const char *msgid,
+ const char *msgid_plural));
void message_free PARAMS ((message_ty *));
message_variant_ty *message_variant_search PARAMS ((message_ty *mp,
PO_BASE_TY
/* Name of domain we are currently examining. */
- char *domain;
+ const char *domain;
/* List of domains already appeared in the current file. */
string_list_ty *domain_list;
static char *comment_tag;
/* Name of default domain file. If not set defaults to messages.po. */
-static char *default_domain;
+static const char *default_domain;
/* If called with --debug option the output reflects whether format
string recognition is done automatically or forced by the user. */
static int foreign_user;
/* String used as prefix for msgstr. */
-static char *msgstr_prefix;
+static const char *msgstr_prefix;
/* String used as suffix for msgstr. */
-static char *msgstr_suffix;
+static const char *msgstr_suffix;
/* Directory in which output files are created. */
static char *output_dir;
int join_existing = 0;
int sort_by_msgid = 0;
int sort_by_filepos = 0;
- char *file_name;
+ const char *file_name;
const char *files_from = NULL;
string_list_ty *file_list;
char *output_file = NULL;