]> git.lizzy.rs Git - rust.git/commitdiff
Removed Unnecessary comments and white spaces #4386
authorreedlepee <reedlepee123@gmail.com>
Sun, 20 Oct 2013 03:26:42 +0000 (08:56 +0530)
committerreedlepee <reedlepee123@gmail.com>
Tue, 22 Oct 2013 19:40:50 +0000 (01:10 +0530)
111 files changed:
src/libextra/arc.rs
src/libextra/arena.rs
src/libextra/base64.rs
src/libextra/bitv.rs
src/libextra/c_vec.rs
src/libextra/comm.rs
src/libextra/crypto/cryptoutil.rs
src/libextra/crypto/md5.rs
src/libextra/crypto/sha1.rs
src/libextra/crypto/sha2.rs
src/libextra/dlist.rs
src/libextra/ebml.rs
src/libextra/enum_set.rs
src/libextra/fileinput.rs
src/libextra/future.rs
src/libextra/getopts.rs
src/libextra/glob.rs
src/libextra/io_util.rs
src/libextra/json.rs
src/libextra/num/bigint.rs
src/libextra/num/complex.rs
src/libextra/num/rational.rs
src/libextra/priority_queue.rs
src/libextra/ringbuf.rs
src/libextra/semver.rs
src/libextra/smallintmap.rs
src/libextra/stats.rs
src/libextra/sync.rs
src/libextra/task_pool.rs
src/libextra/tempfile.rs
src/libextra/term.rs
src/libextra/terminfo/parm.rs
src/libextra/terminfo/terminfo.rs
src/libextra/test.rs
src/libextra/time.rs
src/libextra/treemap.rs
src/libextra/url.rs
src/libextra/uuid.rs
src/libextra/workcache.rs
src/libstd/c_str.rs
src/libstd/cell.rs
src/libstd/condition.rs
src/libstd/fmt/mod.rs
src/libstd/fmt/parse.rs
src/libstd/fmt/rt.rs
src/libstd/hashmap.rs
src/libstd/io.rs
src/libstd/iter.rs
src/libstd/libc.rs
src/libstd/option.rs
src/libstd/os.rs
src/libstd/path/mod.rs
src/libstd/path/posix.rs
src/libstd/path/windows.rs
src/libstd/rand/isaac.rs
src/libstd/rand/mod.rs
src/libstd/rand/os.rs
src/libstd/rand/reader.rs
src/libstd/rand/reseeding.rs
src/libstd/rc.rs
src/libstd/reflect.rs
src/libstd/repr.rs
src/libstd/rt/borrowck.rs
src/libstd/rt/comm.rs
src/libstd/rt/crate_map.rs
src/libstd/rt/io/buffered.rs
src/libstd/rt/io/extensions.rs
src/libstd/rt/io/file.rs
src/libstd/rt/io/flate.rs
src/libstd/rt/io/mem.rs
src/libstd/rt/io/mock.rs
src/libstd/rt/io/mod.rs
src/libstd/rt/io/native/file.rs
src/libstd/rt/io/native/process.rs
src/libstd/rt/io/native/stdio.rs
src/libstd/rt/io/net/ip.rs
src/libstd/rt/io/net/tcp.rs
src/libstd/rt/io/net/udp.rs
src/libstd/rt/io/pipe.rs
src/libstd/rt/io/process.rs
src/libstd/rt/io/stdio.rs
src/libstd/rt/io/timer.rs
src/libstd/rt/kill.rs
src/libstd/rt/local_heap.rs
src/libstd/rt/message_queue.rs
src/libstd/rt/rc.rs
src/libstd/rt/rtio.rs
src/libstd/rt/sched.rs
src/libstd/rt/sleeper_list.rs
src/libstd/rt/stack.rs
src/libstd/rt/task.rs
src/libstd/rt/tube.rs
src/libstd/rt/uv/addrinfo.rs
src/libstd/rt/uv/file.rs
src/libstd/rt/uv/mod.rs
src/libstd/rt/uv/uvio.rs
src/libstd/rt/uv/uvll.rs
src/libstd/rt/work_queue.rs
src/libstd/run.rs
src/libstd/str.rs
src/libstd/str/ascii.rs
src/libstd/task/mod.rs
src/libstd/task/spawn.rs
src/libstd/trie.rs
src/libstd/unstable/atomics.rs
src/libstd/unstable/dynamic_lib.rs
src/libstd/unstable/extfmt.rs
src/libstd/unstable/intrinsics.rs
src/libstd/unstable/raw.rs
src/libstd/unstable/sync.rs
src/libstd/vec.rs

index 932dac4195c3c398071baaea44c9fd998285733a..2e394014c33b7a4c30df0525d1d981c19044d490 100644 (file)
@@ -50,7 +50,6 @@
 
 /// As sync::condvar, a mechanism for unlock-and-descheduling and signaling.
 pub struct Condvar<'self> {
-    // all were already priv
     priv is_mutex: bool,
     priv failed: &'self mut bool,
     priv cond: &'self sync::Condvar<'self>
