1
Fork 0

Rename target_word_size to target_pointer_width

Closes #20421

[breaking-change]
This commit is contained in:
Nick Cameron 2015-01-07 17:26:55 +13:00
parent 9f1ead8fad
commit dd3e89aaf2
36 changed files with 91 additions and 69 deletions

View file

@ -12,8 +12,11 @@ use prelude::v1::*;
use io::IoResult;
#[cfg(target_word_size = "64")] pub const HEX_WIDTH: uint = 18;
#[cfg(target_word_size = "32")] pub const HEX_WIDTH: uint = 10;
#[cfg(any(all(stage0, target_word_size = "64"), all(not(stage0), target_pointer_width = "64")))]
pub const HEX_WIDTH: uint = 18;
#[cfg(any(all(stage0, target_word_size = "32"), all(not(stage0), target_pointer_width = "32")))]
pub const HEX_WIDTH: uint = 10;
// All rust symbols are in theory lists of "::"-separated identifiers. Some
// assemblers, however, can't handle these characters in symbol names. To get