diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-10-16 19:11:31 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-10-16 19:11:31 +0200 |
commit | 50e120e73e471aad313e11ea57733316e616aa88 (patch) | |
tree | 4c4d9362e3da928f04ec50d28eaaacfc23dddf9b /gen/bits | |
parent | whitespace (diff) | |
download | slibc-50e120e73e471aad313e11ea57733316e616aa88.tar.gz slibc-50e120e73e471aad313e11ea57733316e616aa88.tar.bz2 slibc-50e120e73e471aad313e11ea57733316e616aa88.tar.xz |
do not assume that size(void*) == size(long)
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'gen/bits')
-rw-r--r-- | gen/bits/intconf.c | 1 | ||||
-rw-r--r-- | gen/bits/intconf.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/gen/bits/intconf.c b/gen/bits/intconf.c index b5d05be..5955d38 100644 --- a/gen/bits/intconf.c +++ b/gen/bits/intconf.c @@ -26,6 +26,7 @@ int main(void) printf("INT_BIT %zu\n", 8 * sizeof(int)); printf("LONG_BIT %zu\n", 8 * sizeof(long int)); printf("LONG_LONG_BIT %zu\n", 8 * sizeof(long long int)); + printf("PTR_BIT %zu\n", 8 * sizeof(void*)); printf("INT%zu %s\n", 8 * sizeof(char), "char"); printf("INT%zu %s\n", 8 * sizeof(short int), "short int"); diff --git a/gen/bits/intconf.h b/gen/bits/intconf.h index 84989e9..2dca3b5 100644 --- a/gen/bits/intconf.h +++ b/gen/bits/intconf.h @@ -26,6 +26,7 @@ #define __INT_BIT //(bin/gen/bits/intconf | grep ^INT_BIT | sed "s/^[^ ]* //") #define __LONG_BIT //(bin/gen/bits/intconf | grep ^LONG_BIT | sed "s/^[^ ]* //") #define __LONG_LONG_BIT //(bin/gen/bits/intconf | grep ^LONG_LONG_BIT | sed "s/^[^ ]* //") +#define __PTR_BIT //(bin/gen/bits/intconf | grep ^PTR_BIT | sed "s/^[^ ]* //") #define __INT8 //(bin/gen/bits/intconf | grep ^INT8 | sed "s/^[^ ]* //" | sed 1q) #define __INT16 //(bin/gen/bits/intconf | grep ^INT16 | sed "s/^[^ ]* //" | sed 1q) #define __INT32 //(bin/gen/bits/intconf | grep ^INT32 | sed "s/^[^ ]* //" | sed 1q) |