]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
More AIX related portability.
authorBruno Haible <bruno@clisp.org>
Thu, 20 Dec 2001 21:51:43 +0000 (21:51 +0000)
committerBruno Haible <bruno@clisp.org>
Sun, 21 Jun 2009 21:53:14 +0000 (23:53 +0200)
src/ChangeLog
src/x-lisp.c

index b6e6a2fe53d4267a3187e5e088f660c4c57c6777..63d850f865c34e2b34a32fd4702e9e02b59abf31 100644 (file)
@@ -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.
index 3145786395787ac8a61cb7df20f32c7c7e7e83c9..15c7dd1a1635747cea1630678273228b73d09a75 100644 (file)
@@ -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;