[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: new macro: AC_C_RESTRICT
From: |
Paul Eggert |
Subject: |
Re: new macro: AC_C_RESTRICT |
Date: |
31 Mar 2003 17:20:14 -0800 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/20.3 |
Jim Meyering <address@hidden> writes:
> Comments/suggestions?
Looks good, thanks. However, could you please check for "__restrict"
before "__restrict__"? GCC supports either spelling, but "__restrict"
is shorter and older DEC Alpha C compilers support only "__restrict".
The handwritten "configure" script for MPlayer
<http://www.mplayerhq.hu> checks for "__restrict" first, so this
should be reliable.
Also, please check for "_Restrict" as well. That is the only spelling
supported by Sun WorkShop 6 update 2 C.
Jim Meyering <address@hidden> writes:
> I don't like the name very much, since it implies C-only support,
> while the macro is useful/necessary also with C++ compilers.
Aren't the other AC_C_ macros in that camp too?
Perhaps we should use AC_CONLY_ as a prefix for macros that are no
good for C++. This reminds me of the story of the man whose full name
was "R B Jones", and whose paychecks always read "RONLY BONLY JONES"
-- but I digress....