diff options
Diffstat (limited to 'src/components/script')
-rw-r--r-- | src/components/script/macros.rs | 24 | ||||
-rw-r--r-- | src/components/script/script.rs | 7 |
2 files changed, 3 insertions, 28 deletions
diff --git a/src/components/script/macros.rs b/src/components/script/macros.rs deleted file mode 100644 index 0ebdd7c6b7e..00000000000 --- a/src/components/script/macros.rs +++ /dev/null @@ -1,24 +0,0 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - -#[macro_escape]; - -macro_rules! bitfield( - ($bitfieldname:ident, $getter:ident, $setter:ident, $value:expr) => ( - impl $bitfieldname { - #[inline] - pub fn $getter(self) -> bool { - let $bitfieldname(s) = self; - (s & $value) != 0 - } - - #[inline] - pub fn $setter(&mut self, value: bool) { - let $bitfieldname(s) = *self; - *self = $bitfieldname((s & !$value) | (if value { $value } else { 0 })) - } - } - ) -) - diff --git a/src/components/script/script.rs b/src/components/script/script.rs index 4c5a53efbe6..c9160b56131 100644 --- a/src/components/script/script.rs +++ b/src/components/script/script.rs @@ -8,7 +8,7 @@ #[comment = "The Servo Parallel Browser Project"]; #[license = "MPL"]; -#[feature(globs, macro_rules, struct_variant, managed_boxes)]; +#[feature(globs, macro_rules, struct_variant, managed_boxes, phase)]; extern crate collections; extern crate geom; @@ -16,6 +16,8 @@ extern crate hubbub; extern crate encoding; extern crate js; extern crate serialize; +#[phase(syntax)] +extern crate servo_macros = "macros"; extern crate servo_net = "net"; extern crate servo_util = "util"; extern crate style; @@ -23,9 +25,6 @@ extern crate servo_msg = "msg"; extern crate extra; extern crate native; -// Macros -mod macros; - pub mod dom { pub mod bindings { pub mod js; |