[pypy-commit] pypy stmgc-c7: Fix (and reduce the diff to default)

arigo noreply at buildbot.pypy.org
Wed Nov 19 00:22:12 CET 2014


Author: Armin Rigo <arigo at tunes.org>
Branch: stmgc-c7
Changeset: r74580:dd13b4ea897b
Date: 2014-11-19 00:19 +0100
http://bitbucket.org/pypy/pypy/changeset/dd13b4ea897b/

Log:	Fix (and reduce the diff to default)

diff --git a/rpython/translator/c/src/g_prerequisite.h b/rpython/translator/c/src/g_prerequisite.h
--- a/rpython/translator/c/src/g_prerequisite.h
+++ b/rpython/translator/c/src/g_prerequisite.h
@@ -12,11 +12,13 @@
 #include <stddef.h>
 
 
-#ifdef __GNUC__
+#ifdef __GNUC__       /* other platforms too, probably */
+typedef _Bool bool_t;
 # define RPY_VARLENGTH   /* nothing: [RPY_VARLENGTH] => [] */
 # define RPY_LENGTH0     0       /* array decl [0] are ok  */
 # define RPY_DUMMY_VARLENGTH     char _dummy[0];
 #else
+typedef unsigned char bool_t;
 # define RPY_VARLENGTH   1       /* [RPY_VARLENGTH] => [1] */
 # define RPY_LENGTH0     1       /* array decl [0] are bad */
 # define RPY_DUMMY_VARLENGTH     /* nothing */


More information about the pypy-commit mailing list