Document new AC_SIZEOF_TYPE usage.

This commit is contained in:
David MacKenzie 1994-04-19 03:00:31 +00:00
parent 4f27449210
commit 9aeb3353c8
2 changed files with 20 additions and 34 deletions

View File

@ -1200,9 +1200,7 @@ define @code{inline} to be @code{__inline}. This macro calls
@vindex INT_16_BITS @vindex INT_16_BITS
If the C type @code{int} is 16 bits wide, define @code{INT_16_BITS}. If the C type @code{int} is 16 bits wide, define @code{INT_16_BITS}.
This macro is obsolete; it is more general to use This macro is obsolete; it is more general to use
@samp{AC_SIZEOF_TYPE(int, @var{sizevar})} instead (@pxref{General @samp{AC_SIZEOF_TYPE(int)} instead (@pxref{General Feature Tests}).
Feature Tests}), and define a symbol based on the size returned in
@var{sizevar}.
@end defmac @end defmac
@defmac AC_LONG_64_BITS @defmac AC_LONG_64_BITS
@ -1210,9 +1208,7 @@ Feature Tests}), and define a symbol based on the size returned in
@vindex LONG_64_BITS @vindex LONG_64_BITS
If the C type @code{long int} is 64 bits wide, define If the C type @code{long int} is 64 bits wide, define
@code{LONG_64_BITS}. This macro is obsolete; it is more general to use @code{LONG_64_BITS}. This macro is obsolete; it is more general to use
@samp{AC_SIZEOF_TYPE(long, @var{sizevar})} instead (@pxref{General @samp{AC_SIZEOF_TYPE(long)} instead (@pxref{General Feature Tests}).
Feature Tests}), and define a symbol based on the size returned in
@var{sizevar}.
@end defmac @end defmac
@defmac AC_LONG_DOUBLE @defmac AC_LONG_DOUBLE
@ -1663,21 +1659,18 @@ might be in libraries other than the default C library, first call
@code{AC_HAVE_LIBRARY} for those libraries. @code{AC_HAVE_LIBRARY} for those libraries.
@end defmac @end defmac
@defmac AC_SIZEOF_TYPE (@var{type}, @var{size-var}) @defmac AC_SIZEOF_TYPE (@var{type})
@maindex SIZEOF_TYPE @maindex SIZEOF_TYPE
Assign to shell variable @var{size-var} the size (in bytes) of the C (or Define @code{SIZEOF_@var{uctype}} to be the size in bytes of the C (or
C++) builtin type @var{type}, e.g. @samp{int} or @samp{char *}. If C++) builtin type @var{type}, e.g. @samp{int} or @samp{char *}. If
@samp{type} is unknown to the compiler, assign 0 to @var{size-var}. The @samp{type} is unknown to the compiler, gets a size of 0. @var{uctype}
caller will likely use @code{AC_DEFINE} to define a symbol in the is @var{type}, with lowercase converted to uppercase, spaces changed to
package being configured, based on the value of @var{size-var}. For underscores, and asterisks changed to @samp{P}. For example, the call
example,
@example @example
AC_SIZEOF_TYPE(char *, psize) AC_SIZEOF_TYPE(int *)
if test $psize -eq 8; then
AC_DEFINE(BIG_POINTERS)
fi
@end example @end example
@noindent
defines @code{SIZEOF_INT_P} to be 64 on DEC Alpha AXP systems.
@end defmac @end defmac
@defmac AC_TEST_PROGRAM (@var{program}, @var{action-if-true} @r{[}, @var{action-if-false} @r{[}, @var{action-if-cross-compiling}@r{]]}) @defmac AC_TEST_PROGRAM (@var{program}, @var{action-if-true} @r{[}, @var{action-if-false} @r{[}, @var{action-if-cross-compiling}@r{]]})

View File

@ -1200,9 +1200,7 @@ define @code{inline} to be @code{__inline}. This macro calls
@vindex INT_16_BITS @vindex INT_16_BITS
If the C type @code{int} is 16 bits wide, define @code{INT_16_BITS}. If the C type @code{int} is 16 bits wide, define @code{INT_16_BITS}.
This macro is obsolete; it is more general to use This macro is obsolete; it is more general to use
@samp{AC_SIZEOF_TYPE(int, @var{sizevar})} instead (@pxref{General @samp{AC_SIZEOF_TYPE(int)} instead (@pxref{General Feature Tests}).
Feature Tests}), and define a symbol based on the size returned in
@var{sizevar}.
@end defmac @end defmac
@defmac AC_LONG_64_BITS @defmac AC_LONG_64_BITS
@ -1210,9 +1208,7 @@ Feature Tests}), and define a symbol based on the size returned in
@vindex LONG_64_BITS @vindex LONG_64_BITS
If the C type @code{long int} is 64 bits wide, define If the C type @code{long int} is 64 bits wide, define
@code{LONG_64_BITS}. This macro is obsolete; it is more general to use @code{LONG_64_BITS}. This macro is obsolete; it is more general to use
@samp{AC_SIZEOF_TYPE(long, @var{sizevar})} instead (@pxref{General @samp{AC_SIZEOF_TYPE(long)} instead (@pxref{General Feature Tests}).
Feature Tests}), and define a symbol based on the size returned in
@var{sizevar}.
@end defmac @end defmac
@defmac AC_LONG_DOUBLE @defmac AC_LONG_DOUBLE
@ -1663,21 +1659,18 @@ might be in libraries other than the default C library, first call
@code{AC_HAVE_LIBRARY} for those libraries. @code{AC_HAVE_LIBRARY} for those libraries.
@end defmac @end defmac
@defmac AC_SIZEOF_TYPE (@var{type}, @var{size-var}) @defmac AC_SIZEOF_TYPE (@var{type})
@maindex SIZEOF_TYPE @maindex SIZEOF_TYPE
Assign to shell variable @var{size-var} the size (in bytes) of the C (or Define @code{SIZEOF_@var{uctype}} to be the size in bytes of the C (or
C++) builtin type @var{type}, e.g. @samp{int} or @samp{char *}. If C++) builtin type @var{type}, e.g. @samp{int} or @samp{char *}. If
@samp{type} is unknown to the compiler, assign 0 to @var{size-var}. The @samp{type} is unknown to the compiler, gets a size of 0. @var{uctype}
caller will likely use @code{AC_DEFINE} to define a symbol in the is @var{type}, with lowercase converted to uppercase, spaces changed to
package being configured, based on the value of @var{size-var}. For underscores, and asterisks changed to @samp{P}. For example, the call
example,
@example @example
AC_SIZEOF_TYPE(char *, psize) AC_SIZEOF_TYPE(int *)
if test $psize -eq 8; then
AC_DEFINE(BIG_POINTERS)
fi
@end example @end example
@noindent
defines @code{SIZEOF_INT_P} to be 64 on DEC Alpha AXP systems.
@end defmac @end defmac
@defmac AC_TEST_PROGRAM (@var{program}, @var{action-if-true} @r{[}, @var{action-if-false} @r{[}, @var{action-if-cross-compiling}@r{]]}) @defmac AC_TEST_PROGRAM (@var{program}, @var{action-if-true} @r{[}, @var{action-if-false} @r{[}, @var{action-if-cross-compiling}@r{]]})