+2001-11-17 Bruno Haible <haible@clisp.cons.org>
+
+ * message.h (msgdomain_list_sublist): Change last argument to bool.
+ * message.c (msgdomain_list_sublist): Likewise.
+ * msgcmp.c (compare): Update msgdomain_list_sublist calls.
+ (compare_constructor, compare_directive_message): Likewise.
+ * msgl-cat.c (catenate_msgdomain_list): Likewise.
+ * msgmerge.c (merge): Likewise.
+ * read-po.c (readall_constructor, readall_directive_message): Likewise.
+
2001-11-17 Bruno Haible <haible@clisp.cons.org>
* msgfmt.c (format_directive_message): Finish 2001-08-30 patch.
msgdomain_list_sublist (mdlp, domain, create)
msgdomain_list_ty *mdlp;
const char *domain;
- int create;
+ bool create;
{
size_t j;
msgdomain_list_ty *mdlp2));
extern message_list_ty *
msgdomain_list_sublist PARAMS ((msgdomain_list_ty *mdlp,
- const char *domain, int create));
+ const char *domain, bool create));
extern message_ty *
msgdomain_list_search PARAMS ((msgdomain_list_ty *mdlp,
const char *msgid));
#include <getopt.h>
#include <limits.h>
+#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <locale.h>
message_list_ty *refmlp = ref->item[k]->messages;
message_list_ty *defmlp;
- defmlp = msgdomain_list_sublist (def, domain, 0);
+ defmlp = msgdomain_list_sublist (def, domain, false);
if (defmlp == NULL)
defmlp = empty_list;
this->mdlp = msgdomain_list_alloc ();
this->domain = MESSAGE_DOMAIN_DEFAULT;
- this->mlp = msgdomain_list_sublist (this->mdlp, this->domain, 1);
+ this->mlp = msgdomain_list_sublist (this->mdlp, this->domain, true);
}
message_ty *mp;
/* Select the appropriate sublist of this->mdlp. */
- this->mlp = msgdomain_list_sublist (this->mdlp, this->domain, 1);
+ this->mlp = msgdomain_list_sublist (this->mdlp, this->domain, true);
/* See if this message ID has been seen before. */
mp = message_list_search (this->mlp, msgid);
/* Specification. */
#include "msgl-cat.h"
+#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
message_list_ty *mlp = mdlp->item[k]->messages;
message_list_ty *total_mlp;
- total_mlp = msgdomain_list_sublist (total_mdlp, domain, 1);
+ total_mlp = msgdomain_list_sublist (total_mdlp, domain, true);
for (j = 0; j < mlp->nitems; j++)
{
#include <getopt.h>
#include <limits.h>
+#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <locale.h>
{
const char *domain = ref->item[k]->domain;
message_list_ty *refmlp = ref->item[k]->messages;
- message_list_ty *resultmlp = msgdomain_list_sublist (result, domain, 1);
+ message_list_ty *resultmlp =
+ msgdomain_list_sublist (result, domain, true);
- definitions->item[0] = msgdomain_list_sublist (def, domain, 0);
+ definitions->item[0] = msgdomain_list_sublist (def, domain, false);
if (definitions->item[0] == NULL)
definitions->item[0] = empty_list;
if (k > 0 || defmlp->nitems > 0)
{
message_list_ty *resultmlp =
- msgdomain_list_sublist (result, domain, 1);
+ msgdomain_list_sublist (result, domain, true);
definitions->item[0] = defmlp;
mp = message_copy (defmsg);
mp->obsolete = true;
- message_list_append (msgdomain_list_sublist (result, domain, 1),
+ message_list_append (msgdomain_list_sublist (result, domain, true),
mp);
stats.obsolete++;
}
/* Specification. */
#include "read-po.h"
+#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
this->mdlp = msgdomain_list_alloc ();
this->domain = MESSAGE_DOMAIN_DEFAULT;
- this->mlp = msgdomain_list_sublist (this->mdlp, this->domain, 1);
+ this->mlp = msgdomain_list_sublist (this->mdlp, this->domain, true);
this->comment = NULL;
this->comment_dot = NULL;
this->filepos_count = 0;
size_t j, i;
/* Select the appropriate sublist of this->mdlp. */
- this->mlp = msgdomain_list_sublist (this->mdlp, this->domain, 1);
+ this->mlp = msgdomain_list_sublist (this->mdlp, this->domain, true);
if (allow_duplicates && msgid[0] != '\0')
/* Doesn't matter if this message ID has been seen before. */