+2001-06-10 Bruno Haible <haible@clisp.cons.org>
+
+ * message.c (message_alloc): Cast xmalloc return value.
+ (message_list_alloc): Likewise.
+ (message_list_list_alloc): Likewise.
+ (msgdomain_alloc): Likewise.
+ (msgdomain_list_alloc): Likewise.
+ * msgunfmt.c (string32): Likewise.
+ * po.c (po_alloc): Likewise.
+ * str-list.c (string_list_concat): Likewise.
+ (string_list_join): Likewise.
+
2001-06-10 Bruno Haible <haible@clisp.cons.org>
* message.h (message_ty): New field 'tmp'.
{
message_ty *mp;
- mp = xmalloc (sizeof (message_ty));
+ mp = (message_ty *) xmalloc (sizeof (message_ty));
mp->msgid = msgid;
mp->msgid_plural = (msgid_plural != NULL ? xstrdup (msgid_plural) : NULL);
mp->msgstr = msgstr;
{
message_list_ty *mlp;
- mlp = xmalloc (sizeof (message_list_ty));
+ mlp = (message_list_ty *) xmalloc (sizeof (message_list_ty));
mlp->nitems = 0;
mlp->nitems_max = 0;
mlp->item = NULL;
{
message_list_list_ty *mllp;
- mllp = xmalloc (sizeof (message_list_list_ty));
+ mllp = (message_list_list_ty *) xmalloc (sizeof (message_list_list_ty));
mllp->nitems = 0;
mllp->nitems_max = 0;
mllp->item = NULL;
msgdomain_alloc (domain)
const char *domain;
{
- msgdomain_ty * mdp;
+ msgdomain_ty *mdp;
- mdp = xmalloc (sizeof (msgdomain_ty));
+ mdp = (msgdomain_ty *) xmalloc (sizeof (msgdomain_ty));
mdp->domain = domain;
mdp->messages = message_list_alloc ();
return mdp;
{
msgdomain_list_ty *mdlp;
- mdlp = xmalloc (sizeof (msgdomain_list_ty));
+ mdlp = (msgdomain_list_ty *) xmalloc (sizeof (msgdomain_list_ty));
/* Put the default domain first, so that when we output it,
we can omit the 'domain' directive. */
mdlp->nitems = 1;
mdlp->nitems_max = 1;
- mdlp->item = xmalloc (mdlp->nitems_max * sizeof (msgdomain_ty *));
+ mdlp->item =
+ (msgdomain_ty **) xmalloc (mdlp->nitems_max * sizeof (msgdomain_ty *));
mdlp->item[0] = msgdomain_alloc (MESSAGE_DOMAIN_DEFAULT);
return mdlp;
}
/* Allocate memory for the string to be read into. Leave space for
the NUL on the end. */
- buffer = xmalloc (length + 1);
+ buffer = (char *) xmalloc (length + 1);
/* Read in the string. Complain if there is an error or it comes up
short. Add the NUL ourselves. */
{
po_ty *pop;
- pop = xmalloc (pomp->size);
+ pop = (po_ty *) xmalloc (pomp->size);
pop->method = pomp;
if (pomp->constructor)
pomp->constructor (pop);
len = 1;
for (j = 0; j < slp->nitems; ++j)
len += strlen (slp->item[j]);
- result = xmalloc (len);
+ result = (char *) xmalloc (len);
pos = 0;
for (j = 0; j < slp->nitems; ++j)
{
++len;
len += strlen (slp->item[j]);
}
- result = xmalloc (len);
+ result = (char *) xmalloc (len);
pos = 0;
for (j = 0; j < slp->nitems; ++j)
{