This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Sebastien Leduc <sebastien@sleduc.fr> | |
# Contributor: Andrey Vlasovskikh <andrey.vlasovskikh@gmail.com> | |
pkgname="vim-command-t" | |
pkgver=4.0 | |
pkgrel=1 | |
pkgdesc="an extremely fast, intuitive mechanism for opening files and buffers with a minimal number of keystrokes" | |
arch=("i686" "x86_64") | |
url="https://wincent.com/products/command-t" | |
license=("BSD") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<std macros>:3:22: 3:41 error: invalid format string: unmatched `}` found | |
<std macros>:3 write!($dst, concat!($fmt, "\n") $($arg)*) | |
^~~~~~~~~~~~~~~~~~~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//based off https://gist.github.com/samuell/5555803 | |
extern crate native; | |
extern crate rustrt; | |
use native::io::file; | |
use rustrt::rtio; | |
use rustrt::rtio::RtioFileStream; | |
use std::os; | |
#[deriving(PartialEq,Eq,Show)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
////////////////////////////////// | |
// in rgtk | |
////////////////////////////////// | |
impl Window { | |
/* ... */ | |
pub fn connect_destroy_signal(&self, handler: ~WidgetDestroyHandler) { | |
let data = unsafe { cast::transmute::<~~WidgetDestroyHandler, ffi::gpointer>(~handler) }; | |
"destroy".with_c_str(|cstr| { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Config.rs:34 | |
fn save_PrettyJSON<'a, T: Encodable<json::PrettyEncoder<'a>>>(p: &Path, toEncode: ~[T]) { | |
match File::create(p) { | |
Some(f) => { | |
let f2 = @mut f as @mut io::Writer; | |
let a = &mut json::PrettyEncoder::init(f2); | |
toEncode.encode(a); | |
}, None => fail!("failed to save json") | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rusttracks % LANG=C rustc test.rs -L../dumb-gtk --link-args "$(pkg-config --libs gtk+-3.0)" | |
test.rs:9:4: 9:13 warning: unused import, #[warn(unused_imports)] on by default | |
test.rs:9 use std::task; | |
^~~~~~~~~ | |
error: linking with `cc` failed: exit code: 1 | |
note: cc arguments: -L/home/philipp/programming/rust/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib -m64 -o test test.o -L/home/philipp/programming/rust/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib -lstd-6425b930ca146ae9-0.9-pre -L/home/philipp/programming/rust/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib -lrustuv-a13edc95d75df17-0.9-pre -L../dumb-gtk -lgtk-2f2c3f42f26b7cc3-0.0 -L../dumb-gtk -L/home/philipp/programming/rust-misc/rusttracks/.rust -L/home/philipp/programming/rust-misc/rusttracks -Wl,--as-needed -lrt -ldl -lm -lmorestack -lrustrt -Wl,-rpath,$ORIGIN/../../rust/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib -Wl,-rpath,$ORIGIN/../dumb-gtk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mod a { | |
extern { | |
fn my_fn(a: *u8); | |
} | |
} | |
mod b { | |
extern { | |
fn my_fn(a: *u16); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 15903829aa8f8553829770ce052dc165797738e4 Mon Sep 17 00:00:00 2001 | |
From: =?UTF-8?q?Philipp=20Br=C3=BCschweiler?= <blei42@gmail.com> | |
Date: Fri, 29 Mar 2013 20:32:54 +0100 | |
Subject: [PATCH] compositor: don't let weston terminate with dpms set to off | |
if possible | |
This will not catch the cases where weston crashes, but it's at least | |
better than the current state. | |
--- | |
src/compositor.c | 28 +++++++++++++++++++--------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 995bc862ee398257ffd97d48d6d62fcd9107db2c Mon Sep 17 00:00:00 2001 | |
From: =?UTF-8?q?Philipp=20Br=C3=BCschweiler?= <blei42@gmail.com> | |
Date: Sun, 10 Mar 2013 14:12:49 +0100 | |
Subject: [PATCH 1/2] compositor: remove unused field option_idle_time | |
--- | |
src/compositor.c | 1 - | |
src/compositor.h | 3 +-- | |
2 files changed, 1 insertion(+), 3 deletions(-) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/gallium/state_trackers/egl/wayland/native_shm.c b/src/gallium/state_trackers/egl/wayland/native_shm.c | |
index a959237..2499677 100644 | |
--- a/src/gallium/state_trackers/egl/wayland/native_shm.c | |
+++ b/src/gallium/state_trackers/egl/wayland/native_shm.c | |
@@ -163,7 +163,7 @@ wayland_shm_display_init_screen(struct native_display *ndpy) | |
return FALSE; | |
if (shmdpy->base.formats == 0) | |
- wayland_roundtrip(shmdpy->base.dpy); | |
+ wayland_roundtrip(&shmdpy->base); |
NewerOlder