autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: _AC_CHECK_TYPE_REPLACEMENT_TYPE_P


From: Akim Demaille
Subject: Re: _AC_CHECK_TYPE_REPLACEMENT_TYPE_P
Date: 18 Jun 2001 21:42:50 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Academic Rigor)

>>>>> "Andreas" == Andreas Schwab <address@hidden> writes:

Andreas> IMHO, _AC_CHECK_TYPE_REPLACEMENT_TYPE_P should treat words of
Andreas> the form [a-z]*_t as types so that AC_CHECK_TYPE(__u8,
Andreas> u_int8_t) does the right thing.  Incidentally,
Andreas> AC_CHECK_TYPE(__s8, int8_t) is already treated as an old
Andreas> form, because int8_t starts with "int".

This was settled with Paul.

Paul, the code is

# _AC_CHECK_TYPE_REPLACEMENT_TYPE_P(STRING)
# -----------------------------------------
# Return `1' if STRING seems to be a builtin C/C++ type, i.e., if it
# starts with `_Bool', `bool', `char', `double', `float', `int',
# `long', `short', `signed', or `unsigned' followed by characters
# that are defining types.
# Because many people have used `off_t' and `size_t' too, they are added
# for better common-useward backward compatibility.
m4_define([_AC_CHECK_TYPE_REPLACEMENT_TYPE_P],
[m4_if(m4_regexp([$1],
                 
[^\(_Bool\|bool\|char\|double\|float\|int\|long\|short\|\(un\)?signed\|size_t\|off_t\)\([_a-zA-Z0-9()
 *]\|\[\|\]\)*$]),
       0, 1, 0)dnl
])# _AC_CHECK_TYPE_REPLACEMENT_TYPE_P


But Andreas, I guess you do have a warning, don't you?  What patch
would you suggest?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]