aboutsummaryrefslogtreecommitdiffstats
path: root/gen/bits/intconf.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-10-16 22:25:28 +0200
committerMattias Andrée <maandree@operamail.com>2015-10-16 22:25:28 +0200
commitc5b0889ccb64e6fc8aaa7c70bff8c30efb4efdde (patch)
tree81a07d8a2494fcf0bd430fa74716dd85b766bc2d /gen/bits/intconf.h
parentupdate todo (diff)
downloadslibc-c5b0889ccb64e6fc8aaa7c70bff8c30efb4efdde.tar.gz
slibc-c5b0889ccb64e6fc8aaa7c70bff8c30efb4efdde.tar.bz2
slibc-c5b0889ccb64e6fc8aaa7c70bff8c30efb4efdde.tar.xz
the compiler determines how wchar is implement + intconf.h contains the signess of char
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--gen/bits/intconf.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/gen/bits/intconf.h b/gen/bits/intconf.h
index eb7b5b5..f9ff861 100644
--- a/gen/bits/intconf.h
+++ b/gen/bits/intconf.h
@@ -25,12 +25,25 @@
//>FAST64=$(bin/gen/bits/intconf fast64)
#define __MAX_TO_MIN(max) (-(max) - 1)
+#if //(bin/gen/bits/intconf char-signed)
+# define __CHAR_SIGNED
+# define __CHAR_SIGNESS signed
+#endif
+# define __CHAR_SIGNESS unsigned
+#endif
+#if //(bin/gen/bits/intconf wchar-signed)
+# define __WCHAR_SIGNED
+# define __WCHAR_SIGNESS signed
+#else
+# define __WCHAR_SIGNESS unsigned
+#endif
#define __CHAR_BIT //(bin/gen/bits/intconf | grep ^CHAR_BIT | sed "s/^[^ ]* //")
#define __SHORT_BIT //(bin/gen/bits/intconf | grep ^SHORT_BIT | sed "s/^[^ ]* //")
#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 __WCHAR_BIT //(bin/gen/bits/intconf | grep ^WCHAR_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)