Skip to content

Commit d875a42

Browse files
committed
---
yaml --- r: 150443 b: refs/heads/try2 c: fab0f47 h: refs/heads/master i: 150441: 54acf73 150439: 9c252fe v: v3
1 parent f5b5e43 commit d875a42

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 52974bd6950ce6672a526874c3d8bf273514f912
8+
refs/heads/try2: fab0f47fdf989c7a395b25c3cbddaacee81356ba
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/libworkcache/lib.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,9 @@ impl WorkMap {
140140
}
141141

142142
pub struct Database {
143-
priv db_filename: Path,
144-
priv db_cache: TreeMap<~str, ~str>,
145-
db_dirty: bool
143+
db_filename: Path,
144+
db_cache: TreeMap<~str, ~str>,
145+
pub db_dirty: bool,
146146
}
147147

148148
impl Database {
@@ -225,26 +225,26 @@ pub type FreshnessMap = TreeMap<~str,extern fn(&str,&str)->bool>;
225225

226226
#[deriving(Clone)]
227227
pub struct Context {
228-
db: Arc<RWLock<Database>>,
229-
priv cfg: Arc<json::Object>,
228+
pub db: Arc<RWLock<Database>>,
229+
cfg: Arc<json::Object>,
230230
/// Map from kinds (source, exe, url, etc.) to a freshness function.
231231
/// The freshness function takes a name (e.g. file path) and value
232232
/// (e.g. hash of file contents) and determines whether it's up-to-date.
233233
/// For example, in the file case, this would read the file off disk,
234234
/// hash it, and return the result of comparing the given hash and the
235235
/// read hash for equality.
236-
priv freshness: Arc<FreshnessMap>
236+
freshness: Arc<FreshnessMap>
237237
}
238238

239239
pub struct Prep<'a> {
240-
priv ctxt: &'a Context,
241-
priv fn_name: &'a str,
242-
priv declared_inputs: WorkMap,
240+
ctxt: &'a Context,
241+
fn_name: &'a str,
242+
declared_inputs: WorkMap,
243243
}
244244

245245
pub struct Exec {
246-
priv discovered_inputs: WorkMap,
247-
priv discovered_outputs: WorkMap
246+
discovered_inputs: WorkMap,
247+
discovered_outputs: WorkMap
248248
}
249249

250250
enum Work<'a, T> {

0 commit comments

Comments
 (0)