]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Add a few consts.
authorBruno Haible <bruno@clisp.org>
Mon, 30 Apr 2001 16:55:46 +0000 (16:55 +0000)
committerBruno Haible <bruno@clisp.org>
Mon, 30 Apr 2001 16:55:46 +0000 (16:55 +0000)
src/ChangeLog
src/message.c
src/message.h
src/msgcmp.c
src/xgettext.c

index 39ceab110b18e1afd052d870ac9baed70e3950df..600e74fb313ba5cd5098ecab0a9c2da863f5fbbd 100644 (file)
@@ -1,3 +1,13 @@
+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.
index b819f825a3936a106f453cdce2cb7867e9b918bf..40b754dd59cb732faea75e8a932cede630772d8e 100644 (file)
@@ -73,7 +73,7 @@ parse_c_width_description_string (s)
 
 message_ty *
 message_alloc (msgid, msgid_plural)
-     char *msgid;
+     const char *msgid;
      const char *msgid_plural;
 {
   message_ty *mp;
index af5da2702d1759ac51d51873326fa71c04228538..5770854dec88a980ea379f7fe4d5b339cb6c8b20 100644 (file)
@@ -110,7 +110,8 @@ struct message_ty
   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,
index 983c279d0b88a4476321f7c1382dd74c6ed820fb..ef07b1dbb9209998b1de1f43e82b17a1f44ccc08 100644 (file)
@@ -45,7 +45,7 @@ struct compare_class_ty
   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;
index 231db94ca997590a6d5c9ffa2ea74f71a7e6ef2d..5c451bf3e31ef49aaa305e392c005926b49ffe14 100644 (file)
@@ -71,7 +71,7 @@ static int line_comment;
 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.  */
@@ -91,10 +91,10 @@ static int force_po;
 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;
@@ -207,7 +207,7 @@ main (argc, argv)
   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;