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
target datalayout = "e-p:16:16:16-i8:16:16-i16:16:16-i32:16:16-s0:16:16-n16" | |
target triple = "dcpu16" | |
define void @storei32(i32* nocapture %a, i32 %b) nounwind { | |
entry: | |
store i32 %b, i32* %a, align 1, !tbaa !0 | |
ret void | |
} | |
will be expanded to |
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
levenshtein-automata.rs:48:16: 48:34 error: multiple applicable methods in scope | |
levenshtein-automata.rs:48 for s.transitions.each() |c, t| { | |
^~~~~~~~~~~~~~~~~~ | |
levenshtein-automata.rs:48:16: 48:34 error: multiple applicable methods in scope | |
levenshtein-automata.rs:48 for s.transitions.each() |c, t| { | |
^~~~~~~~~~~~~~~~~~ | |
levenshtein-automata.rs:80:16: 80:34 error: multiple applicable methods in scope | |
levenshtein-automata.rs:80 for s.transitions.each() |c, t| { | |
^~~~~~~~~~~~~~~~~~ | |
levenshtein-automata.rs:80:16: 80:34 error: multiple applicable methods in scope |
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
impl CXCursor : IterBytes { | |
pure fn iter_bytes(lsb0: bool, f: Cb) { | |
iter_bytes_3(&self.kind, &self.xdata, &self.data, lsb0, f); | |
} | |
} | |
main.rs:37:4: 39:5 error: method `iter_bytes` has an incompatible type: expected argument mode ++, but found + | |
main.rs:37 pure fn iter_bytes(lsb0: bool, f: Cb) { | |
main.rs:38 iter_bytes_3(&self.kind, &self.xdata, &self.data, lsb0, f); |
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
// shouldn't parse but does | |
extern { pub pub fn foo(); } | |
// ignores visibility | |
extern { pub fn bar(); } |
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
pub fn at_vec_remove(v: @[int], remove: int) -> @[int] { | |
do at_vec::build |f| { | |
for v.each() |e| { | |
if (*e != remove) { | |
f(*e); | |
} | |
} | |
} | |
} |
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
enum FOO { | |
Foo(fn@()) | |
} | |
fn bar() { | |
io::println("baz"); | |
} | |
fn main() { | |
let f = Foo(bar); |
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
struct Thing { | |
x: int | |
} | |
impl Thing { | |
pure fn mul(c: &int) -> Thing { | |
Thing {x: self.x * *c} | |
} | |
} |
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
extern mod std; | |
use option::{Option, Some, None}; | |
macro_rules! offset_of(($T:ty, $field:ident) => ( | |
unsafe { | |
let x: *$T = ptr::null(); | |
ptr::to_uint(&(*x).$field) | |
})) | |
macro_rules! container_of(($p:expr, $T:ty, $field:ident) => ( |
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); |
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(-) |
OlderNewer