@@ -109,7 +108,6 @@ pub fn broadcast_on(&self, condvar_id: uint) -> uint {
  ****************************************************************************/
 
 /// An atomically reference counted wrapper for shared immutable state.
-// all were already priv
 pub struct Arc<T> { priv x: UnsafeArc<T> }
 
 
@@ -164,7 +162,6 @@ struct MutexArcInner<T> { priv lock: Mutex, priv failed: bool, priv data: T }
 
 /// An Arc with mutable data protected by a blocking mutex.
 #[no_freeze]
-//All were already priv
 pub struct MutexArc<T> { priv x: UnsafeArc<MutexArcInner<T>> }
 
 
@@ -347,7 +344,6 @@ struct RWArcInner<T> { priv lock: RWLock, priv failed: bool, priv data: T }
  */
 #[no_freeze]
 pub struct RWArc<T> {
-    // all were already priv
     priv x: UnsafeArc<RWArcInner<T>>,
 }
 
@@ -526,7 +522,6 @@ fn borrow_rwlock<T:Freeze + Send>(state: *mut RWArcInner<T>) -> *RWLock {
 /// The "write permission" token used for RWArc.write_downgrade().
 pub struct RWWriteMode<'self, T> {
 
-/// reedlepee added priv in all the feilds below
     priv data: &'self mut T,
     priv token: sync::RWLockWriteMode<'self>,
     priv poison: PoisonOnFail,
@@ -534,7 +529,6 @@ pub struct RWWriteMode<'self, T> {
 
 /// The "read permission" token used for RWArc.write_downgrade().
 pub struct RWReadMode<'self, T> {
-/// reedlepee added priv in all the feilds below
     priv data: &'self T,
     priv token: sync::RWLockReadMode<'self>,
 }
index 934217f581b13ad8cc80736236bcca3deeb7f22d..b684e0d429e316b94ecd92f14ec04441eb93de1d 100644 (file)
@@ -62,7 +62,6 @@ pub struct Arena {
     // The head is separated out from the list as a unbenchmarked
     // microoptimization, to avoid needing to case on the list to
     // access the head.
-/// no change  by reedlepee all were already priv
     priv head: Chunk,
     priv pod_head: Chunk,
     priv chunks: @mut MutList<Chunk>,
index 212525508c17b445a57de6c99e731d6b3e46da5b..15b932677535086b352dd1a22685ec4f630eb918 100644 (file)
@@ -21,7 +21,6 @@ pub enum CharacterSet {
 
 /// Contains configuration parameters for `to_base64`.
 pub struct Config {
-    /// all were made priv by reedlepee
     /// Character set to use
     priv char_set: CharacterSet,
     /// True to pad output with `=` characters
index 39a5f1d7a6626ff0b4a030730eceb91b1fef3899..96123ad75b250603a7dfa877773f33c25c833741 100644 (file)
@@ -225,7 +225,6 @@ enum Op {Union, Intersect, Assign, Difference}
 /// The bitvector type
 #[deriving(Clone)]
 pub struct Bitv {
-    /// all were made priv by reedlepee
     /// Internal representation of the bit vector (small or large)
     priv rep: BitvVariant,
     /// The number of valid bits in the internal representation
@@ -574,7 +573,6 @@ fn iterate_bits(base: uint, bits: uint, f: &fn(uint) -> bool) -> bool {
 
 /// An iterator for `Bitv`.
 pub struct BitvIterator<'self> {
-    /// all were already priv
     priv bitv: &'self Bitv,
     priv next_idx: uint,
     priv end_idx: uint,
@@ -636,7 +634,6 @@ fn idx(&self, index: uint) -> Option<bool> {
 /// as a `uint`.
 #[deriving(Clone)]
 pub struct BitvSet {
-    // all were already priv!!
     priv size: uint,
 
     // In theory this is a `Bitv` instead of always a `BigBitv`, but knowing that
@@ -903,7 +900,6 @@ fn outlier_iter<'a>(&'a self, other: &'a BitvSet)
 }
 
 pub struct BitvSetIterator<'self> {
-    // all were already priv
     priv set: &'self BitvSet,
     priv next_idx: uint
 }
index 501a71fca151851507e0977a2b5858d0d4c9d83e..bd3ce20742ed19e26382382585b7ebec9862afff 100644 (file)
@@ -44,7 +44,6 @@
  * The type representing a foreign chunk of memory
  */
 pub struct CVec<T> {
-    /// No change all were allready priv!!
     priv base: *mut T,
     priv len: uint,
     priv rsrc: @DtorRes,
index d96925bce6941d0fbda44ac68b735a6cf4c71add..a31f27a288589d827cfc78f7752c632286429f8d 100644 (file)
@@ -23,7 +23,6 @@
 
 /// An extension of `pipes::stream` that allows both sending and receiving.
 pub struct DuplexStream<T, U> {
-// all were already priv
     priv chan: Chan<T>,
     priv port: Port<U>,
 }
@@ -95,7 +94,6 @@ pub fn DuplexStream<T:Send,U:Send>()
 // all were already priv
 pub struct SyncChan<T> { priv duplex_stream: DuplexStream<T, ()> }
 /// An extension of `pipes::stream` that acknowledges each message received.
-// all were already priv
 pub struct SyncPort<T> { priv duplex_stream: DuplexStream<(), T> }
 
 impl<T: Send> GenericChan<T> for SyncChan<T> {
index d6189e33911fd423be7937fcee1c9cc53185c1b9..97b82383d8432d2a9c420713f1f371a045a927e3 100644 (file)
@@ -284,7 +284,6 @@ fn size(&self) -> uint { $size }
 
 /// A fixed size buffer of 64 bytes useful for cryptographic operations.
 pub struct FixedBuffer64 {
-    // already priv
     priv buffer: [u8, ..64],
     priv buffer_idx: uint,
 }
@@ -303,7 +302,6 @@ pub fn new() -> FixedBuffer64 {
 
 /// A fixed size buffer of 128 bytes useful for cryptographic operations.
 pub struct FixedBuffer128 {
-    // already priv
     priv buffer: [u8, ..128],
     priv buffer_idx: uint,
 }
index 63ee2ccf79020c0d7b0aa9535d8e9885a45bd88b..864fc64f82bec9af50535848e15389f0d777f387 100644 (file)
@@ -159,7 +159,6 @@ fn op_i(w: u32, x: u32, y: u32, z: u32, m: u32, s: u32) -> u32 {
 
 /// The MD5 Digest algorithm
 pub struct Md5 {
-    // already priv
     priv length_bytes: u64,
     priv buffer: FixedBuffer64,
     priv state: Md5State,
index 9343124e83df12e70ba7d8ea6f13f7cf31503914..4d4d47feee817c0bb07f4136215d88c327ad027f 100644 (file)
@@ -43,7 +43,6 @@
 
 /// Structure representing the state of a Sha1 computation
 pub struct Sha1 {
-    // already priv
     priv h: [u32, ..DIGEST_BUF_LEN],
     priv length_bits: u64,
     priv buffer: FixedBuffer64,
index 529cab913370354e40b0ab9eb20078b2f79424b9..fb9a6df50e48c21df37b6f4e3b46ba8c2184e52c 100644 (file)
@@ -234,7 +234,6 @@ fn finish(&mut self) {
 
 /// The SHA-512 hash algorithm
 pub struct Sha512 {
-    // already priv
     priv engine: Engine512
 }
 
@@ -288,7 +287,6 @@ fn output_bits(&self) -> uint { 512 }
 
 /// The SHA-384 hash algorithm
 pub struct Sha384 {
-    // already priv
     priv engine: Engine512
 }
 
@@ -340,7 +338,6 @@ fn output_bits(&self) -> uint { 384 }
 
 /// The SHA-512 hash algorithm with digest truncated to 256 bits
 pub struct Sha512Trunc256 {
-    // already priv
     priv engine: Engine512
 }
 
@@ -390,7 +387,6 @@ fn output_bits(&self) -> uint { 256 }
 
 /// The SHA-512 hash algorithm with digest truncated to 224 bits
 pub struct Sha512Trunc224 {
-    // already priv
     priv engine: Engine512
 }
 
@@ -647,7 +643,6 @@ fn finish(&mut self) {
 
 /// The SHA-256 hash algorithm
 pub struct Sha256 {
-    // already priv
     priv engine: Engine256
 }
 
@@ -701,7 +696,6 @@ fn output_bits(&self) -> uint { 256 }
 
 /// The SHA-224 hash algorithm
 pub struct Sha224 {
-    // already priv
     priv engine: Engine256
 }
 
index 102f0eac853366d978a0f8c07e134065cbf0f3b4..f29cbd6ee5294cdb70f6662ca05d8249af914a24 100644 (file)
@@ -32,7 +32,6 @@
 
 /// A doubly-linked list.
 pub struct DList<T> {
-    // all were already priv
     priv length: uint,
     priv list_head: Link<T>,
     priv list_tail: Rawlink<Node<T>>,
@@ -50,7 +49,6 @@ struct Node<T> {
 /// Double-ended DList iterator
 #[deriving(Clone)]
 pub struct DListIterator<'self, T> {
-    // all were already priv
     priv head: &'self Link<T>,
     priv tail: Rawlink<Node<T>>,
     priv nelem: uint,
@@ -58,7 +56,6 @@ pub struct DListIterator<'self, T> {
 
 /// Double-ended mutable DList iterator
 pub struct MutDListIterator<'self, T> {
-    // all were already priv
     priv list: &'self mut DList<T>,
     priv head: Rawlink<Node<T>>,
     priv tail: Rawlink<Node<T>>,
@@ -68,7 +65,6 @@ pub struct MutDListIterator<'self, T> {
 /// DList consuming iterator
 #[deriving(Clone)]
 pub struct MoveIterator<T> {
-    // all were already priv
     priv list: DList<T>
 }
 
index ac1edd3f116e51d49d98841f2a9b410e55aeec9b..3612b256f1b377b69f4d02492eb7073665f601ef 100644 (file)
@@ -30,7 +30,6 @@ struct EbmlState {
 
 #[deriving(Clone)]
 pub struct Doc {
-    // all these should be public
     data: @~[u8],
     start: uint,
     end: uint,
@@ -51,9 +50,7 @@ pub fn as_str(&self) -> ~str {
 }
 
 pub struct TaggedDoc {
-    // was made privv by reedlepee
     priv tag: uint,
-    // should be public
     doc: Doc,
 }
 
@@ -287,7 +284,6 @@ pub fn doc_as_i32(d: Doc) -> i32 { doc_as_u32(d) as i32 }
     pub fn doc_as_i64(d: Doc) -> i64 { doc_as_u64(d) as i64 }
 
     pub struct Decoder {
-        // all were already  priv
         priv parent: Doc,
         priv pos: uint,
     }
@@ -622,9 +618,7 @@ pub mod writer {
 
     // ebml writing
     pub struct Encoder {
-    /// should be public!!
     writer: @io::Writer,
-    /// this was already privv!!
     priv size_positions: ~[uint],
     }
 
index 7908f73453ac9d85d7a2319cbddd7d79bac35f3d..da9e0a225ba1b47f9b35410912274b9db328e474 100644 (file)
@@ -18,7 +18,6 @@
 pub struct EnumSet<E> {
     // We must maintain the invariant that no bits are set
     // for which no variant exists
-    // all were already priv
     priv bits: uint
 }
 
@@ -101,7 +100,6 @@ fn bitand(&self, e: &EnumSet<E>) -> EnumSet<E> {
 
 /// An iterator over an EnumSet
 pub struct EnumSetIterator<E> {
-    // all were already priv
     priv index: uint,
     priv bits: uint,
 }
index abc3f4b98f11d0d69a44f6813d043f184e1adcc0..112babf271bc848bebb998b183e760e371d0b6b3 100644 (file)
 */
 #[deriving(Clone)]
 pub struct FileInputState {
-    // all were priv made by reedlepee
     priv current_path: Option<Path>,
     priv line_num: uint,
     priv line_num_file: uint
@@ -156,7 +155,6 @@ struct FileInput_ {
 // "self.fi" -> "self." and renaming FileInput_. Documentation above
 // will likely have to be updated to use `let mut in = ...`.
 pub struct FileInput  {
-/// all were made priv by reedlepee
     priv fi: @mut FileInput_
 }
 
index f2bedd9bc7a245d1ace3b9c349b63b0d9de9f3de..fdb296e5f403b3d84693bd59158047257d146270 100644 (file)
@@ -32,7 +32,6 @@
 
 /// A type encapsulating the result of a computation which may not be complete
 pub struct Future<A> {
-    // all were already privv!!
     priv state: FutureState<A>,
 }
 
index 255c3fef24d7cae02d5c60a092919cfe14ac9b84..3663b5c8d0842cc3c1f9e02f4df79175684f585e 100644 (file)
@@ -112,8 +112,6 @@ pub enum Occur {
 /// A description of a possible option.
 #[deriving(Clone, Eq)]
 pub struct Opt {
-
-    /// reedlepee added priv infront of them!!
     /// Name of the option
     name: Name,
     /// Wheter it has an argument...  should be public!!
@@ -136,7 +134,6 @@ enum Optval {
 #[deriving(Clone, Eq)]
 pub struct Matches {
 
-/// reedlepee added priv infront of all
     /// Options that matched
     priv opts: ~[Opt],
     /// Values of the Options that matched
index a094df4e75603a97551e643b7cc70c92b86c3884..5297b48b0e156719c83ccb3a127128cf66b5b1b2 100644 (file)
@@ -33,7 +33,6 @@
  * pattern - see the `glob` function for more details.
  */
 pub struct GlobIterator {
-    /// no change by reedlepee all were priv already!!
     priv root: Path,
     priv dir_patterns: ~[Pattern],
     priv options: MatchOptions,
@@ -157,7 +156,6 @@ fn list_dir_sorted(path: &Path) -> ~[Path] {
  */
 #[deriving(Clone, Eq, TotalEq, Ord, TotalOrd, IterBytes, Default)]
 pub struct Pattern {
-    // already priv
     priv tokens: ~[PatternToken]
 }
 
@@ -476,7 +474,6 @@ fn chars_eq(a: char, b: char, case_sensitive: bool) -> bool {
  */
 #[deriving(Clone, Eq, TotalEq, Ord, TotalOrd, IterBytes, Default)]
 pub struct MatchOptions {
-/// all were made priv  by reedlepee
 
     /**
      * Whether or not patterns should be matched in a case-sensitive manner. This
index 415fa590d4c76bafa19eb603c27d2e0b51c07319..27a09be3a625b81fd1122fcc236317daeca59652 100644 (file)
@@ -16,7 +16,6 @@
 
 /// An implementation of the io::Reader interface which reads a buffer of bytes
 pub struct BufReader {
-    // all were made priv by reedlepee
     /// The buffer of bytes to read
     priv buf: ~[u8],
     /// The current position in the buffer of bytes
index 2ddb389398df0f565cccf94be379d2c78d0862a9..90260282e4b5b87beedda504f0add0c56ea214e8 100644 (file)
@@ -48,7 +48,6 @@ pub enum Json {
 /// If an error occurs while parsing some JSON, this is the structure which is
 /// returned
 pub struct Error {
-    // all were made privv by reedlepee
     /// The line number at which the error occurred
     priv line: uint,
     /// The column number at which the error occurred
@@ -87,7 +86,6 @@ fn spaces(n: uint) -> ~str {
 
 /// A structure for implementing serialization to JSON.
 pub struct Encoder {
-    // all were already priv
     priv wr: @io::Writer,
 }
 
@@ -245,7 +243,6 @@ fn emit_map_elt_val(&mut self, _idx: uint, f: &fn(&mut Encoder)) {
 /// Another encoder for JSON, but prints out human-readable JSON instead of
 /// compact data
 pub struct PrettyEncoder {
-    // all were already priv
     priv wr: @io::Writer,
     priv indent: uint,
 }
@@ -482,7 +479,6 @@ pub fn to_pretty_str(&self) -> ~str {
 }
 
 pub struct Parser<T> {
-    // all were already priv
     priv rdr: ~T,
     priv ch: char,
     priv line: uint,
@@ -872,7 +868,6 @@ pub fn from_str(s: &str) -> Result<Json, Error> {
 
 /// A structure to decode JSON to values in rust.
 pub struct Decoder {
-    // all were already priv
     priv stack: ~[Json],
 }
 
index 33803cb5ff3eaf258711361a4740e9b41d932fe1..cd5ccc14cafb1a52169503c54ae633779d4aafd2 100644 (file)
@@ -86,7 +86,6 @@ pub fn to_uint(hi: BigDigit, lo: BigDigit) -> uint {
 */
 #[deriving(Clone)]
 pub struct BigUint {
-    // already priv
     priv data: ~[BigDigit]
 }
 
@@ -894,7 +893,6 @@ fn neg(&self) -> Sign {
 /// A big signed integer type.
 #[deriving(Clone)]
 pub struct BigInt {
-    // already priv
     priv sign: Sign,
     priv data: BigUint
 }
index a59a09c84e2722b65a8148b9c969027241d0b0d8..021a069fbbe730139a5f435255ffd6ea7a62d0fb 100644 (file)
@@ -24,7 +24,6 @@
 /// A complex number in Cartesian form.
 #[deriving(Eq,Clone)]
 pub struct Cmplx<T> {
-    // all made real by reedlepee
     /// Real portion of the complex number
     priv re: T,
     /// Imaginary portion of the complex number
index 01176f7150f2398cd1a02be4db66e213205a17ab..bdec950c87bca5a176f048520ad1bd31987c1c37 100644 (file)
@@ -20,7 +20,6 @@
 #[deriving(Clone)]
 #[allow(missing_doc)]
 pub struct Ratio<T> {
-    // made priv by reedlepee
     priv numer: T,
     priv denom: T
 }
index a5851778ab3f71970e16167a95914290cf8386a2..587f83720877d23ab1184d4c447c21a7321d643e 100644 (file)
@@ -20,7 +20,6 @@
 /// A priority queue implemented with a binary heap
 #[deriving(Clone)]
 pub struct PriorityQueue<T> {
-    // all were already priv
     priv data: ~[T],
 }
 
@@ -179,7 +178,6 @@ fn siftdown(&mut self, pos: uint) {
 
 /// PriorityQueue iterator
 pub struct PriorityQueueIterator <'self, T> {
-    // all were already priv
     priv iter: vec::VecIterator<'self, T>,
 }
 
index 2946046485231edc4107a6f5d7419a0b2729d66d..e7032db5a9195d05ef79664598da7571fcaa48a0 100644 (file)
@@ -25,7 +25,6 @@
 /// RingBuf is a circular buffer that implements Deque.
 #[deriving(Clone)]
 pub struct RingBuf<T> {
-    // all were already priv
     priv nelts: uint,
     priv lo: uint,
     priv elts: ~[Option<T>]
@@ -249,7 +248,6 @@ fn next_back(&mut self) -> Option<$elem> {
 
 /// RingBuf iterator
 pub struct RingBufIterator<'self, T> {
-    // all were already priv
     priv lo: uint,
     priv index: uint,
     priv rindex: uint,
@@ -277,7 +275,6 @@ fn idx(&self, j: uint) -> Option<&'self T> {
 
 /// RingBuf mutable iterator
 pub struct RingBufMutIterator<'self, T> {
-    // all were already priv
     priv lo: uint,
     priv index: uint,
     priv rindex: uint,
index b9225e66399d1c92c1a2f3f46be8e0ae5c7bfb4e..02c35000ce3a4320bf280376492d7e8fe6290d0e 100644 (file)
@@ -70,7 +70,6 @@ fn to_str(&self) -> ~str {
 /// Represents a version number conforming to the semantic versioning scheme.
 #[deriving(Clone, Eq)]
 pub struct Version {
-    /// reedlepee added priv in all
     /// The major version, to be incremented on incompatible changes.
     priv major: uint,
     /// The minor version, to be incremented when functionality is added in a
index c0d40514c4ccaa1e691b62fbb8c4280e44176c85..0ca0ff66039d859fbc1763d316c56f17b32fd3d5 100644 (file)
@@ -22,7 +22,6 @@
 
 #[allow(missing_doc)]
 pub struct SmallIntMap<T> {
-    /// all were already priv!!
     priv v: ~[Option<T>],
 }
 
@@ -234,7 +233,6 @@ fn next_back(&mut self) -> Option<$elem> {
 }
 
 pub struct SmallIntMapIterator<'self, T> {
-    /// all were already priv!!
     priv front: uint,
     priv back: uint,
     priv iter: VecIterator<'self, Option<T>>
@@ -245,7 +243,6 @@ pub struct SmallIntMapIterator<'self, T> {
 pub type SmallIntMapRevIterator<'self, T> = Invert<SmallIntMapIterator<'self, T>>;
 
 pub struct SmallIntMapMutIterator<'self, T> {
-    /// all were already priv!!
     priv front: uint,
     priv back: uint,
     priv iter: VecMutIterator<'self, Option<T>>
index 3e252e30842dbb1eac31bdfee21c70f94f14c8cb..40f99716ca796832054a69181e0df72f333a1980 100644 (file)
@@ -105,7 +105,6 @@ pub trait Stats {
 #[deriving(Clone, Eq)]
 #[allow(missing_doc)]
 pub struct Summary {
-  /// all were made privv by reedlepee
     priv sum: f64,
     // public
     min: f64,
index cda912857d739c56611a49f4012b1f66344597f3..9a53fd639c51353dffa85a15057abe39cb8d2879 100644 (file)
@@ -168,7 +168,6 @@ enum ReacquireOrderLock<'self> {
 /// A mechanism for atomic-unlock-and-deschedule blocking and signalling.
 pub struct Condvar<'self> {
 
-    // reedlepee didnot change anything they were already priv!!!
 
     // The 'Sem' object associated with this condvar. This is the one that's
     // atomically-unlocked-and-descheduled upon and reacquired during wakeup.
@@ -380,7 +379,6 @@ pub fn access<U>(&self, blk: &fn() -> U) -> U { (&self.sem).access(blk) }
  * unwinds.
  */
 
-// reedlepee did not change !!
 pub struct Mutex { priv sem: Sem<~[WaitQueue]> }
 impl Clone for Mutex {
     /// Create a new handle to the mutex.
@@ -448,7 +446,6 @@ struct RWLockInner {
  * unwinds.
  */
 pub struct RWLock {
-    // reedlepee did not change they were already priv!!
     priv order_lock:  Semaphore,
     priv access_lock: Sem<~[WaitQueue]>,
     priv state:       UnsafeArc<RWLockInner>,
@@ -669,11 +666,9 @@ pub fn downgrade<'a>(&self, token: RWLockWriteMode<'a>)
 
 /// The "write permission" token used for rwlock.write_downgrade().
 
-// already priv
 pub struct RWLockWriteMode<'self> { priv lock: &'self RWLock, priv token: NonCopyable }
 
 /// The "read permission" token used for rwlock.write_downgrade().
-// already priv
 pub struct RWLockReadMode<'self> { priv lock: &'self RWLock,
                                    priv token: NonCopyable }
 
index 50ddac3f84b2dbd5c7091ee1a83e77a6b5322493..f7db66dc4e0c491253d5342b7b304c6b00a08024 100644 (file)
@@ -28,7 +28,6 @@ enum Msg<T> {
 }
 
 pub struct TaskPool<T> {
-    /// all were made priv by reedlepee
     priv channels: ~[Chan<Msg<T>>],
     priv next_index: uint,
 }
index f2a022de233c9af9558258909d00ccb88c1b3c72..d8fa130916a46a437d4c3f613583bb790569afed 100644 (file)
@@ -18,7 +18,6 @@
 /// A wrapper for a path to temporary directory implementing automatic
 /// scope-pased deletion.
 pub struct TempDir {
-    // all were already priv!!
     priv path: Option<Path>
 }
 
index 095afe7f77ea6581bec6330df8a4130c0eb7e2cf..6bef136f41498583ca9a9f98df472ca7cb6a29aa 100644 (file)
@@ -96,18 +96,14 @@ fn cap_for_attr(attr: attr::Attr) -> &'static str {
 #[cfg(not(target_os = "win32"))]
 pub struct Terminal {
 
-// this was made priv by reedlepee
     priv num_colors: u16,
-    // These were already priv
     priv out: @io::Writer,
     priv ti: ~TermInfo
 }
 
 #[cfg(target_os = "win32")]
 pub struct Terminal {
-    // this was made priv by reedlepee
     priv num_colors: u16,
-   // These were already priv
     priv out: @io::Writer,
 }
 
index 618067efb326dd54f28bc268922ba9bb06d48e27..c0a5d9d53aa9eb915d8818ad1c6b077d4e72daa3 100644 (file)
@@ -47,7 +47,6 @@ pub enum Param {
 
 /// Container for static and dynamic variable arrays
 pub struct Variables {
-    // made priv by redlpee
     /// Static variables A-Z
     priv sta: [Param, ..26],
     /// Dynamic variables a-z
index 691f5420dc85cab42358be8c757379dfee774afc..06bf6e47c329107bd7651e0c215805e467bce4eb 100644 (file)
@@ -14,7 +14,6 @@
 
 /// A parsed terminfo entry.
 pub struct TermInfo {
-    // made priv by redlpee
     /// Names for the terminal
     priv names: ~[~str],
     /// Map of capability name to boolean value
index 78ee0db399e73ab1171112c9185a81f30b016e4a..f95c7aa22b7f0407f8c511d2e66dc1be38e70edc 100644 (file)
@@ -102,11 +102,9 @@ fn padding(&self) -> NamePadding {
 
 // Structure passed to BenchFns
 pub struct BenchHarness {
-    // all changed to priv by reedlepee
     priv iterations: u64,
     priv ns_start: u64,
     priv ns_end: u64,
-    // should be public
     bytes: u64
 }
 
@@ -114,27 +112,23 @@ pub struct BenchHarness {
 // these.
 #[deriving(Clone)]
 pub struct TestDesc {
-    // all changed to priv by reedlepee
     name: TestName,
     ignore: bool,
     should_fail: bool
 }
 
 pub struct TestDescAndFn {
-    // all changed to priv by reedlepee
     desc: TestDesc,
     testfn: TestFn,
 }
 
 #[deriving(Clone, Encodable, Decodable, Eq)]
 pub struct Metric {
-    // all changed to priv by reedlepee
     priv value: f64,
     priv noise: f64
 }
 
 #[deriving(Eq)]
-/// not adding priv infront of this struct b/c its a tuple struct!! - reedlepee
 pub struct MetricMap(TreeMap<~str,Metric>);
 
 impl Clone for MetricMap {
@@ -192,7 +186,6 @@ pub fn test_main_static(args: &[~str], tests: &[TestDescAndFn]) {
 }
 
 pub struct TestOpts {
-    /// priv added in all by reedlepee!!
     filter: Option<~str>,
     run_ignored: bool,
     run_tests: bool,
@@ -329,7 +322,6 @@ pub fn opt_shard(maybestr: Option<~str>) -> Option<(uint,uint)> {
 
 #[deriving(Clone, Eq)]
 pub struct BenchSamples {
-    /// priv added in all by reedlepee
     priv ns_iter_summ: stats::Summary,
     priv mb_s: uint
 }
index 5b1754e7243f65e8532a4d2320ffaf6842103024..71569be3a8192e622540ffa89ffcdbc307066274 100644 (file)
@@ -32,7 +32,6 @@ pub mod rustrt {
 
 /// A record specifying a time value in seconds and nanoseconds.
 
-/// all were made priv reedlepee
 
 #[deriving(Clone, DeepClone, Eq, Encodable, Decodable)]
 pub struct Timespec { priv sec: i64, priv nsec: i32 }
@@ -107,7 +106,6 @@ pub fn tzset() {
 
 #[deriving(Clone, DeepClone, Eq, Encodable, Decodable)]
 pub struct Tm {
-    /// all were made priv by reedlepee
     priv tm_sec: i32, // seconds after the minute ~[0-60]
     priv tm_min: i32, // minutes after the hour ~[0-59]
     priv tm_hour: i32, // hours after midnight ~[0-23]
index ebb3494b5ebb0a677abca7393c418e21d1bfd6ec..ad196b32fb2cafc84b3cf3631bda1ddf80a3504e 100644 (file)
@@ -36,7 +36,6 @@
 #[allow(missing_doc)]
 #[deriving(Clone)]
 pub struct TreeMap<K, V> {
-    /// all were already priv!!
     priv root: Option<~TreeNode<K, V>>,
     priv length: uint
 }
@@ -230,7 +229,6 @@ pub fn move_iter(self) -> TreeMapMoveIterator<K, V> {
 
 /// Lazy forward iterator over a map
 pub struct TreeMapIterator<'self, K, V> {
-    // all were already priv
     priv stack: ~[&'self ~TreeNode<K, V>],
     priv node: &'self Option<~TreeNode<K, V>>,
     priv remaining_min: uint,
@@ -277,7 +275,6 @@ fn size_hint(&self) -> (uint, Option<uint>) {
 
 /// Lazy backward iterator over a map
 pub struct TreeMapRevIterator<'self, K, V> {
-    // all were  already priv
     priv iter: TreeMapIterator<'self, K, V>,
 }
 
@@ -336,7 +333,6 @@ fn iter_traverse_complete<'a, K, V>(it: &mut TreeMapIterator<'a, K, V>) {
 
 /// Lazy forward iterator over a map that consumes the map while iterating
 pub struct TreeMapMoveIterator<K, V> {
-    // all were laready priv!!
     priv stack: ~[TreeNode<K, V>],
     priv remaining: uint
 }
@@ -405,7 +401,6 @@ fn next(&mut self) -> Option<&'self T> {
 /// only requirement is that the type of the elements contained ascribes to the
 /// `TotalOrd` trait.
 pub struct TreeSet<T> {
-    //all were already priv
     priv map: TreeMap<T, ()>
 }
 
@@ -558,40 +553,34 @@ pub fn union<'a>(&'a self, other: &'a TreeSet<T>) -> Union<'a, T> {
 
 /// Lazy forward iterator over a set
 pub struct TreeSetIterator<'self, T> {
-    // all were already priv
     priv iter: TreeMapIterator<'self, T, ()>
 }
 
 /// Lazy backward iterator over a set
 pub struct TreeSetRevIterator<'self, T> {
-    // all were already priv
     priv iter: TreeMapRevIterator<'self, T, ()>
 }
 
 /// Lazy iterator producing elements in the set difference (in-order)
 pub struct Difference<'self, T> {
-    // all were already priv
     priv a: Peekable<&'self T, TreeSetIterator<'self, T>>,
     priv b: Peekable<&'self T, TreeSetIterator<'self, T>>,
 }
 
 /// Lazy iterator producing elements in the set symmetric difference (in-order)
 pub struct SymDifference<'self, T> {
-    // all were already priv
     priv a: Peekable<&'self T, TreeSetIterator<'self, T>>,
     priv b: Peekable<&'self T, TreeSetIterator<'self, T>>,
 }
 
 /// Lazy iterator producing elements in the set intersection (in-order)
 pub struct Intersection<'self, T> {
-    // all were already priv
     priv a: Peekable<&'self T, TreeSetIterator<'self, T>>,
     priv b: Peekable<&'self T, TreeSetIterator<'self, T>>,
 }
 
 /// Lazy iterator producing elements in the set intersection (in-order)
 pub struct Union<'self, T> {
-    // all were already priv
     priv a: Peekable<&'self T, TreeSetIterator<'self, T>>,
     priv b: Peekable<&'self T, TreeSetIterator<'self, T>>,
 }
index 103d185aa1eac50f948596616ba7f94c82a554a5..e836d3b52709cf8aa8547e0e240ddd0c75bcce77 100644 (file)
 
 #[deriving(Clone, Eq)]
 pub struct Url {
-    // all were made privv bt reedlepee
-    priv scheme: ~str,
-    priv user: Option<UserInfo>,
-    priv host: ~str,
-    priv port: Option<~str>,
-    priv path: ~str,
-    priv query: Query,
-    priv fragment: Option<~str>
+    scheme: ~str,
+    user: Option<UserInfo>,
+    host: ~str,
+    port: Option<~str>,
+    path: ~str,
+    query: Query,
+    fragment: Option<~str>
 }
 
 #[deriving(Clone, Eq)]
 pub struct UserInfo {
-    // all were made privv bt reedlepee
-    priv user: ~str,
-    priv pass: Option<~str>
+    user: ~str,
+    pass: Option<~str>
 }
 
 pub type Query = ~[(~str, ~str)];
index fa5c302faeec79b30a0d6ab6671de5cacb591e00..345cf64f1281aa856d707b9f0a6f560029c27c63 100644 (file)
@@ -102,7 +102,6 @@ pub enum UuidVariant {
 /// A Universally Unique Identifier (UUID)
 pub struct Uuid {
     /// The 128-bit number stored in 16 bytes
-    /// should be public
     bytes: UuidBytes
 }
 
index f30fa3362c5117130a6feaa98e96a83fa5d15334..4d79b2059db5cd94b14d3d94418050563337d700 100644 (file)
@@ -128,7 +128,6 @@ fn insert_work_key(&mut self, k: WorkKey, val: ~str) {
 }
 
 pub struct Database {
-    /// all were made by reedlepee
     priv db_filename: Path,
     priv db_cache: TreeMap<~str, ~str>,
     db_dirty: bool
@@ -210,7 +209,6 @@ fn drop(&mut self) {
 
 pub struct Logger {
     // FIXME #4432: Fill in
-    /// alll were made priv reeldepee
     priv a: ()
 }
 
@@ -229,7 +227,6 @@ pub fn info(&self, i: &str) {
 
 #[deriving(Clone)]
 pub struct Context {
-//// all were made priv by reedlepee
     db: RWArc<Database>,
     priv logger: RWArc<Logger>,
     priv cfg: Arc<json::Object>,
@@ -243,14 +240,12 @@ pub struct Context {
 }
 
 pub struct Prep<'self> {
-//// all were made priv by reedlepee
     priv ctxt: &'self Context,
     priv fn_name: &'self str,
     priv declared_inputs: WorkMap,
 }
 
 pub struct Exec {
-//// all were made priv by reedlepee
     priv discovered_inputs: WorkMap,
     priv discovered_outputs: WorkMap
 }
index 2f1ac2c6b6b583782f92bc4aa100d96b06ace88d..acfa02a4defd5f2782068673b135c83d927e15ce 100644 (file)
@@ -92,7 +92,6 @@ pub enum NullByteResolution {
 /// This structure wraps a `*libc::c_char`, and will automatically free the
 /// memory it is pointing to when it goes out of scope.
 pub struct CString {
-    // already priv
     priv buf: *libc::c_char,
     priv owns_buffer_: bool,
 }
@@ -333,7 +332,6 @@ fn check_for_null(v: &[u8], buf: *mut libc::c_char) {
 ///
 /// Use with the `std::iterator` module.
 pub struct CStringIterator<'self> {
-    // already priv
     priv ptr: *libc::c_char,
     priv lifetime: &'self libc::c_char, // FIXME: #5922
 }
index e1ba46e8f27505c24b351233fc2010cc5bbf03b7..a1459b780dfb3cd204d4d47bc8f1d04eb2da374e 100644 (file)
@@ -26,7 +26,6 @@
 #[deriving(Clone, DeepClone, Eq)]
 #[allow(missing_doc)]
 pub struct Cell<T> {
-    // already priv
     priv value: Option<T>
 }
 
index 346e8a51322a14858d60db3fca5a30812ebba07c..cb9552b189ce5b7fa99184bb694473501f5e8461 100644 (file)
@@ -72,7 +72,6 @@
 
 #[doc(hidden)]
 pub struct Handler<T, U> {
-    //already priv
     priv handle: Closure,
     priv prev: Option<@Handler<T, U>>,
 }
@@ -84,7 +83,6 @@ pub struct Handler<T, U> {
 /// This struct should never be created directly, but rather only through the
 /// `condition!` macro provided to all libraries using libstd.
 pub struct Condition<T, U> {
-    // all made priv by reedlepee
     /// Name of the condition handler
     name: &'static str,
     /// TLS key used to insert/remove values in TLS.
index b47559b6055f5b50722ecfd38c6bf18ae1aa9960..e5188d737bdfed178ce4f2b249dda479a9f48d96 100644 (file)
@@ -477,7 +477,6 @@ fn main() {
 /// should be formatted. A mutable version of this is passed to all formatting
 /// traits.
 pub struct Formatter<'self> {
-    // made by reedlepee
     /// Flags for formatting (packed version of rt::Flag)
      flags: uint,
     /// Character used as 'fill' whenever there is alignment
@@ -502,7 +501,6 @@ pub struct Formatter<'self> {
 /// compile time it is ensured that the function and the value have the correct
 /// types, and then this struct is used to canonicalize arguments to one type.
 pub struct Argument<'self> {
-    // already priv
     priv formatter: extern "Rust" fn(&util::Void, &mut Formatter),
     priv value: &'self util::Void,
 }
@@ -529,7 +527,6 @@ pub unsafe fn new<'a>(fmt: &'static [rt::Piece<'static>],
 /// string at compile-time so usage of the `write` and `format` functions can
 /// be safely performed.
 pub struct Arguments<'self> {
-    // already priv
     priv fmt: &'self [rt::Piece<'self>],
     priv args: &'self [Argument<'self>],
 }
index fea512c08b4a52c2fef05da73dfb233ac9cc2fbe..504050f9a771a73026cea8aa88c03ae6dd838504 100644 (file)
@@ -38,20 +38,17 @@ pub enum Piece<'self> {
 /// Representation of an argument specification.
 #[deriving(Eq)]
 pub struct Argument<'self> {
-    // made by reedlepee
     /// Where to find this argument
     position: Position<'self>,
-    ///  How to format the argument
+    /// How to format the argument
     format: FormatSpec<'self>,
     /// If not `None`, what method to invoke on the argument
-    // should be public
     method: Option<~Method<'self>>
 }
 
 /// Specification for the formatting of an argument in the format string.
 #[deriving(Eq)]
 pub struct FormatSpec<'self> {
-    // made by reedlepee
     /// Optionally specified character to fill alignment with
     fill: Option<char>,
     /// Optionally specified alignment
@@ -128,7 +125,6 @@ pub enum Method<'self> {
 /// Structure representing one "arm" of the `plural` function.
 #[deriving(Eq)]
 pub struct PluralArm<'self> {
-    // made by reedlepee
     /// A selector can either be specified by a keyword or with an integer
     /// literal.
     selector: Either<PluralKeyword, uint>,
@@ -149,7 +145,6 @@ pub enum PluralKeyword {
 /// Structure representing one "arm" of the `select` function.
 #[deriving(Eq)]
 pub struct SelectArm<'self> {
-    // made by reedlepee
     /// String selector which guards this arm
     selector: &'self str,
     /// Array of pieces which are the format of this arm
@@ -163,7 +158,6 @@ pub struct SelectArm<'self> {
 /// This is a recursive-descent parser for the sake of simplicity, and if
 /// necessary there's probably lots of room for improvement performance-wise.
 pub struct Parser<'self> {
-    // already priv
     priv input: &'self str,
     priv cur: str::CharOffsetIterator<'self>,
     priv depth: uint,
index a623695c8a1b515c96a1ac574a18db3755c82d77..d9a7557e55312f0fbcbb669cf7e5928a9ea0c5aa 100644 (file)
@@ -29,14 +29,12 @@ pub enum Piece<'self> {
 }
 
 pub struct Argument<'self> {
-    /// should be public
     position: Position,
     format: FormatSpec,
     method: Option<&'self Method<'self>>
 }
 
 pub struct FormatSpec {
-    /// made by redlepee
     fill: char,
     align: parse::Alignment,
     flags: uint,
@@ -58,13 +56,11 @@ pub enum Method<'self> {
 }
 
 pub struct PluralArm<'self> {
-    /// made by redlepee
     selector: Either<parse::PluralKeyword, uint>,
     result: &'self [Piece<'self>],
 }
 
 pub struct SelectArm<'self> {
-    /// made by redlepee
     selector: &'self str,
     result: &'self [Piece<'self>],
 }
index ec792510271a5da89ece8fe1e3352c89b7151149..edefd39ebb4d1c62f7be6b50d99dffcaa468e333 100644 (file)
@@ -48,7 +48,6 @@ struct Bucket<K,V> {
 /// `IterBytes` traits as `Hash` is automatically implemented for types that
 /// implement `IterBytes`.
 pub struct HashMap<K,V> {
-    // already priv
     priv k0: u64,
     priv k1: u64,
     priv resize_at: uint,
@@ -518,32 +517,27 @@ fn clone(&self) -> HashMap<K,V> {
 /// HashMap iterator
 #[deriving(Clone)]
 pub struct HashMapIterator<'self, K, V> {
-    // already priv
     priv iter: vec::VecIterator<'self, Option<Bucket<K, V>>>,
 }
 
 /// HashMap mutable values iterator
 pub struct HashMapMutIterator<'self, K, V> {
-    // already priv
     priv iter: vec::VecMutIterator<'self, Option<Bucket<K, V>>>,
 }
 
 /// HashMap move iterator
 pub struct HashMapMoveIterator<K, V> {
-    // already priv
     priv iter: vec::MoveRevIterator<Option<Bucket<K, V>>>,
 }
 
 /// HashSet iterator
 #[deriving(Clone)]
 pub struct HashSetIterator<'self, K> {
-    // already priv
     priv iter: vec::VecIterator<'self, Option<Bucket<K, ()>>>,
 }
 
 /// HashSet move iterator
 pub struct HashSetMoveIterator<K> {
-    // already priv
     priv iter: vec::MoveRevIterator<Option<Bucket<K, ()>>>,
 }
 
@@ -637,7 +631,6 @@ fn default() -> HashMap<K, V> { HashMap::new() }
 /// HashMap where the value is (). As with the `HashMap` type, a `HashSet`
 /// requires that the elements implement the `Eq` and `Hash` traits.
 pub struct HashSet<T> {
-    // already priv
     priv map: HashMap<T, ()>
 }
 
index 297ba84fbf9fb356857bd9b5a76201d1416660ad..922150cb279f57c3a50cf8c67780a8a0746c9005 100644 (file)
@@ -1009,7 +1009,6 @@ fn tell(&self) -> uint { self.base.tell() }
 }
 
 pub struct FILERes {
-    // all by reedlepee
     priv f: *libc::FILE,
 }
 
@@ -1081,7 +1080,6 @@ pub fn file_reader(path: &Path) -> Result<@Reader, ~str> {
 
 // Byte readers
 pub struct BytesReader {
-    // all by reedlepee
     // FIXME(#5723) see other FIXME below
     // FIXME(#7268) this should also be parameterized over <'self>
     bytes: &'static [u8],
@@ -1284,7 +1282,6 @@ fn get_type(&self) -> WriterType {
 }
 
 pub struct FdRes {
-    // all by reedlepee
     priv fd: fd_t,
 }
 
@@ -1677,7 +1674,6 @@ pub fn println(s: &str) {
 }
 
 pub struct BytesWriter {
-    // all by reedlepee
     bytes: @mut ~[u8],
     pos: @mut uint,
 }
@@ -1796,7 +1792,6 @@ pub enum Level {
 
     // Artifacts that need to fsync on destruction
     pub struct Res<t> {
-        // all by reedlepee
         priv arg: Arg<t>,
     }
 
@@ -1820,7 +1815,6 @@ fn drop(&mut self) {
     }
 
     pub struct Arg<t> {
-       // all by reedlepee
        priv val: t,
        priv opt_level: Option<Level>,
        priv fsync_fn: extern "Rust" fn(f: &t, Level) -> int,
index 4985557dff7879db2f6d4a09abc846a46fa774b6..e854d338f547b142b857e1f1e6a2f6b240908c47 100644 (file)
@@ -765,8 +765,6 @@ impl<A, B, T: ExactSize<A>, U: ExactSize<B>> ExactSize<(A, B)> for Zip<T, U> {}
 /// An double-ended iterator with the direction inverted
 #[deriving(Clone)]
 pub struct Invert<T> {
-    // already priv
-    // already priv
     priv iter: T
 }
 
index 67d64596460f4613e9c9fd7b4959fb8101676b45..d4df0e826f604b8bc9c5099c068afd371312bb0d 100644 (file)
@@ -226,16 +226,15 @@ pub mod posix01 {
                 use libc::types::common::c95::{c_void};
                 use libc::types::os::arch::c95::{c_char, size_t};
                 pub struct glob_t {
-                    // all made by reedlepee
-                    priv gl_pathc: size_t,
-                    priv gl_pathv: **c_char,
-                    priv gl_offs:  size_t,
-
-                    priv __unused1: *c_void,
-                    priv __unused2: *c_void,
-                    priv __unused3: *c_void,
-                     __unused4: *c_void,
-                     __unused5: *c_void,
+                    gl_pathc: size_t,
+                    gl_pathv: **c_char,
+                    gl_offs:  size_t,
+
+                    __unused1: *c_void,
+                    __unused2: *c_void,
+                    __unused3: *c_void,
+                    __unused4: *c_void,
+                    __unused5: *c_void,
                 }
             }
         }
@@ -305,16 +304,15 @@ pub mod posix01 {
                 pub type blkcnt_t = i32;
 
                 pub struct stat {
-                    // all made by reedlepee
                     st_dev: dev_t,
-                     __pad1: c_short,
+                    __pad1: c_short,
                     st_ino: ino_t,
                     st_mode: mode_t,
                     st_nlink: nlink_t,
-                     st_uid: uid_t,
+                    st_uid: uid_t,
                     st_gid: gid_t,
-                     st_rdev: dev_t,
-                     __pad2: c_short,
+                    st_rdev: dev_t,
+                    __pad2: c_short,
                     st_size: off_t,
                     st_blksize: blksize_t,
                     st_blocks: blkcnt_t,
@@ -325,7 +323,7 @@ pub struct stat {
                     st_ctime: time_t,
                     st_ctime_nsec: c_long,
                     __unused4: c_long,
-                     __unused5: c_long,
+                    __unused5: c_long,
                 }
             }
             #[cfg(target_arch = "arm")]
@@ -339,16 +337,15 @@ pub mod posix01 {
                 pub type blkcnt_t = u32;
 
                 pub struct stat {
-                    // all made priv by reedlepee
                     st_dev: c_ulonglong,
-                    priv __pad0: [c_uchar, ..4],
-                    priv __st_ino: ino_t,
+                    __pad0: [c_uchar, ..4],
+                    __st_ino: ino_t,
                     st_mode: c_uint,
                     st_nlink: c_uint,
-                     st_uid: uid_t,
-                     st_gid: gid_t,
-                     st_rdev: c_ulonglong,
-                    priv __pad3: [c_uchar, ..4],
+                    st_uid: uid_t,
+                    st_gid: gid_t,
+                    st_rdev: c_ulonglong,
+                    __pad3: [c_uchar, ..4],
                     st_size: c_longlong,
                     st_blksize: blksize_t,
                     st_blocks: c_ulonglong,
@@ -356,8 +353,8 @@ pub struct stat {
                     st_atime_nsec: c_ulong,
                     st_mtime: time_t,
                     st_mtime_nsec: c_ulong,
-                     st_ctime: time_t,
-                     st_ctime_nsec: c_ulong,
+                    st_ctime: time_t,
+                    st_ctime_nsec: c_ulong,
                     st_ino: c_ulonglong
                 }
             }
@@ -373,18 +370,17 @@ pub mod posix01 {
                 pub type blkcnt_t = i32;
 
                 pub struct stat {
-                    /// all made priv by reedlepee
                     st_dev: c_ulong,
-                    priv st_pad1: [c_long, ..3],
+                    st_pad1: [c_long, ..3],
                     st_ino: ino_t,
                     st_mode: mode_t,
                     st_nlink: nlink_t,
                     st_uid: uid_t,
                     st_gid: gid_t,
                     st_rdev: c_ulong,
-                    priv st_pad2: [c_long, ..2],
+                    st_pad2: [c_long, ..2],
                     st_size: off_t,
-                    priv st_pad3: c_long,
+                    st_pad3: c_long,
                     st_atime: time_t,
                     st_atime_nsec: c_long,
                     st_mtime: time_t,
@@ -393,7 +389,7 @@ pub struct stat {
                     st_ctime_nsec: c_long,
                     st_blksize: blksize_t,
                     st_blocks: blkcnt_t,
-                    priv st_pad5: [c_long, ..14],
+                    st_pad5: [c_long, ..14],
                 }
             }
             pub mod posix08 {}
@@ -448,25 +444,24 @@ pub mod posix01 {
                 pub type blksize_t = i64;
                 pub type blkcnt_t = i64;
                 pub struct stat {
-                    // all made by reedlepee
                     st_dev: dev_t,
                     st_ino: ino_t,
                     st_nlink: nlink_t,
                     st_mode: mode_t,
                     st_uid: uid_t,
                     st_gid: gid_t,
-                    priv __pad0: c_int,
-                     st_rdev: dev_t,
+                    __pad0: c_int,
+                    st_rdev: dev_t,
                     st_size: off_t,
                     st_blksize: blksize_t,
                     st_blocks: blkcnt_t,
-                     st_atime: time_t,
+                    st_atime: time_t,
                     st_atime_nsec: c_long,
                     st_mtime: time_t,
                     st_mtime_nsec: c_long,
                     st_ctime: time_t,
                     st_ctime_nsec: c_long,
-                    priv __unused: [c_long, ..3],
+                    __unused: [c_long, ..3],
                 }
             }
             pub mod posix08 {
@@ -485,20 +480,19 @@ pub mod posix01 {
                 use libc::types::common::c95::{c_void};
                 use libc::types::os::arch::c95::{c_char, c_int, size_t};
                 pub struct glob_t {
-                    // all made priv by reedlepee
-                    priv gl_pathc:  size_t,
-                    priv __unused1: size_t,
-                    priv gl_offs:   size_t,
-                    priv __unused2: c_int,
-                    priv gl_pathv:  **c_char,
-
-                    priv __unused3: *c_void,
-
-                     __unused4: *c_void,
-                     __unused5: *c_void,
-                    priv __unused6: *c_void,
-                    priv __unused7: *c_void,
-                    priv __unused8: *c_void,
+                    gl_pathc:  size_t,
+                    __unused1: size_t,
+                    gl_offs:   size_t,
+                    __unused2: c_int,
+                    gl_pathv:  **c_char,
+
+                    __unused3: *c_void,
+
+                    __unused4: *c_void,
+                    __unused5: *c_void,
+                    __unused6: *c_void,
+                    __unused7: *c_void,
+                    __unused8: *c_void,
                 }
             }
         }
@@ -552,14 +546,13 @@ pub mod posix01 {
                 pub type blkcnt_t = i64;
                 pub type fflags_t = u32;
                 pub struct stat {
-                    // all made by reedlepee
                     st_dev: dev_t,
                     st_ino: ino_t,
                     st_mode: mode_t,
                     st_nlink: nlink_t,
-                     st_uid: uid_t,
-                     st_gid: gid_t,
-                     st_rdev: dev_t,
+                    st_uid: uid_t,
+                    st_gid: gid_t,
+                    st_rdev: dev_t,
                     st_atime: time_t,
                     st_atime_nsec: c_long,
                     st_mtime: time_t,
@@ -569,12 +562,12 @@ pub struct stat {
                     st_size: off_t,
                     st_blocks: blkcnt_t,
                     st_blksize: blksize_t,
-                    priv st_flags: fflags_t,
-                    priv st_gen: uint32_t,
-                    priv st_lspare: int32_t,
-                    priv st_birthtime: time_t,
-                    priv st_birthtime_nsec: c_long,
-                    priv __unused: [uint8_t, ..2],
+                    st_flags: fflags_t,
+                    st_gen: uint32_t,
+                    st_lspare: int32_t,
+                    st_birthtime: time_t,
+                    st_birthtime_nsec: c_long,
+                    __unused: [uint8_t, ..2],
                 }
             }
             pub mod posix08 {
@@ -598,14 +591,13 @@ pub mod posix01 {
                 // Note: this is the struct called stat64 in win32. Not stat,
                 // nor stati64.
                 pub struct stat {
-                    // all made privv by reedlepee
                     st_dev: dev_t,
                     st_ino: ino_t,
                     st_mode: mode_t,
                     st_nlink: c_short,
-                     st_uid: c_short,
+                    st_uid: c_short,
                     st_gid: c_short,
-                     st_rdev: dev_t,
+                    st_rdev: dev_t,
                     st_size: int64,
                     st_atime: time64_t,
                     st_mtime: time64_t,
@@ -705,49 +697,47 @@ pub mod extra {
                 pub type int64 = i64;
 
                 pub struct STARTUPINFO {
-                    // all made by reedlepee
-                    priv cb: DWORD,
-                    priv lpReserved: LPTSTR,
-                    priv lpDesktop: LPTSTR,
-                    priv lpTitle: LPTSTR,
-                    priv dwX: DWORD,
-                    priv dwY: DWORD,
-                    priv dwXSize: DWORD,
-                    priv dwYSize: DWORD,
-                    priv dwXCountChars: DWORD,
-                    priv dwYCountCharts: DWORD,
-                    priv dwFillAttribute: DWORD,
-                    priv dwFlags: DWORD,
-                    priv wShowWindow: WORD,
-                    priv cbReserved2: WORD,
-                    priv lpReserved2: LPBYTE,
-                    priv hStdInput: HANDLE,
-                    priv hStdOutput: HANDLE,
-                    priv hStdError: HANDLE
+                    cb: DWORD,
+                    lpReserved: LPTSTR,
+                    lpDesktop: LPTSTR,
+                    lpTitle: LPTSTR,
+                    dwX: DWORD,
+                    dwY: DWORD,
+                    dwXSize: DWORD,
+                    dwYSize: DWORD,
+                    dwXCountChars: DWORD,
+                    dwYCountCharts: DWORD,
+                    dwFillAttribute: DWORD,
+                    dwFlags: DWORD,
+                    wShowWindow: WORD,
+                    cbReserved2: WORD,
+                    lpReserved2: LPBYTE,
+                    hStdInput: HANDLE,
+                    hStdOutput: HANDLE,
+                    hStdError: HANDLE
                 }
                 pub type LPSTARTUPINFO = *mut STARTUPINFO;
+
                 pub struct PROCESS_INFORMATION {
-                    // all made by reedlepee
-                    priv hProcess: HANDLE,
-                    priv hThread: HANDLE,
-                    priv dwProcessId: DWORD,
-                    priv dwThreadId: DWORD
+                    hProcess: HANDLE,
+                    hThread: HANDLE,
+                    dwProcessId: DWORD,
+                    dwThreadId: DWORD
                 }
                 pub type LPPROCESS_INFORMATION = *mut PROCESS_INFORMATION;
 
                 pub struct SYSTEM_INFO {
-                    // all made by reedlepee
-                    priv wProcessorArchitecture: WORD,
-                    priv wReserved: WORD,
-                    priv dwPageSize: DWORD,
-                    priv lpMinimumApplicationAddress: LPVOID,
-                    priv lpMaximumApplicationAddress: LPVOID,
-                    priv dwActiveProcessorMask: DWORD,
-                    priv dwNumberOfProcessors: DWORD,
-                    priv dwProcessorType: DWORD,
-                    priv dwAllocationGranularity: DWORD,
-                    priv wProcessorLevel: WORD,
-                    priv wProcessorRevision: WORD
+                    wProcessorArchitecture: WORD,
+                    wReserved: WORD,
+                    dwPageSize: DWORD,
+                    lpMinimumApplicationAddress: LPVOID,
+                    lpMaximumApplicationAddress: LPVOID,
+                    dwActiveProcessorMask: DWORD,
+                    dwNumberOfProcessors: DWORD,
+                    dwProcessorType: DWORD,
+                    dwAllocationGranularity: DWORD,
+                    wProcessorLevel: WORD,
+                    wProcessorRevision: WORD
                 }
                 pub type LPSYSTEM_INFO = *mut SYSTEM_INFO;
 
@@ -770,14 +760,13 @@ pub fn new() -> SYSTEM_INFO {
                 }
 
                 pub struct MEMORY_BASIC_INFORMATION {
-                    // all made by reedlepee
-                    priv BaseAddress: LPVOID,
-                    priv AllocationBase: LPVOID,
-                    priv AllocationProtect: DWORD,
-                    priv RegionSize: SIZE_T,
-                    priv State: DWORD,
-                    priv Protect: DWORD,
-                    priv Type: DWORD
+                    BaseAddress: LPVOID,
+                    AllocationBase: LPVOID,
+                    AllocationProtect: DWORD,
+                    RegionSize: SIZE_T,
+                    State: DWORD,
+                    Protect: DWORD,
+                    Type: DWORD
                 }
                 pub type LPMEMORY_BASIC_INFORMATION = *mut MEMORY_BASIC_INFORMATION;
             }
@@ -874,50 +863,47 @@ pub mod extra {
                 pub type int64 = i64;
 
                 pub struct STARTUPINFO {
-                     // all made by reedlepee
-                     priv cb: DWORD,
-                     priv lpReserved: LPTSTR,
-                     priv lpDesktop: LPTSTR,
-                     priv lpTitle: LPTSTR,
-                     priv dwX: DWORD,
-                     priv dwY: DWORD,
-                     priv dwXSize: DWORD,
-                     priv dwYSize: DWORD,
-                     priv dwXCountChars: DWORD,
-                     priv dwYCountCharts: DWORD,
-                     priv dwFillAttribute: DWORD,
-                     priv dwFlags: DWORD,
-                     priv wShowWindow: WORD,
-                     priv cbReserved2: WORD,
-                     priv lpReserved2: LPBYTE,
-                     priv hStdInput: HANDLE,
-                     priv hStdOutput: HANDLE,
-                     priv hStdError: HANDLE
+                    cb: DWORD,
+                    lpReserved: LPTSTR,
+                    lpDesktop: LPTSTR,
+                    lpTitle: LPTSTR,
+                    dwX: DWORD,
+                    dwY: DWORD,
+                    dwXSize: DWORD,
+                    dwYSize: DWORD,
+                    dwXCountChars: DWORD,
+                    dwYCountCharts: DWORD,
+                    dwFillAttribute: DWORD,
+                    dwFlags: DWORD,
+                    wShowWindow: WORD,
+                    cbReserved2: WORD,
+                    lpReserved2: LPBYTE,
+                    hStdInput: HANDLE,
+                    hStdOutput: HANDLE,
+                    hStdError: HANDLE
                 }
                 pub type LPSTARTUPINFO = *mut STARTUPINFO;
 
                 pub struct PROCESS_INFORMATION {
-                    // all made by reedlepee
-                    priv hProcess: HANDLE,
-                    priv hThread: HANDLE,
-                    priv dwProcessId: DWORD,
-                    priv dwThreadId: DWORD
+                    hProcess: HANDLE,
+                    hThread: HANDLE,
+                    dwProcessId: DWORD,
+                    dwThreadId: DWORD
                 }
                 pub type LPPROCESS_INFORMATION = *mut PROCESS_INFORMATION;
 
                 pub struct SYSTEM_INFO {
-                     // all made by reedlepee
-                     priv wProcessorArchitecture: WORD,
-                     priv wReserved: WORD,
-                     priv dwPageSize: DWORD,
-                     priv lpMinimumApplicationAddress: LPVOID,
-                     priv lpMaximumApplicationAddress: LPVOID,
-                     priv dwActiveProcessorMask: DWORD,
-                     priv dwNumberOfProcessors: DWORD,
-                     priv dwProcessorType: DWORD,
-                     priv dwAllocationGranularity: DWORD,
-                     priv wProcessorLevel: WORD,
-                     priv wProcessorRevision: WORD
+                    wProcessorArchitecture: WORD,
+                    wReserved: WORD,
+                    dwPageSize: DWORD,
+                    lpMinimumApplicationAddress: LPVOID,
+                    lpMaximumApplicationAddress: LPVOID,
+                    dwActiveProcessorMask: DWORD,
+                    dwNumberOfProcessors: DWORD,
+                    dwProcessorType: DWORD,
+                    dwAllocationGranularity: DWORD,
+                    wProcessorLevel: WORD,
+                    wProcessorRevision: WORD
                 }
                 pub type LPSYSTEM_INFO = *mut SYSTEM_INFO;
 
@@ -940,14 +926,13 @@ pub fn new() -> SYSTEM_INFO {
                 }
 
                 pub struct MEMORY_BASIC_INFORMATION {
-                     // all made by reedlepee
-                     priv BaseAddress: LPVOID,
-                     priv AllocationBase: LPVOID,
-                     priv AllocationProtect: DWORD,
-                     priv RegionSize: SIZE_T,
-                     priv State: DWORD,
-                     priv Protect: DWORD,
-                     priv Type: DWORD
+                    BaseAddress: LPVOID,
+                    AllocationBase: LPVOID,
+                    AllocationProtect: DWORD,
+                    RegionSize: SIZE_T,
+                    State: DWORD,
+                    Protect: DWORD,
+                    Type: DWORD
                 }
                 pub type LPMEMORY_BASIC_INFORMATION = *mut MEMORY_BASIC_INFORMATION;
             }
@@ -961,20 +946,19 @@ pub mod posix01 {
                 use libc::types::common::c95::{c_void};
                 use libc::types::os::arch::c95::{c_char, c_int, size_t};
                 pub struct glob_t {
-                    // all made by reedlepee
-                    priv gl_pathc:  size_t,
-                    priv __unused1: c_int,
-                    priv gl_offs:   size_t,
-                    priv __unused2: c_int,
-                    priv gl_pathv:  **c_char,
-
-                    priv __unused3: *c_void,
-
-                     __unused4: *c_void,
-                     __unused5: *c_void,
-                    priv __unused6: *c_void,
-                    priv __unused7: *c_void,
-                    priv __unused8: *c_void,
+                    gl_pathc:  size_t,
+                    __unused1: c_int,
+                    gl_offs:   size_t,
+                    __unused2: c_int,
+                    gl_pathv:  **c_char,
+
+                    __unused3: *c_void,
+
+                    __unused4: *c_void,
+                    __unused5: *c_void,
+                    __unused6: *c_void,
+                    __unused7: *c_void,
+                    __unused8: *c_void,
                 }
             }
         }
@@ -1027,29 +1011,28 @@ pub mod posix01 {
                 pub type blkcnt_t = i32;
 
                 pub struct stat {
-                    // all made by reedlepee
                     st_dev: dev_t,
                     st_mode: mode_t,
                     st_nlink: nlink_t,
                     st_ino: ino_t,
-                     st_uid: uid_t,
-                     st_gid: gid_t,
-                     st_rdev: dev_t,
+                    st_uid: uid_t,
+                    st_gid: gid_t,
+                    st_rdev: dev_t,
                     st_atime: time_t,
                     st_atime_nsec: c_long,
                     st_mtime: time_t,
                     st_mtime_nsec: c_long,
                     st_ctime: time_t,
                     st_ctime_nsec: c_long,
-                    priv st_birthtime: time_t,
-                    priv st_birthtime_nsec: c_long,
+                    st_birthtime: time_t,
+                    st_birthtime_nsec: c_long,
                     st_size: off_t,
                     st_blocks: blkcnt_t,
                     st_blksize: blksize_t,
-                    priv st_flags: uint32_t,
-                    priv st_gen: uint32_t,
-                    priv st_lspare: int32_t,
-                    priv st_qspare: [int64_t, ..2],
+                    st_flags: uint32_t,
+                    st_gen: uint32_t,
+                    st_lspare: int32_t,
+                    st_qspare: [int64_t, ..2],
                 }
             }
             pub mod posix08 {
@@ -1109,29 +1092,28 @@ pub mod posix01 {
                 pub type blkcnt_t = i32;
 
                 pub struct stat {
-                     // all made by reedlepee
-                     st_dev: dev_t,
-                     st_mode: mode_t,
-                     st_nlink: nlink_t,
-                     st_ino: ino_t,
-                     st_uid: uid_t,
-                     st_gid: gid_t,
-                     st_rdev: dev_t,
-                     st_atime: time_t,
-                     st_atime_nsec: c_long,
-                     st_mtime: time_t,
-                     st_mtime_nsec: c_long,
-                     st_ctime: time_t,
-                     st_ctime_nsec: c_long,
-                     priv st_birthtime: time_t,
-                     priv st_birthtime_nsec: c_long,
-                     st_size: off_t,
-                     st_blocks: blkcnt_t,
-                     st_blksize: blksize_t,
-                     priv st_flags: uint32_t,
-                     priv st_gen: uint32_t,
-                     priv st_lspare: int32_t,
-                     priv st_qspare: [int64_t, ..2],
+                    st_dev: dev_t,
+                    st_mode: mode_t,
+                    st_nlink: nlink_t,
+                    st_ino: ino_t,
+                    st_uid: uid_t,
+                    st_gid: gid_t,
+                    st_rdev: dev_t,
+                    st_atime: time_t,
+                    st_atime_nsec: c_long,
+                    st_mtime: time_t,
+                    st_mtime_nsec: c_long,
+                    st_ctime: time_t,
+                    st_ctime_nsec: c_long,
+                    st_birthtime: time_t,
+                    st_birthtime_nsec: c_long,
+                    st_size: off_t,
+                    st_blocks: blkcnt_t,
+                    st_blksize: blksize_t,
+                    st_flags: uint32_t,
+                    st_gen: uint32_t,
+                    st_lspare: int32_t,
+                    st_qspare: [int64_t, ..2],
                 }
             }
             pub mod posix08 {
index 95e61eca38ca1472adf66349089f6fc165057af6..732dbe64d015fb35db16acb6237f95cd3a947974 100644 (file)
@@ -454,7 +454,6 @@ pub fn unwrap_or_zero(self) -> T {
 /// An iterator that yields either one or zero elements
 #[deriving(Clone, DeepClone)]
 pub struct OptionIterator<A> {
-    // already priv
     priv opt: Option<A>
 }
 
index 16035327da62c005d0eefafc06879b441a61ca5b..ba2b42c9b9c8b227d50c263ee1f88cf62ffdea79 100644 (file)
@@ -412,7 +412,6 @@ pub fn fsync_fd(fd: c_int, _l: io::fsync::Level) -> c_int {
 }
 
 pub struct Pipe {
-    // made priv by reedlepee
     input: c_int,
     out: c_int
 }
@@ -1381,7 +1380,6 @@ pub fn page_size() -> uint {
 }
 
 pub struct MemoryMap {
-    // made priv by reedlepee
     data: *mut u8,
     len: size_t,
     kind: MemoryMapKind
index 113641ffe3e9c548a8348e3e65ec22692467baea..f71f67a30db84467c966c04e4d7de83b5e316157 100644 (file)
@@ -524,7 +524,6 @@ pub trait GenericPathUnsafe {
 
 /// Helper struct for printing paths with format!()
 pub struct Display<'self, P> {
-    /// already priv
     priv path: &'self P,
     priv filename: bool
 }
index 207b23ab5e8fe7b48babdcad7550e29e5749fce4..87821105d37e16769d13720bf131e077abccdcf7 100644 (file)
@@ -42,7 +42,6 @@
 /// Represents a POSIX file path
 #[deriving(Clone, DeepClone)]
 pub struct Path {
-    /// already priv
     priv repr: ~[u8], // assumed to never be empty or contain NULs
     priv sepidx: Option<uint> // index of the final separator in repr
 }
index 230b03c6554f037d1e6e28fdd1421188be397453..0de2bd4c742b990a010a8f33164b6bef69070514 100644 (file)
@@ -82,7 +82,6 @@
 // preserved by the data structure; let the Windows API error out on them.
 #[deriving(Clone, DeepClone)]
 pub struct Path {
-    /// already priv
     priv repr: ~str, // assumed to never be empty
     priv prefix: Option<PathPrefix>,
     priv sepidx: Option<uint> // index of the final separator in the non-prefix portion of repr
index 8c25a2f7971e7e22b6bc7ed690d2a564b8b0ad53..0068b60cfa51b12a53148408d8f4774e18321b73 100644 (file)
@@ -23,7 +23,6 @@
 ///
 /// The ISAAC algorithm is suitable for cryptographic purposes.
 pub struct IsaacRng {
-    /// already priv
     priv cnt: u32,
     priv rsl: [u32, .. RAND_SIZE],
     priv mem: [u32, .. RAND_SIZE],
@@ -219,7 +218,6 @@ fn from_seed(seed: &'self [u32]) -> IsaacRng {
 ///
 /// The ISAAC algorithm is suitable for cryptographic purposes.
 pub struct Isaac64Rng {
-    /// already priv
     priv cnt: uint,
     priv rsl: [u64, .. RAND_SIZE_64],
     priv mem: [u64, .. RAND_SIZE_64],
index 1397a32632fec7ce9b3ddf9ea7d879b527f168d9..f5c60417bacb5c9344f64b745687f7d2ec060297 100644 (file)
@@ -82,11 +82,10 @@ pub trait Rand {
 
 /// A value with a particular weight compared to other values
 pub struct Weighted<T> {
-    /// made priv by reedlepee
     /// The numerical weight of this item
-    priv weight: uint,
+    weight: uint,
     /// The actual item which is being weighted
-    priv item: T,
+    item: T,
 }
 
 /// A random number generator
@@ -538,13 +537,11 @@ pub fn rng() -> StdRng {
 /// The standard RNG. This is designed to be efficient on the current
 /// platform.
 #[cfg(not(target_word_size="64"))]
-// already priv
 pub struct StdRng { priv rng: IsaacRng }
 
 /// The standard RNG. This is designed to be efficient on the current
 /// platform.
 #[cfg(target_word_size="64")]
-// already priv
 pub struct StdRng { priv rng: Isaac64Rng }
 
 impl StdRng {
@@ -606,7 +603,6 @@ pub fn weak_rng() -> XorShiftRng {
 /// but is very fast. If you do not know for sure that it fits your
 /// requirements, use a more secure one such as `IsaacRng`.
 pub struct XorShiftRng {
-    // already priv
     priv x: u32,
     priv y: u32,
     priv z: u32,
index a240c8bb873cd805c76c74d2aa9e63d6ea211052..4c8cf06c55e87052f089d93f35439795aa87caa5 100644 (file)
@@ -36,7 +36,6 @@
 /// This does not block.
 #[cfg(unix)]
 pub struct OSRng {
-    // already priv
     priv inner: ReaderRng<file::FileStream>
 }
 /// A random number generator that retrieves randomness straight from
@@ -46,7 +45,6 @@ pub struct OSRng {
 /// This does not block.
 #[cfg(windows)]
 pub struct OSRng {
-    // already priv
     priv hcryptprov: HCRYPTPROV
 }
 
index ca2284f69bb40989acd79dbc848d62238552edc7..f1e67da815e1700fb8cdbf3c6d16e6e9957bb149 100644 (file)
@@ -33,7 +33,6 @@
 /// }
 /// ```
 pub struct ReaderRng<R> {
-    // already priv
     priv reader: R
 }
 
index 65e10f6f01f8084dc0cd55610772fae65b3fb0a5..3b4919392fc2995bab8f010a5f244b1acf4385fb 100644 (file)
 /// A wrapper around any RNG which reseeds the underlying RNG after it
 /// has generated a certain number of random bytes.
 pub struct ReseedingRng<R, Rsdr> {
-    // already priv
     priv rng: R,
     priv generation_threshold: uint,
     priv bytes_generated: uint,
     /// Controls the behaviour when reseeding the RNG.
-    // made by reedlepee
-    priv reseeder: Rsdr
+    reseeder: Rsdr
 }
 
 impl<R: Rng, Rsdr: Reseeder<R>> ReseedingRng<R, Rsdr> {
index 388683dc029d67bcc79f493d7c77bb4b18d098fb..41e834cf37c39154743f6cd950db3307df37eb9c 100644 (file)
@@ -35,7 +35,6 @@ struct RcBox<T> {
 #[unsafe_no_drop_flag]
 #[no_send]
 pub struct Rc<T> {
-    // already priv
     priv ptr: *mut RcBox<T>
 }
 
@@ -168,7 +167,6 @@ struct RcMutBox<T> {
 #[no_freeze]
 #[unsafe_no_drop_flag]
 pub struct RcMut<T> {
-    // already priv
     priv ptr: *mut RcMutBox<T>,
 }
 
index 9e13d20e9710ddd4957a2c8aa39e5366d2fe4b45..d63b14f982d403a6dd845a2afc0555a6fcd84a85 100644 (file)
@@ -41,7 +41,6 @@ pub fn align(size: uint, align: uint) -> uint {
 
 /// Adaptor to wrap around visitors implementing MovePtr.
 pub struct MovePtrAdaptor<V> {
-    // all by reedlepee
     priv inner: V
 }
 pub fn MovePtrAdaptor<V:TyVisitor + MovePtr>(v: V) -> MovePtrAdaptor<V> {
index 0a8d2374218b7b55072a806f32103411de7ed5b3..d03621eb60d2f216aee918d48808512fe2d63edf 100644 (file)
@@ -98,7 +98,6 @@ enum VariantState {
 }
 
 pub struct ReprVisitor<'self> {
-    // made priv by reedlpee
     priv ptr: *c_void,
     priv ptr_stk: ~[*c_void],
     priv var_stk: ~[VariantState],
index 182515e12bee19f93c67ba1c697afdd8c5d3ce02..4426a3eafe1e864b11157bd23b6e886ee51d6a9a 100644 (file)
@@ -29,7 +29,6 @@
 
 #[deriving(Eq)]
 pub struct BorrowRecord {
-    // all made byt reedlepee
     priv box: *mut raw::Box<()>,
     file: *c_char,
     priv line: size_t
index b74ae01fa30121b41d6c6f3f35855d359d19dab9..0d4271a33c22e404e4e44cc44d6c344be50a1365 100644 (file)
@@ -48,14 +48,12 @@ struct Packet<T> {
 
 // A one-shot channel.
 pub struct ChanOne<T> {
-    //  all made priv by reeldepee
     priv void_packet: *mut Void,
     priv suppress_finalize: bool
 }
 
 /// A one-shot port.
 pub struct PortOne<T> {
-    //  all made priv by reeldepee
     priv void_packet: *mut Void,
     priv suppress_finalize: bool
 }
@@ -445,14 +443,12 @@ struct StreamPayload<T> {
 
 /// A channel with unbounded size.
 pub struct Chan<T> {
-    //  all made priv by reeldepee
     // FIXME #5372. Using Cell because we don't take &mut self
     next: Cell<StreamChanOne<T>>
 }
 
 /// An port with unbounded size.
 pub struct Port<T> {
-    //  all made priv by reeldepee
     // FIXME #5372. Using Cell because we don't take &mut self
     next: Cell<StreamPortOne<T>>
 }
@@ -581,7 +577,6 @@ fn recv_ready(self) -> Option<T> {
 impl<'self, T> SelectPort<T> for &'self Port<T> { }
 
 pub struct SharedChan<T> {
-    // already priv
     // Just like Chan, but a shared AtomicOption instead of Cell
     priv next: UnsafeArc<AtomicOption<StreamChanOne<T>>>
 }
@@ -635,7 +630,6 @@ fn clone(&self) -> SharedChan<T> {
 }
 
 pub struct SharedPort<T> {
-    // already priv
     // The next port on which we will receive the next port on which we will receive T
     priv next_link: UnsafeArc<AtomicOption<PortOne<StreamPortOne<T>>>>
 }
index 54a1c2406d0b0e9521a4fd86b21d357dd2cbe5c9..dd71426938dc45e1444f9a022fdf80c368f6e6c4 100644 (file)
 extern {}
 
 pub struct ModEntry<'self> {
-    // made priv by reedlepee
     name: &'self str,
     log_level: *mut u32
 }
 
 pub struct CrateMap<'self> {
-    // made priv by reedlepee
      priv version: i32,
      priv entries: &'self [ModEntry<'self>],
      priv children: &'self [&'self CrateMap<'self>]
index a33892736b09e4fd79982eb0a16885d7500b8fb2..9dcb35c806f7cb8512df97b2c467596e0666131d 100644 (file)
@@ -64,7 +64,6 @@
 
 /// Wraps a Reader and buffers input from it
 pub struct BufferedReader<R> {
-    // all already priv
     priv inner: R,
     priv buf: ~[u8],
     priv pos: uint,
@@ -176,7 +175,6 @@ fn inner_mut_ref<'a>(&'a mut self) -> &'a mut R {
 ///
 /// Note that `BufferedWriter` will NOT flush its buffer when dropped.
 pub struct BufferedWriter<W> {
-    // all already priv
     priv inner: W,
     priv buf: ~[u8],
     priv pos: uint
@@ -252,7 +250,6 @@ fn eof(&mut self) -> bool {
 ///
 /// Note that `BufferedStream` will NOT flush its output buffer when dropped.
 pub struct BufferedStream<S> {
-    // all already priv
     priv inner: BufferedReader<InternalBufferedWriter<S>>
 }
 
index 5a3524195c74b0a94f06a275db2d6bb37a957f8e..99634b532b082c6962d27f05cc09cf3dfa237ddd 100644 (file)
@@ -368,7 +368,6 @@ fn bytes(self) -> ByteIterator<T> {
 /// each call to its `.next()` method.
 /// Yields `None` if the condition is handled.
 pub struct ByteIterator<T> {
-    // all already priv
     priv reader: T,
 }
 
index 9d633ec1c65aa6aa00fd42eaaa85e10df54df947..3869f99adeaed0bee96017049b93c059a39359b9 100644 (file)
@@ -298,7 +298,6 @@ pub fn readdir<P: PathLike>(path: &P) -> Option<~[Path]> {
 /// Constrained version of `FileStream` that only exposes read-specific operations.
 ///
 /// Can be retreived via `FileInfo.open_reader()`.
-/// all already priv
 pub struct FileReader { priv stream: FileStream }
 
 /// a `std::rt::io::Reader` trait impl for file I/O.
@@ -326,7 +325,6 @@ fn seek(&mut self, pos: i64, style: SeekStyle) {
 /// Constrained version of `FileStream` that only exposes write-specific operations.
 ///
 /// Can be retreived via `FileInfo.open_writer()`.
-// already priv
 pub struct FileWriter { priv stream: FileStream }
 
 /// a `std::rt::io::Writer` trait impl for file I/O.
@@ -364,7 +362,6 @@ fn seek(&mut self, pos: i64, style: SeekStyle) {
 /// For this reason, it is best to use the access-constrained wrappers that are
 /// exposed via `FileInfo.open_reader()` and `FileInfo.open_writer()`.
 pub struct FileStream {
-    // all made by reedlepee
     priv fd: ~RtioFileStream,
     priv last_nread: int,
 }
index 9c49f2afb1ed57311fde5eaf80fdfc56b1d5bb8e..8a5aa171eb805d55c7dcb00f284580acf242313e 100644 (file)
@@ -17,7 +17,6 @@
 
 /// A Writer decorator that compresses using the 'deflate' scheme
 pub struct DeflateWriter<W> {
-    // all made by reedlepee
     priv inner_writer: W
 }
 
@@ -57,7 +56,6 @@ fn inner_mut_ref<'a>(&'a mut self) -> &'a mut W {
 
 /// A Reader decorator that decompresses using the 'deflate' scheme
 pub struct InflateReader<R> {
-    // all made by reedlepee
     priv inner_reader: R
 }
 
index 85bd46ebaf4341a9ec77d95c426d2298d2a150b0..5f6b4398c22f72be83aac931ab8fba5191b05e64 100644 (file)
@@ -22,7 +22,6 @@
 
 /// Writes to an owned, growable byte vector
 pub struct MemWriter {
-    // already priv
     priv buf: ~[u8]
 }
 
@@ -67,7 +66,6 @@ fn inner_mut_ref<'a>(&'a mut self) -> &'a mut ~[u8] {
 
 /// Reads from an owned byte vector
 pub struct MemReader {
-    // already priv
     priv buf: ~[u8],
     priv pos: uint
 }
@@ -131,7 +129,6 @@ fn inner_mut_ref<'a>(&'a mut self) -> &'a mut ~[u8] {
 
 /// Writes to a fixed-size byte slice
 pub struct BufWriter<'self> {
-    // already priv
     priv buf: &'self mut [u8],
     priv pos: uint
 }
@@ -160,7 +157,6 @@ fn seek(&mut self, _pos: i64, _style: SeekStyle) { fail!() }
 
 /// Reads from a fixed-size byte slice
 pub struct BufReader<'self> {
-    // already priv
     priv buf: &'self [u8],
     priv pos: uint
 }
index 30775ec90ba02f4e7c3a1057f086d341686329a9..44709c7b7b686321e21716bf99cb2a2452c6de7b 100644 (file)
@@ -12,7 +12,6 @@
 use rt::io::{Reader, Writer};
 
 pub struct MockReader {
-    // all made by reedlepee
     read: ~fn(buf: &mut [u8]) -> Option<uint>,
     priv eof: ~fn() -> bool
 }
index d9951741ab25577ee5861b130c5325a22def5e1a..c0971b5d3cd5d3f7d50c09782a19835a16fd40dc 100644 (file)
@@ -341,7 +341,6 @@ pub mod unix { }
 ///
 /// Is something like this sufficient? It's kind of archaic
 pub struct IoError {
-    // all made by reedlepee
     kind: IoErrorKind,
     desc: &'static str,
     detail: Option<~str>
@@ -649,7 +648,6 @@ pub enum FileAccess {
 }
 
 pub struct FileStat {
-    // all made by reedlepee
     /// A `Path` object containing information about the `PathInfo`'s location
     path: Path,
     /// `true` if the file pointed at by the `PathInfo` is a regular file
index cce2e851452b3f49838a464bcf25c32499b57997..d682098118172fa2f09ca4368f38138519fe0f4b 100644 (file)
@@ -61,7 +61,6 @@ fn keep_going(data: &[u8], f: &fn(*u8, uint) -> i64) -> i64 {
 pub type fd_t = libc::c_int;
 
 pub struct FileDesc {
-    // aleady priv
     priv fd: fd_t,
 }
 
@@ -127,7 +126,6 @@ fn drop(&mut self) {
 }
 
 pub struct CFile {
-    // aleady priv
     priv file: *libc::FILE
 }
 
index 73ce330cd49c756ced49ba952a8b1267d6758b22..91fff6d92630b802a26d0c5f1d1ec88eb7324810 100644 (file)
@@ -25,7 +25,6 @@
  * for the process to terminate.
  */
 pub struct Process {
-    // aleady priv
     /// The unique id of the process (this should never be negative).
     priv pid: pid_t,
 
index 41c25e0841ab4d987250650232a499be1547c546..5661725d77baa40f6d8247a2c015a3d9c800d500 100644 (file)
@@ -31,7 +31,6 @@ pub fn println(s: &str) {
 }
 
 pub struct StdIn {
-    // aleady priv
     priv fd: file::FileDesc
 }
 
@@ -50,7 +49,6 @@ fn eof(&mut self) -> bool { self.fd.eof() }
 }
 
 pub struct StdOut {
-    // aleady priv
     priv fd: file::FileDesc
 }
 
index 945014867e2c435bf1a0a83fa1385ce6381493da..f72d2e1f19bdb7304859cbe0b21bd56f69e02a65 100644 (file)
@@ -48,7 +48,6 @@ fn to_str(&self) -> ~str {
 
 #[deriving(Eq, TotalEq, Clone)]
 pub struct SocketAddr {
-    // all made by reedlpee
     ip: IpAddr,
     port: Port,
 }
index 0ed5861e2961d3b5231f9100cfed7b97fad898a8..f29e17cfc2f3d127152f16b9d66be1874e690fd0 100644 (file)
@@ -21,7 +21,6 @@
 use rt::local::Local;
 
 pub struct TcpStream {
-    // aleady priv
     priv obj: ~RtioTcpStreamObject
 }
 
@@ -100,7 +99,6 @@ fn flush(&mut self) { /* no-op */ }
 }
 
 pub struct TcpListener {
-    // aleady priv
     priv obj: ~RtioTcpListenerObject
 }
 
@@ -144,7 +142,6 @@ fn listen(self) -> Option<TcpAcceptor> {
 }
 
 pub struct TcpAcceptor {
-    // aleady priv
     priv obj: ~RtioTcpAcceptorObject
 }
 
index 5c63dd5352e6a45a18e47c74481f7713a5de829b..27faae0838b15d2383e8564bb3b3c6d04c6c9a02 100644 (file)
@@ -17,7 +17,6 @@
 use rt::local::Local;
 
 pub struct UdpSocket {
-    // aleady priv
     priv obj: ~RtioUdpSocketObject
 }
 
@@ -73,7 +72,6 @@ pub fn socket_name(&mut self) -> Option<SocketAddr> {
 }
 
 pub struct UdpStream {
-    // aleady priv
     priv socket: UdpSocket,
     priv connectedTo: SocketAddr
 }
index a89419fa41f1f43477de4cea1f9a311c14a9fef4..d2cd531ed266fd99c631e6e216844f958c016b4e 100644 (file)
@@ -21,7 +21,6 @@
 use rt::rtio::RtioUnboundPipeObject;
 
 pub struct PipeStream {
-    // already priv
     priv obj: RtioPipeObject
 }
 
index e6029e0ff9c19dfc4082d68a7a9590f86bbe5a64..5f2453852ee7fe9a82704d64ecde3ae9efbf1274 100644 (file)
 #[cfg(not(windows))] pub static MustDieSignal: int = libc::SIGKILL as int;
 
 pub struct Process {
-    // already priv
     priv handle: ~RtioProcessObject,
-    // made by reedlepee
     io: ~[Option<io::PipeStream>],
 }
 
 /// This configuration describes how a new process should be spawned. This is
 /// translated to libuv's own configuration
 pub struct ProcessConfig<'self> {
-    // all made by reedlepee
     /// Path to the program to run
     program: &'self str,
 
index 9f540dd0a8123e213aef6b3067c053b1d287645b..e6dd9a480998ebf39391187ae6bd62ae64268404 100644 (file)
@@ -87,7 +87,6 @@ pub fn println_args(fmt: &fmt::Arguments) {
 
 /// Representation of a reader of a standard input stream
 pub struct StdReader {
-    // aleady priv
     priv inner: ~RtioFileStream
 }
 
@@ -107,7 +106,6 @@ fn eof(&mut self) -> bool { false }
 
 /// Representation of a writer to a standard output stream
 pub struct StdWriter {
-    // aleady priv
     priv inner: ~RtioFileStream
 }
 
index cb35fdf5883f49ed0517076776c1ed7db5a93280..b41d7541a60746f7735727dad77ee384e6022298 100644 (file)
@@ -16,7 +16,6 @@
 use rt::local::Local;
 
 pub struct Timer {
-    // aleady priv
     priv obj: ~RtioTimerObject
 }
 
index 603e6627ee4666830bbcc3655c420551f43dc4b9..19f17ca966d2d551fd088e45683429e058df7926 100644 (file)
@@ -215,22 +215,21 @@ struct KillHandleInner {
 
 /// Per-task state related to task death, killing, failure, etc.
 pub struct Death {
-    // all made priv by reedlepee
     // Shared among this task, its watched children, and any linked tasks who
     // might kill it. This is optional so we can take it by-value at exit time.
-     kill_handle:     Option<KillHandle>,
+    kill_handle:     Option<KillHandle>,
     // Handle to a watching parent, if we have one, for exit code propagation.
-     priv watching_parent: Option<KillHandle>,
+    priv watching_parent: Option<KillHandle>,
     // Action to be done with the exit code. If set, also makes the task wait
     // until all its watched children exit before collecting the status.
-     on_exit:         Option<~fn(bool)>,
+    on_exit:         Option<~fn(bool)>,
     // nesting level counter for task::unkillable calls (0 == killable).
-     priv unkillable:      int,
+    priv unkillable:      int,
     // nesting level counter for unstable::atomically calls (0 == can deschedule).
-     priv wont_sleep:      int,
+    priv wont_sleep:      int,
     // A "spare" handle to the kill flag inside the kill handle. Used during
     // blocking/waking as an optimization to avoid two xadds on the refcount.
-     priv spare_kill_flag: Option<KillFlagHandle>,
+    priv spare_kill_flag: Option<KillFlagHandle>,
 }
 
 impl Drop for KillFlag {
index 0f28880871d52e9783cf1ef8df01a2286bc5f264..14df292343e9f496ca5cdbe2d94f3576a947252c 100644 (file)
@@ -32,7 +32,6 @@ struct BoxedRegion {
 pub type TypeDesc = c_void;
 
 pub struct LocalHeap {
-    // all made by reedlepee
     priv memory_region: *MemoryRegion,
     priv boxed_region: *BoxedRegion
 }
index 1864ebdad33622aa1b8e26888fbdda4ac8388dfa..99b5156b319553b1ece12c24ccfa8a8a1e91ecd8 100644 (file)
@@ -20,7 +20,6 @@
 use clone::Clone;
 
 pub struct MessageQueue<T> {
-    // already priv
     priv state: UnsafeArc<State<T>>
 }
 
index 3e641196cb4abc2ecb8b0b9c246ac29c9c192c60..2699dab6d38a871586762b7f331092b32fbc2d6b 100644 (file)
@@ -24,7 +24,6 @@
 use cast;
 
 pub struct RC<T> {
-    // all made priv by reedlepe
     priv p: *c_void // ~(uint, T)
 }
 
index 485239d307f5f424f2b43c9d0e9e612e01408e55..501def8b0607903f82f7fc33d1346e224a9dad00 100644 (file)
@@ -61,7 +61,6 @@ pub trait RemoteCallback {
 /// Using unix flag conventions for now, which happens to also be what's supported
 /// libuv (it does translation to windows under the hood).
 pub struct FileOpenConfig {
-    // all made by reedlepe
     /// Path to file to be opened
     path: Path,
     /// Flags for file access mode (as per open(2))
index 82c56d7d9a30a60343fdc15e776b662b4cdea4dc..d157301533c42c8d5b4984db96f3088d9f8f92ff 100644 (file)
@@ -40,7 +40,6 @@
 /// in too much allocation and too many events.
 pub struct Scheduler {
     /// There are N work queues, one per scheduler.
-    // already priv
     work_queue: WorkQueue<~Task>,
     /// Work queues for the other schedulers. These are created by
     /// cloning the core work queues.
@@ -48,7 +47,6 @@ pub struct Scheduler {
     /// The queue of incoming messages from other schedulers.
     /// These are enqueued by SchedHandles after which a remote callback
     /// is triggered to handle the message.
-    // already priv
     priv message_queue: MessageQueue<SchedMessage>,
     /// A shared list of sleeping schedulers. We'll use this to wake
     /// up schedulers when pushing work onto the work queue.
@@ -59,7 +57,6 @@ pub struct Scheduler {
     /// not active since there are multiple event sources that may
     /// wake the scheduler. It just prevents the scheduler from pushing
     /// multiple handles onto the sleeper list.
-    // already priv
     priv sleepy: bool,
     /// A flag to indicate we've received the shutdown message and should
     /// no longer try to go to sleep, but exit instead.
@@ -796,10 +793,8 @@ pub enum SchedMessage {
 }
 
 pub struct SchedHandle {
-    //already priv
     priv remote: ~RemoteCallbackObject,
     priv queue: MessageQueue<SchedMessage>,
-    // made by reedlepee
     sched_id: uint
 }
 
index 5135ed76005a073376be53bc1fbce86da677ec43..f4fdf15cda62e2f11ea71eabf16401e127e99530 100644 (file)
@@ -20,7 +20,6 @@
 use clone::Clone;
 
 pub struct SleeperList {
-    // already priv
     priv state: UnsafeArc<State>
 }
 
index 7bffc93c69346a1181ba2ec002898dfdb47e4fe8..55bd4b0732a6f3d16cbed7d898dcb061b6296851 100644 (file)
@@ -15,7 +15,6 @@
 use libc::{c_uint, uintptr_t};
 
 pub struct StackSegment {
-    // all made by reedlepee
     priv buf: ~[u8],
     priv valgrind_id: c_uint
 }
index 6e0b96c221e6d0a58e01115db32e4bc6796fef4b..ca96ee032e263d28dbce0e1c578b3fa26bb10bcd 100644 (file)
@@ -43,7 +43,6 @@
 // the type-specific state.
 
 pub struct Task {
-     //all priv made br reedlepe
      heap: LocalHeap,
      priv gc: GarbageCollector,
      storage: LocalStorage,
@@ -57,7 +56,6 @@ pub struct Task {
      sched: Option<~Scheduler>,
      task_type: TaskType,
     // Dynamic borrowck debugging info
-     // should be public
      borrow_list: Option<~[BorrowRecord]>
 }
 
@@ -71,7 +69,6 @@ pub struct Coroutine {
     /// The segment of stack on which the task is currently running or
     /// if the task is blocked, on which the task will resume
     /// execution.
-    //all priv made br reedlepe
     priv current_stack_segment: StackSegment,
     /// Always valid if the task is alive and not running.
     saved_context: Context
@@ -87,7 +84,6 @@ pub enum SchedHome {
 pub struct LocalStorage(Option<local_data::Map>);
 
 pub struct Unwinder {
-    //all priv made br reedlepe
     unwinding: bool,
 }
 
index 869f23baf325c3614041a4d2d9dc84fd71364b0d..16fd3fa38eae9454ba69c47333e23ce519988456 100644 (file)
@@ -28,7 +28,6 @@ struct TubeState<T> {
 }
 
 pub struct Tube<T> {
-    //all priv made br reedlepe
     priv p: RC<TubeState<T>>
 }
 
index 8fa8fbdc4a10d7f474925197dba46042b0a04345..f2abcd3aca7e35a5be7bd2059d76a47c705674fc 100644 (file)
@@ -25,7 +25,6 @@
 pub struct GetAddrInfoRequest(*uvll::uv_getaddrinfo_t);
 
 pub struct RequestData {
-    // all made by reedlepee
     priv getaddrinfo_cb: Option<GetAddrInfoCallback>,
 }
 
index 5e20f5fad88cf874302787c1ebd57571ea141ebc..5d64ca4d755ce5ede9682590d31a994e401d8fa0 100644 (file)
@@ -25,7 +25,6 @@
 impl Request for FsRequest {}
 
 pub struct RequestData {
-    // all made by reedlepee
     priv complete_cb: Option<FsCallback>
 }
 
index 4c547276a50c594f9ca3eed475867da40644ea68..3a6a3acbc5342bb50830155a86611c12d5f33f1b 100644 (file)
@@ -80,7 +80,6 @@
 /// with dtors may not be destructured, but tuple structs can,
 /// but the results are not correct.
 pub struct Loop {
-    // all made by reedlepee
     priv handle: *uvll::uv_loop_t
 }
 
index 5e441a5414b4aafcae45051a96d76c531314ed07..13c3a30eed37875ce319abf30f65490677a0c52b 100644 (file)
@@ -180,7 +180,6 @@ fn socket_name<T, U: Watcher + NativeHandle<*T>>(sk: SocketNameKind,
 
 // Obviously an Event Loop is always home.
 pub struct UvEventLoop {
-    // all made by reedlepee
     priv uvio: UvIoFactory
 }
 
@@ -241,7 +240,6 @@ fn io<'a>(&'a mut self) -> Option<&'a mut IoFactoryObject> {
 }
 
 pub struct UvPausibleIdleCallback {
-    // all made by reedlepee
     priv watcher: IdleWatcher,
     priv idle_flag: bool,
     priv closed: bool
@@ -295,7 +293,6 @@ fn test_callback_run_once() {
 
 // The entire point of async is to call into a loop from other threads so it does not need to home.
 pub struct UvRemoteCallback {
-    // all made by reedlepee
     // The uv async handle for triggering the callback
     priv async: AsyncWatcher,
     // A flag to tell the callback to exit, set from the dtor. This is
@@ -804,7 +801,6 @@ fn spawn(&mut self, config: ProcessConfig)
 }
 
 pub struct UvTcpListener {
-    // all made by reedlepee
     priv watcher : TcpWatcher,
     priv home: SchedHandle,
 }
@@ -867,7 +863,6 @@ fn listen(self) -> Result<~RtioTcpAcceptorObject, IoError> {
 }
 
 pub struct UvTcpAcceptor {
-    // all made by reedlepee
     priv listener: UvTcpListener,
     priv incoming: Tube<Result<~RtioTcpStreamObject, IoError>>,
 }
@@ -992,7 +987,6 @@ fn write_stream(mut watcher: StreamWatcher,
 }
 
 pub struct UvUnboundPipe {
-    // all made by reedlepee
     pipe: Pipe,
     priv home: SchedHandle,
 }
@@ -1023,7 +1017,6 @@ pub unsafe fn bind(~self) -> UvPipeStream {
 }
 
 pub struct UvPipeStream {
-    // already
     priv inner: ~UvUnboundPipe,
 }
 
@@ -1047,7 +1040,6 @@ fn write(&mut self, buf: &[u8]) -> Result<(), IoError> {
 }
 
 pub struct UvTcpStream {
-    // all made by reedlepee
     priv watcher: TcpWatcher,
     priv home: SchedHandle,
 }
@@ -1148,7 +1140,6 @@ fn letdie(&mut self) -> Result<(), IoError> {
 }
 
 pub struct UvUdpSocket {
-    // all made by reedelpee
     priv watcher: UdpWatcher,
     priv home: SchedHandle,
 }
@@ -1359,7 +1350,6 @@ fn ignore_broadcasts(&mut self) -> Result<(), IoError> {
 }
 
 pub struct UvTimer {
-    // all made by reedelpee
     priv watcher: timer::TimerWatcher,
     priv home: SchedHandle,
 }
@@ -1407,7 +1397,6 @@ fn sleep(&mut self, msecs: u64) {
 }
 
 pub struct UvFileStream {
-    // all made by reedelpee
     priv loop_: Loop,
     priv fd: c_int,
     priv close_on_drop: bool,
@@ -1541,7 +1530,6 @@ fn flush(&mut self) -> Result<(), IoError> {
 }
 
 pub struct UvProcess {
-    // two made by reedelpee
     priv process: process::Process,
 
     // Sadly, this structure must be created before we return it, so in that
@@ -1549,7 +1537,6 @@ pub struct UvProcess {
     priv home: Option<SchedHandle>,
 
     // All None until the process exits (exit_error may stay None)
-   // Rest were already priv
     priv exit_status: Option<int>,
     priv term_signal: Option<int>,
     priv exit_error: Option<UvError>,
index 98d4fd332772a1ab47d05be34d163a46d7e488ba..341c5b8c6e163c6ff73d1c91288986848b718a88 100644 (file)
@@ -84,7 +84,6 @@ pub mod errors {
 // see libuv/include/uv-unix.h
 #[cfg(unix)]
 pub struct uv_buf_t {
-    // all made by reedelpee
     base: *u8,
     len: libc::size_t,
 }
@@ -92,29 +91,26 @@ pub struct uv_buf_t {
 // see libuv/include/uv-win.h
 #[cfg(windows)]
 pub struct uv_buf_t {
-    // all made by reedelpee
     len: u32,
     base: *u8,
 }
 
 pub struct uv_process_options_t {
-     // all made by reedelpee
-     exit_cb: uv_exit_cb,
-     file: *libc::c_char,
-     args: **libc::c_char,
-     env: **libc::c_char,
-     cwd: *libc::c_char,
-     flags: libc::c_uint,
-     stdio_count: libc::c_int,
-     stdio: *uv_stdio_container_t,
-     uid: uv_uid_t,
-     gid: uv_gid_t,
+    exit_cb: uv_exit_cb,
+    file: *libc::c_char,
+    args: **libc::c_char,
+    env: **libc::c_char,
+    cwd: *libc::c_char,
+    flags: libc::c_uint,
+    stdio_count: libc::c_int,
+    stdio: *uv_stdio_container_t,
+    uid: uv_uid_t,
+    gid: uv_gid_t,
 }
 
 // These fields are private because they must be interfaced with through the
 // functions below.
 pub struct uv_stdio_container_t {
-    // already priv
     priv flags: libc::c_int,
     priv stream: *uv_stream_t,
 }
@@ -137,13 +133,11 @@ pub struct uv_stdio_container_t {
 pub type uv_pipe_t = c_void;
 
 pub struct uv_timespec_t {
-    // all made by reedelpee
     tv_sec: libc::c_long,
     priv tv_nsec: libc::c_long
 }
 
 pub struct uv_stat_t {
-    // all made by reedelpee
     priv st_dev: libc::uint64_t,
     st_mode: libc::uint64_t,
     priv st_nlink: libc::uint64_t,
@@ -237,21 +231,19 @@ pub fn is_dir(&self) -> bool {
 #[cfg(target_os = "android")]
 #[cfg(target_os = "linux")]
 pub struct addrinfo {
-     // all made by reedelpee
-     priv ai_flags: c_int,
-     priv ai_family: c_int,
-     priv ai_socktype: c_int,
-     priv ai_protocol: c_int,
-     priv ai_addrlen: socklen_t,
-     ai_addr: *sockaddr,
-     priv ai_canonname: *char,
-     ai_next: *addrinfo
+    priv ai_flags: c_int,
+    priv ai_family: c_int,
+    priv ai_socktype: c_int,
+    priv ai_protocol: c_int,
+    priv ai_addrlen: socklen_t,
+    ai_addr: *sockaddr,
+    priv ai_canonname: *char,
+    ai_next: *addrinfo
 }
 
 #[cfg(target_os = "macos")]
 #[cfg(target_os = "freebsd")]
 pub struct addrinfo {
-     // all made by reedelpee
     priv ai_flags: c_int,
     priv ai_family: c_int,
     priv ai_socktype: c_int,
@@ -264,7 +256,6 @@ pub struct addrinfo {
 
 #[cfg(windows)]
 pub struct addrinfo {
-     // all made by reedelpee
     priv ai_flags: c_int,
     priv ai_family: c_int,
     priv ai_socktype: c_int,
@@ -272,7 +263,7 @@ pub struct addrinfo {
     priv ai_addrlen: size_t,
     priv ai_canonname: *char,
     ai_addr: *sockaddr,
-    priv vai_next: *addrinfo
+    priv ai_next: *addrinfo
 }
 
 #[cfg(unix)] pub type uv_uid_t = libc::types::os::arch::posix88::uid_t;
@@ -969,7 +960,6 @@ pub unsafe fn freeaddrinfo(ai: *addrinfo) {
 }
 
 pub struct uv_err_data {
-     // all made by reedelpee
     priv err_name: ~str,
     priv err_msg: ~str,
 }
index 7700855d7b74326a27a8955790f842b12659f72b..24792f3904e51645f2e23cea49bea8a3a7d9bfa5 100644 (file)
@@ -17,7 +17,6 @@
 use clone::Clone;
 
 pub struct WorkQueue<T> {
-    // already priv
     // XXX: Another mystery bug fixed by boxing this lock
     priv queue: ~Exclusive<~[T]>
 }
index ccb8de8185714dc9f342908ae656488be6310e9d..483bb18137309cd72c29d46f8dab57696a329400 100644 (file)
  * for the process to terminate.
  */
 pub struct Process {
-    // already priv
     priv inner: process::Process,
 }
 
 /// Options that can be given when starting a Process.
 pub struct ProcessOptions<'self> {
-    // All were made priv by reedlepee
     /**
      * If this is None then the new process will have the same initial
      * environment as the parent process.
@@ -100,7 +98,6 @@ pub fn new<'a>() -> ProcessOptions<'a> {
 
 /// The output of a finished process.
 pub struct ProcessOutput {
-    /// made priv by reedlepee
     /// The status (exit code) of the process.
     status: int,
 
index bba3ad6a94ef99408281e1c817b1f115ceb7e883..66b1999f23719605efc0f8b21905e3ac74f7c162 100644 (file)
@@ -355,7 +355,6 @@ fn only_ascii(&self) -> bool {
 /// Use with the `std::iterator` module.
 #[deriving(Clone)]
 pub struct CharIterator<'self> {
-    // already priv
     /// The slice remaining to be iterated
     priv string: &'self str,
 }
@@ -401,7 +400,6 @@ fn next_back(&mut self) -> Option<char> {
 /// Use with the `std::iterator` module.
 #[deriving(Clone)]
 pub struct CharOffsetIterator<'self> {
-    // already priv
     /// The original string to be iterated
     priv string: &'self str,
     priv iter: CharIterator<'self>,
@@ -460,7 +458,6 @@ fn next_back(&mut self) -> Option<(uint, char)> {
 /// An iterator over the substrings of a string, separated by `sep`.
 #[deriving(Clone)]
 pub struct CharSplitIterator<'self, Sep> {
-    // already priv
     /// The slice remaining to be iterated
     priv string: &'self str,
     priv sep: Sep,
@@ -478,7 +475,6 @@ pub struct CharSplitIterator<'self, Sep> {
 /// splitting at most `count` times.
 #[deriving(Clone)]
 pub struct CharSplitNIterator<'self, Sep> {
-    // already priv
     priv iter: CharSplitIterator<'self, Sep>,
     /// The number of splits remaining
     priv count: uint,
@@ -595,7 +591,6 @@ fn next(&mut self) -> Option<&'self str> {
 /// substring within a larger string
 #[deriving(Clone)]
 pub struct MatchesIndexIterator<'self> {
-    // already priv
     priv haystack: &'self str,
     priv needle: &'self str,
     priv position: uint,
@@ -605,7 +600,6 @@ pub struct MatchesIndexIterator<'self> {
 /// search string
 #[deriving(Clone)]
 pub struct StrSplitIterator<'self> {
-    // already priv
     priv it: MatchesIndexIterator<'self>,
     priv last_end: uint,
     priv finished: bool
@@ -1005,7 +999,6 @@ pub struct CharRange {
     /// Current `char`
     /// This field should be public making it private causes error while compiling!!
     ch: char,
-    // made by reedlepee
     /// Index of the first byte of the next `char`
     next: uint
 }
index 35a33f017014177494e29b6f3f452efe54234e3a..ec2d7566177564e86894e67988693767ea242626 100644 (file)
@@ -23,7 +23,6 @@
 
 /// Datatype to hold one ascii character. It wraps a `u8`, with the highest bit always zero.
 #[deriving(Clone, Eq, Ord, TotalOrd, TotalEq)]
-//already priv
 pub struct Ascii { priv chr: u8 }
 
 impl Ascii {
index 55a881f48fadb074e7fcb1d7c9da12c7706eee49..30c99c628853fed6114c2cd3d3dd37889069f784 100644 (file)
@@ -108,7 +108,6 @@ pub enum SchedMode {
  *
  */
 pub struct SchedOpts {
-     // all made by reedelpee
     priv mode: SchedMode,
 }
 
@@ -145,15 +144,14 @@ pub struct SchedOpts {
  *           scheduler other tasks will be impeded or even blocked indefinitely.
  */
 pub struct TaskOpts {
-     // all made by reedelpee
-     priv linked: bool,
-     priv supervised: bool,
-     priv watched: bool,
-     priv indestructible: bool,
-     priv notify_chan: Option<Chan<TaskResult>>,
-     name: Option<SendStr>,
-     sched: SchedOpts,
-     stack_size: Option<uint>
+    priv linked: bool,
+    priv supervised: bool,
+    priv watched: bool,
+    priv indestructible: bool,
+    priv notify_chan: Option<Chan<TaskResult>>,
+    name: Option<SendStr>,
+    sched: SchedOpts,
+    stack_size: Option<uint>
 }
 
 /**
@@ -171,7 +169,6 @@ pub struct TaskOpts {
 
 // FIXME (#3724): Replace the 'consumed' bit with move mode on self
 pub struct TaskBuilder {
-    //all made priv by reedlepee
     opts: TaskOpts,
     priv gen_body: Option<~fn(v: ~fn()) -> ~fn()>,
     priv can_not_copy: Option<util::NonCopyable>,
index 36bf261bb52f6e0586681c81a744d939daf82af4..dec13eded3983873a8d4511224a707873b18684e 100644 (file)
@@ -307,7 +307,6 @@ fn iterate(ancestors:       &mut AncestorList,
 
 // One of these per task.
 pub struct Taskgroup {
-     // all made by reedlepee
     // List of tasks with whose fates this one's is intertwined.
     priv tasks:      TaskGroupArc, // 'none' means the group has failed.
     // Lists of tasks who will kill us if they fail, but whom we won't kill.
index 57aec6a7314d25d52a86f9a6ba6940052e0b7253..c561fb6cc8a457d1759982e02a6076f56087b8a2 100644 (file)
@@ -28,7 +28,6 @@ enum Child<T> {
 
 #[allow(missing_doc)]
 pub struct TrieMap<T> {
-    // already priv
     priv root: TrieNode<T>,
     priv length: uint
 }
@@ -223,7 +222,6 @@ fn extend<Iter: Iterator<(uint, T)>>(&mut self, iter: &mut Iter) {
 
 #[allow(missing_doc)]
 pub struct TrieSet {
-    // already priv
     priv map: TrieMap<()>
 }
 
@@ -445,7 +443,6 @@ fn remove<T>(count: &mut uint, child: &mut Child<T>, key: uint,
 
 /// Forward iterator over a map
 pub struct TrieMapIterator<'self, T> {
-    // already priv
     priv stack: ~[vec::VecIterator<'self, Child<T>>],
     priv remaining_min: uint,
     priv remaining_max: uint
@@ -486,7 +483,6 @@ fn size_hint(&self) -> (uint, Option<uint>) {
 
 /// Forward iterator over a set
 pub struct TrieSetIterator<'self> {
-    // already priv
     priv iter: TrieMapIterator<'self, ()>
 }
 
index e64f17ecf30883d437301509a003baec9255cd51..e8835462a80e28afd804c9612c355f9d1ac6fce7 100644 (file)
@@ -28,7 +28,6 @@
  * A simple atomic flag, that can be set and cleared. The most basic atomic type.
  */
 pub struct AtomicFlag {
-     // already
     priv v: int
 }
 
@@ -36,7 +35,6 @@ pub struct AtomicFlag {
  * An atomic boolean type.
  */
 pub struct AtomicBool {
-     // already
     priv v: uint
 }
 
@@ -44,7 +42,6 @@ pub struct AtomicBool {
  * A signed atomic integer type, supporting basic atomic arithmetic operations
  */
 pub struct AtomicInt {
-     // already
     priv v: int
 }
 
@@ -52,7 +49,6 @@ pub struct AtomicInt {
  * An unsigned atomic integer type, supporting basic atomic arithmetic operations
  */
 pub struct AtomicUint {
-     // already
     priv v: uint
 }
 
@@ -60,7 +56,6 @@ pub struct AtomicUint {
  * An unsafe atomic pointer. Only supports basic atomic operations
  */
 pub struct AtomicPtr<T> {
-     // already
     priv p: *mut T
 }
 
@@ -69,7 +64,6 @@ pub struct AtomicPtr<T> {
  */
 #[unsafe_no_drop_flag]
 pub struct AtomicOption<T> {
-     // already
     priv p: *mut c_void
 }
 
index 18ee693ebb64cc197088be2419ec7932b0a7b33d..d3d768bc0c6fba6ecb070fdee0a64580fe83f9bb 100644 (file)
@@ -23,7 +23,6 @@
 use option::*;
 use result::*;
 
-// already
 pub struct DynamicLibrary { priv handle: *libc::c_void }
 
 impl Drop for DynamicLibrary {
index 0719ad4078148d10370b5a1444f90a1e5746abca..0131f2c603cdac5c72392bb50e0a5010a5ecfab3 100644 (file)
@@ -149,7 +149,6 @@ pub fn new(val: T, next: uint) -> Parsed<T> {
     // A formatted conversion from an expression to a string
     #[deriving(Eq)]
     pub struct Conv {
-        // all ade by reedlepee
         param: Option<uint>,
         flags: ~[Flag],
         width: Count,
@@ -500,7 +499,6 @@ pub enum Count { CountIs(uint), CountImplied, }
     pub enum Ty { TyDefault, TyBits, TyHexUpper, TyHexLower, TyOctal, }
 
     pub struct Conv {
-        // all ade by reedlepee
         flags: u32,
         width: Count,
         precision: Count,
index 9c216470f17aac44aeadc1bffa8d2001b433cefd..ee44bf4d9964a396a0f20adfcc259d5812bca230 100644 (file)
@@ -42,9 +42,8 @@
 #[lang="ty_desc"]
 #[cfg(not(test))]
 pub struct TyDesc {
-    // all ade by reedlepee
     // sizeof(T)
-     size: uint,
+    size: uint,
 
     // alignof(T)
     align: uint,
index ae9095e1b5fe481bf5d51974e8dde567670d2a0d..b5d7cc47fdc55a1d16a721cbe48f4c14389f4a71 100644 (file)
@@ -13,7 +13,6 @@
 
 /// The representation of a Rust managed box
 pub struct Box<T> {
-    // all ade by reedlepee
     ref_count: uint,
     type_desc: *TyDesc,
     priv prev: *Box<T>,
@@ -23,7 +22,6 @@ pub struct Box<T> {
 
 /// The representation of a Rust vector
 pub struct Vec<T> {
-    // all ade by reedlepee
     fill: uint,
     alloc: uint,
     data: T
@@ -34,14 +32,12 @@ pub struct Vec<T> {
 
 /// The representation of a Rust slice
 pub struct Slice<T> {
-    // all ade by reedlepee
     data: *T,
     len: uint
 }
 
 /// The representation of a Rust closure
 pub struct Closure {
-    // all ade by reedlepee
     code: *(),
     env: *(),
 }
index f6363c45021f662ca189bd17410d12da263b2a91..9d15dd031e0dce2b51573cd5a0aabe78c3b9e5cf 100644 (file)
@@ -28,7 +28,6 @@
 /// Enforces no shared-memory safety.
 //#[unsafe_no_drop_flag] FIXME: #9758
 pub struct UnsafeArc<T> {
-    // all ade by reedlepee
     data: *mut ArcData<T>,
 }
 
@@ -305,7 +304,6 @@ pub unsafe fn atomically<U>(f: &fn() -> U) -> U {
 type rust_little_lock = *libc::c_void;
 
 pub struct LittleLock {
-    // all ade by reedlepee
     priv l: rust_little_lock,
 }
 
@@ -355,7 +353,6 @@ struct ExData<T> {
  * need to block or deschedule while accessing shared state, use extra::sync::RWArc.
  */
 pub struct Exclusive<T> {
-    // all ade by reedlepee
     priv x: UnsafeArc<ExData<T>>
 }
 
index 7ceb8d201ab724521d0b0004003db588255fc70e..b10d0ded5b47757345b2b3b6bca964dd0cb27aa9 100644 (file)
@@ -216,7 +216,6 @@ pub fn build<A>(size: Option<uint>, builder: &fn(push: &fn(v: A))) -> ~[A] {
 /// An iterator over the slices of a vector separated by elements that
 /// match a predicate function.
 pub struct SplitIterator<'self, T> {
-    // already priv
     priv v: &'self [T],
     priv n: uint,
     priv pred: &'self fn(t: &T) -> bool,
@@ -266,7 +265,6 @@ fn size_hint(&self) -> (uint, Option<uint>) {
 /// An iterator over the slices of a vector separated by elements that
 /// match a predicate function, from back to front.
 pub struct RSplitIterator<'self, T> {
-    // already priv
     priv v: &'self [T],
     priv n: uint,
     priv pred: &'self fn(t: &T) -> bool,
@@ -405,7 +403,6 @@ pub fn unzip<T, U, V: Iterator<(T, U)>>(mut iter: V) -> (~[T], ~[U]) {
 /// The last generated swap is always (0, 1), and it returns the
 /// sequence to its initial order.
 pub struct ElementSwaps {
-    // already priv
     priv sdir: ~[SizeDirection],
     /// If true, emit the last swap that returns the sequence to initial state
     priv emit_reset: bool,
@@ -481,7 +478,6 @@ fn new_pos(i: uint, s: Direction) -> uint {
 ///
 /// Generates even and odd permutations alternatingly.
 pub struct Permutations<T> {
-    // already priv
     priv swaps: ElementSwaps,
     priv v: ~[T],
 }
@@ -504,7 +500,6 @@ fn next(&mut self) -> Option<~[T]> {
 /// a vector.
 #[deriving(Clone)]
 pub struct WindowIter<'self, T> {
-    // already priv
     priv v: &'self [T],
     priv size: uint
 }
@@ -539,7 +534,6 @@ fn size_hint(&self) -> (uint, Option<uint>) {
 /// the last slice of the iteration will be the remainder.
 #[deriving(Clone)]
 pub struct ChunkIter<'self, T> {
-    // already priv
     priv v: &'self [T],
     priv size: uint
 }
@@ -2399,7 +2393,6 @@ fn idx(&self, index: uint) -> Option<&'self T> {
 //iterator!{struct VecIterator -> *T, &'self T}
 /// An iterator for iterating over a vector.
 pub struct VecIterator<'self, T> {
-    // already priv
     priv ptr: *T,
     priv end: *T,
     priv lifetime: Option<&'self ()> // FIXME: #5922
@@ -2418,7 +2411,6 @@ fn clone(&self) -> VecIterator<'self, T> { *self }
 //iterator!{struct VecMutIterator -> *mut T, &'self mut T}
 /// An iterator for mutating the elements of a vector.
 pub struct VecMutIterator<'self, T> {
-    // already priv
     priv ptr: *mut T,
     priv end: *mut T,
     priv lifetime: Option<&'self mut ()> // FIXME: #5922
@@ -2430,7 +2422,6 @@ pub struct VecMutIterator<'self, T> {
 /// An iterator that moves out of a vector.
 #[deriving(Clone)]
 pub struct MoveIterator<T> {
-    // already priv
     priv v: ~[T],
     priv idx: uint,
 }
@@ -2465,7 +2456,6 @@ fn size_hint(&self) -> (uint, Option<uint>) {
 /// An iterator that moves out of a vector in reverse order.
 #[deriving(Clone)]
 pub struct MoveRevIterator<T> {
-    // already priv
     priv v: ~[T]
 }