mirror of
git://git.sv.gnu.org/autoconf
synced 2024-12-09 02:10:22 +08:00
sizeof (struct {char a,b; }) is not required to be 2.
Reported by Johan Danielsson. * tests/semantics.at (AC_CHECK_SIZEOF): Define charchar as an array of 2 chars. Suggested by Alexandre.
This commit is contained in:
parent
a8c122d0f2
commit
5acbbedd5f
13
ChangeLog
13
ChangeLog
@ -1,3 +1,12 @@
|
||||
2000-11-29 Akim Demaille <akim@epita.fr>
|
||||
|
||||
sizeof (struct {char a,b; }) is not required to be 2.
|
||||
Reported by Johan Danielsson.
|
||||
|
||||
* tests/semantics.at (AC_CHECK_SIZEOF): Define charchar as an
|
||||
array of 2 chars.
|
||||
Suggested by Alexandre.
|
||||
|
||||
2000-11-29 Akim Demaille <akim@epita.fr>
|
||||
|
||||
Provide a means to display banners in the test suite.
|
||||
@ -109,14 +118,14 @@
|
||||
(AT_INIT): After having checked whether the test failed, break out
|
||||
of the loop if requested (-e).
|
||||
|
||||
|
||||
|
||||
2000-11-23 Akim Demaille <akim@epita.fr>
|
||||
|
||||
* tests/atgeneral.m4 (AT_SETUP): Don't build at-check-line, that's
|
||||
AT_CHECK's job.
|
||||
Remove the code depending upon `at_skip_mode': it's unused.
|
||||
|
||||
|
||||
|
||||
2000-11-23 Akim Demaille <akim@epita.fr>
|
||||
|
||||
* tests/atconfig.in: Remove the `snippet' marks, there are no
|
||||
|
@ -101,27 +101,19 @@ AT_CHECK_MACRO([AC_CHECK_MEMBERS],
|
||||
# AC_CHECK_SIZEOF
|
||||
# ---------------
|
||||
AT_CHECK_MACRO([AC_CHECK_SIZEOF],
|
||||
[AC_CHECK_SIZEOF(char)
|
||||
[[AC_CHECK_SIZEOF(char)
|
||||
AC_CHECK_SIZEOF(charchar,,
|
||||
[#include <stdio.h>
|
||||
typedef struct
|
||||
{
|
||||
char a;
|
||||
char b;
|
||||
} charchar;])
|
||||
[[#include <stdio.h>
|
||||
typedef char charchar[2];]])
|
||||
AC_CHECK_SIZEOF(charcharchar)
|
||||
|
||||
# Exercize the code used when cross-compiling
|
||||
cross_compiling=yes
|
||||
AC_CHECK_SIZEOF(unsigned char)
|
||||
AC_CHECK_SIZEOF(ucharchar,,
|
||||
[#include <stdio.h>
|
||||
typedef struct
|
||||
{
|
||||
unsigned char a;
|
||||
unsigned char b;
|
||||
} ucharchar;])
|
||||
AC_CHECK_SIZEOF(ucharcharchar)],
|
||||
[[#include <stdio.h>
|
||||
typedef unsigned char ucharchar[2];]])
|
||||
AC_CHECK_SIZEOF(ucharcharchar)]],
|
||||
[AT_CHECK_DEFINES(
|
||||
[#define SIZEOF_CHAR 1
|
||||
#define SIZEOF_CHARCHAR 2
|
||||
|
Loading…
Reference in New Issue
Block a user