summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2001-12-20 21:51:43 +0000
committerBruno Haible <bruno@clisp.org>2009-06-21 23:53:14 +0200
commit7ffa19f921fdafbab74db16733f8c6e3972f4615 (patch)
treee9e23ba8912ce8c4fe1ff1edc5e11718e9998d94
parentfac25a6c56cc75f2b4771a214f80c0839cb07301 (diff)
downloadexternal_gettext-7ffa19f921fdafbab74db16733f8c6e3972f4615.zip
external_gettext-7ffa19f921fdafbab74db16733f8c6e3972f4615.tar.gz
external_gettext-7ffa19f921fdafbab74db16733f8c6e3972f4615.tar.bz2
More AIX related portability.
-rw-r--r--src/ChangeLog6
-rw-r--r--src/x-lisp.c8
2 files changed, 9 insertions, 5 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index b6e6a2f..63d850f 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -5,8 +5,10 @@
* po-lex.c (mb_iseq, mb_setascii): Likewise.
* po-hash-gen.y: alloca fix for AIX 3.
* write-mo.c: Likewise.
- * x-lisp.c (syntax_code_of, read_char_syntax, attribute_of): Move
- prototypes, to avoid compilation errors on AIX 3.
+ * x-lisp.c (syntax_code_of, read_char_syntax, attribute_of, is_number):
+ Move prototypes, to avoid compilation errors on AIX 3.
+ (syntax_code_of, attribute_of): Fix prototype. unsigned char promotes
+ to int.
* x-java.l (TOKEN_TYPE): Remove trailing comma in enum.
(PARSER_STATE): Likewise.
* msgfilter.c: Include <sys/select.h> on AIX.
diff --git a/src/x-lisp.c b/src/x-lisp.c
index 3145786..15c7dd1 100644
--- a/src/x-lisp.c
+++ b/src/x-lisp.c
@@ -94,7 +94,6 @@ static inline void a_letter_to_digit PARAMS ((const struct token *tp,
static inline bool has_a_digit PARAMS ((const struct token *tp));
static inline bool has_adjacent_letters PARAMS ((const struct token *tp));
static bool is_potential_number PARAMS ((const struct token *tp, int *basep));
-static enum number_type is_number PARAMS ((const struct token *tp, int *basep));
static void upcase_token PARAMS ((struct token *tp));
static void downcase_token PARAMS ((struct token *tp));
static void case_convert_token PARAMS ((struct token *tp));
@@ -272,7 +271,8 @@ enum syntax_code
/* Prototypes for local functions. Needed to ensure compiler checking of
function argument counts despite of K&R C function definition syntax. */
-static enum syntax_code syntax_code_of PARAMS ((unsigned char c));
+static enum syntax_code
+ syntax_code_of PARAMS ((/*promote: unsigned char*/ int c));
static void read_char_syntax PARAMS ((struct char_syntax *p));
/* Returns the syntax code of a character. */
@@ -344,7 +344,7 @@ enum attribute
/* Prototypes for local functions. Needed to ensure compiler checking of
function argument counts despite of K&R C function definition syntax. */
-static enum attribute attribute_of PARAMS ((unsigned char c));
+static enum attribute attribute_of PARAMS ((/*promote: unsigned char*/ int c));
/* Returns the attribute of a character, assuming base 10. */
static enum attribute
@@ -652,6 +652,8 @@ enum number_type
n_float
};
+static enum number_type is_number PARAMS ((const struct token *tp, int *basep));
+
static enum number_type
is_number (tp, basep)
const struct token *tp;