From 2602f446fa8c620b8c6b5a0cff38d0c6d3150c35 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Thu, 19 Jun 2003 15:09:37 +0000 Subject: [PATCH] Fix compilation errors on AIX 3. --- gettext-tools/src/ChangeLog | 6 ++++++ gettext-tools/src/x-perl.c | 14 +++++++++----- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/gettext-tools/src/ChangeLog b/gettext-tools/src/ChangeLog index 735f12a7f..bcfa0cd47 100644 --- a/gettext-tools/src/ChangeLog +++ b/gettext-tools/src/ChangeLog @@ -1,3 +1,9 @@ +2003-06-19 Bruno Haible + + * x-perl.c (enum string_type_ty): Remove trailing comma. + (interpolate_keywords::enum parser_state): Likewise. + (extract_quotelike_pass3): Cast first argument of u8_uctomb(). + 2003-06-15 Bruno Haible * x-awk.c: Reorder definitions. diff --git a/gettext-tools/src/x-perl.c b/gettext-tools/src/x-perl.c index c402a0941..6152ad052 100644 --- a/gettext-tools/src/x-perl.c +++ b/gettext-tools/src/x-perl.c @@ -445,7 +445,7 @@ enum string_type_ty string_type_q, /* "'..'", "q/.../". */ string_type_qq, /* '"..."', "`...`", "qq/.../", "qx/.../", "". */ - string_type_qr, /* Not supported. */ + string_type_qr /* Not supported. */ }; typedef enum string_type_ty string_type_ty; @@ -880,7 +880,8 @@ extract_quotelike_pass3 (token_ty *tp, int error_level) crs = extract_oct (crs + 1, 3, &oct_number); /* Yes, octal escape sequences in the range 0x100..0x1ff are valid. */ - length = u8_uctomb (buffer + bufpos, oct_number, 2); + length = u8_uctomb ((unsigned char *) (buffer + bufpos), + oct_number, 2); if (length > 0) bufpos += length; } @@ -915,7 +916,8 @@ extract_quotelike_pass3 (token_ty *tp, int error_level) crs = extract_hex (crs, 2, &hex_number); } - length = u8_uctomb (buffer + bufpos, hex_number, 6); + length = u8_uctomb ((unsigned char *) (buffer + bufpos), + hex_number, 6); if (length > 0) bufpos += length; } @@ -948,7 +950,9 @@ extract_quotelike_pass3 (token_ty *tp, int error_level) unicode = unicode_name_character (name); if (unicode != UNINAME_INVALID) { - int length = u8_uctomb (buffer + bufpos, unicode, 6); + int length = + u8_uctomb ((unsigned char *) (buffer + bufpos), + unicode, 6); if (length > 0) bufpos += length; } @@ -1454,7 +1458,7 @@ interpolate_keywords (message_list_ty *mlp, const char *string, int lineno) dquote, squote, barekey, - wait_rbrace, + wait_rbrace } state; token_ty token; -- 2.47.3