Fix issues with jemalloc; remove the needless path index from `Subpath`
This commit is contained in:
parent
d695a3d11f
commit
b546ffebcc
|
@ -3,6 +3,10 @@ name = "partitionfinder"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
authors = ["Patrick Walton <pcwalton@mimiga.net>"]
|
authors = ["Patrick Walton <pcwalton@mimiga.net>"]
|
||||||
|
|
||||||
|
[lib]
|
||||||
|
name = "partitionfinder"
|
||||||
|
crate-type = ["dylib", "rlib"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
bit-vec = "0.4"
|
bit-vec = "0.4"
|
||||||
euclid = "0.15"
|
euclid = "0.15"
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
// partitionfinder/lib.rs
|
// partitionfinder/lib.rs
|
||||||
|
|
||||||
|
#![feature(alloc_jemalloc)]
|
||||||
|
|
||||||
|
// Needed to work around a problem with `heapsize`
|
||||||
|
extern crate alloc_jemalloc;
|
||||||
extern crate bit_vec;
|
extern crate bit_vec;
|
||||||
extern crate euclid;
|
extern crate euclid;
|
||||||
|
|
||||||
|
@ -43,5 +47,4 @@ pub struct ControlPoints {
|
||||||
#[derive(Debug, Clone, Copy)]
|
#[derive(Debug, Clone, Copy)]
|
||||||
pub struct Subpath {
|
pub struct Subpath {
|
||||||
pub first_endpoint_index: u32,
|
pub first_endpoint_index: u32,
|
||||||
pub path_index: u32,
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,7 +39,7 @@ struct pf_control_points {
|
||||||
typedef struct pf_control_points pf_control_points_t;
|
typedef struct pf_control_points pf_control_points_t;
|
||||||
|
|
||||||
struct pf_subpath {
|
struct pf_subpath {
|
||||||
uint32_t first_endpoint_index, path_index;
|
uint32_t first_endpoint_index;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct pf_subpath pf_subpath_t;
|
typedef struct pf_subpath pf_subpath_t;
|
||||||
|
|
Loading…
Reference in New Issue