OSDN Git Service

Switch to <stdbool.h> in the VM.
authorAndy McFadden <fadden@android.com>
Wed, 5 Aug 2009 22:20:27 +0000 (15:20 -0700)
committerAndy McFadden <fadden@android.com>
Wed, 5 Aug 2009 22:26:34 +0000 (15:26 -0700)
commitd51370ff814e88b63baa3b1f5300b6560330c12d
tree4a477ad4583c757ccbcdc92377f43198d750324f
parentf5adaabbfa043bbf3db757e8715c89d2674a7b7c
Switch to <stdbool.h> in the VM.

We were using an enum that made the compiler unhappy on MacOS X.  This
switches us to using <stdbool.h> when it's available.

The size of a "bool" is either sizeof(_Bool) or sizeof(enum bool), and
the assembly sources dislike ambiguity, so this also changes
gDvm.debuggerActive to always be a single byte.  The ARM and x86 code
was already assuming that -- held over from when enums were
variable-width, and never fixed because we get the right answer on
little-endian platforms -- so it doesn't look like we need to change
anything in mterp.
vm/Common.h
vm/Globals.h
vm/mterp/common/asm-constants.h