summaryrefslogtreecommitdiffstats
path: root/gettext-tools/src/write-po.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2006-11-06 20:15:10 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:14:19 +0200
commite86f6c583e542d6a1d2d2b5f6bfaa5c155654f0f (patch)
tree160564919f1fea7fbfa5d4a5fcd294867012ca6a /gettext-tools/src/write-po.c
parent9484d0c4feb9cc4efe47f69967b406e2b960596b (diff)
downloadexternal_gettext-e86f6c583e542d6a1d2d2b5f6bfaa5c155654f0f.zip
external_gettext-e86f6c583e542d6a1d2d2b5f6bfaa5c155654f0f.tar.gz
external_gettext-e86f6c583e542d6a1d2d2b5f6bfaa5c155654f0f.tar.bz2
New macros XMALLOC, XNMALLOC.
Diffstat (limited to 'gettext-tools/src/write-po.c')
-rw-r--r--gettext-tools/src/write-po.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gettext-tools/src/write-po.c b/gettext-tools/src/write-po.c
index 2d8b49d..4db0972 100644
--- a/gettext-tools/src/write-po.c
+++ b/gettext-tools/src/write-po.c
@@ -536,8 +536,8 @@ wrap (const message_ty *mp, FILE *fp, const char *line_prefix, int extra_indent,
}
}
}
- portion = (char *) xmalloc (portion_len);
- overrides = (char *) xmalloc (portion_len);
+ portion = XNMALLOC (portion_len, char);
+ overrides = XNMALLOC (portion_len, char);
memset (overrides, UC_BREAK_UNDEFINED, portion_len);
for (ep = s, pp = portion, op = overrides; ep < es; ep++)
{
@@ -663,7 +663,7 @@ internationalized messages should not contain the `\\%c' escape sequence"),
if (es > s && es[-1] == '\n')
overrides[portion_len - 2] = UC_BREAK_PROHIBITED;
- linebreaks = (char *) xmalloc (portion_len);
+ linebreaks = XNMALLOC (portion_len, char);
/* Subsequent lines after a break are all indented.
See INDENT-S. */