diff options
Diffstat (limited to 'lib/wordexp-rs/src/ll.rs')
-rw-r--r-- | lib/wordexp-rs/src/ll.rs | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/lib/wordexp-rs/src/ll.rs b/lib/wordexp-rs/src/ll.rs index f047443..8e790d1 100644 --- a/lib/wordexp-rs/src/ll.rs +++ b/lib/wordexp-rs/src/ll.rs @@ -9,27 +9,28 @@ pub struct wordexp_t { } impl std::ops::Drop for wordexp_t { - fn drop(&mut self) - { - unsafe { wordfree(self); } + fn drop(&mut self) { + unsafe { + wordfree(self); + } } } extern "C" { -/* - pub static WRDE_APPEND: i32; - pub static WRDE_DOOFFS: i32; - pub static WRDE_NOCMD: i32; - pub static WRDE_REUSE: i32; - pub static WRDE_SHOWERR: i32; - pub static WRDE_UNDEF: i32; + /* + pub static WRDE_APPEND: i32; + pub static WRDE_DOOFFS: i32; + pub static WRDE_NOCMD: i32; + pub static WRDE_REUSE: i32; + pub static WRDE_SHOWERR: i32; + pub static WRDE_UNDEF: i32; - pub static WRDE_BADCHAR: i32; - pub static WRDE_BADVAL: i32; - pub static WRDE_CMDSUB: i32; - pub static WRDE_NOSPACE: i32; - pub static WRDE_SYNTAX: i32; -*/ + pub static WRDE_BADCHAR: i32; + pub static WRDE_BADVAL: i32; + pub static WRDE_CMDSUB: i32; + pub static WRDE_NOSPACE: i32; + pub static WRDE_SYNTAX: i32; + */ pub fn wordexp(_: *const libc::c_char, _: &mut wordexp_t, _: i32) -> i32; pub fn wordfree(_: &mut wordexp_t); |