]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
(C Compiler): Describe AC_C_RESTRICT.
authorJim Meyering <meyering@lucent.com>
Sat, 12 Apr 2003 20:53:33 +0000 (20:53 +0000)
committerJim Meyering <meyering@lucent.com>
Sat, 12 Apr 2003 20:53:33 +0000 (20:53 +0000)
doc/autoconf.texi

index 676522876abd30e2402bfcb87373a90256a77131..da0ce51a3f0c53c6024f5cc819c31fc7cc3ad2e9 100644 (file)
@@ -5252,6 +5252,23 @@ installers who run into trouble in this area should get a C compiler
 like GCC to compile their C code.
 @end defmac
 
+@defmac AC_C_RESTRICT
+@acindex C_RESTRICT
+@cvindex restrict
+If the C compiler recognizes the @code{restrict} keyword, don't do anything.
+If it recognizes only a variant spelling (@code{__restrict},
+@code{__restrict__}, or @code{_Restrict}), then define
+@code{restrict} to that.
+Otherwise, define @code{restrict} to be empty.
+Thus, programs may simply use @code{restrict} as if every C compiler
+supported it; for those that do not, the @file{Makefile}
+or configuration header defines it away.
+
+Although support in C++ for the @code{restrict} keyword is not
+required, several C++ compilers do accept the keyword.
+This macro works for them, too.
+@end defmac
+
 @defmac AC_C_VOLATILE
 @acindex{C_VOLATILE}
 @cvindex volatile