This file contains hidden or 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
#![feature(box_syntax)] | |
use std::ops::DerefMut; | |
use std::ops::Deref; | |
#[derive(Show)] | |
struct List<T> { | |
car: T, | |
cdr: Option<Box<List<T>>>, | |
} |
This file contains hidden or 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 cae2e1a925c52449fd13c2dce7dacbf9d7b9725a Mon Sep 17 00:00:00 2001 | |
From: Yuxuan Shui <[email protected]> | |
Date: Sun, 30 Mar 2014 03:58:12 +0800 | |
Subject: [PATCH 1/2] core: Add a User= to scopes. | |
Conflicts: | |
src/core/scope.c | |
--- | |
src/core/dbus-scope.c | 13 +++++++++++++ | |
src/core/load-fragment-gperf.gperf.m4 | 1 + |
This file contains hidden or 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
#define s "U+%04llX\n" | |
#define G(x) goto x | |
unsigned long long cp; | |
main(a,_,c){if(c)G(y); | |
if(~_&0x40)G(e);if(_&(1<<a))G(x); | |
return printf(s,cp+((_&~(-1<<a))<<6*(6-a))); | |
x:if((c=getchar())&0x40)G(e); | |
cp=(cp<<6)+(c&0x3f);return main(a-1,_,0); | |
y:if(!~(_=getchar()))return 0; | |
_&0x80?main(6,_,cp=0):printf(s,_);return main(a,_,c); |
This file contains hidden or 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 b5ab6d1ad67e38a11d5296d41a4c3b82145c4185 Mon Sep 17 00:00:00 2001 | |
From: Yuxuan Shui <[email protected]> | |
Date: Sun, 22 Sep 2013 01:17:57 +0800 | |
Subject: [PATCH 1/2] core: Add a User= to scopes. | |
--- | |
src/core/dbus-scope.c | 17 +++++++++++++++++ | |
src/core/load-fragment-gperf.gperf.m4 | 1 + | |
src/core/scope.c | 27 +++++++++++++++++++++++++++ | |
src/core/scope.h | 2 ++ |
This file contains hidden or 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 434b04aff25d7226e71c4d7f2387e7dd30c80b83 Mon Sep 17 00:00:00 2001 | |
From: darkraven <[email protected]> | |
Date: Thu, 9 Aug 2012 15:01:10 +0800 | |
Subject: [PATCH 1/2] logic changes | |
--- | |
src/render.c | 225 ++++++++++++++++++++++++++--------------------------------- | |
1 file changed, 97 insertions(+), 128 deletions(-) | |
diff --git a/src/render.c b/src/render.c |
This file contains hidden or 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 f10f9cbd90f323dcc66c130cd1f839de3b75ec67 Mon Sep 17 00:00:00 2001 | |
From: darkraven <[email protected]> | |
Date: Wed, 8 Aug 2012 19:38:12 +0800 | |
Subject: [PATCH] draft | |
--- | |
src/render.c | 339 ++++++++++++++++++++++++++++------------------------------- | |
1 file changed, 161 insertions(+), 178 deletions(-) | |
diff --git a/src/render.c b/src/render.c |
This file contains hidden or 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
/* Simple XCB application drawing a box in a window */ | |
/* to compile it use : | |
gcc -Wall x.c -lxcb | |
*/ | |
#include <xcb/xcb.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
void xcb_set_window_rect(xcb_connection_t *conn, xcb_window_t window, int *r) { | |
xcb_void_cookie_t cookie; |
This file contains hidden or 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
/* Simple XCB application to test configure request handling */ | |
/* Run this problem, enable floating mode, and press a key while the window is focused. | |
* The window will follow the mouse */ | |
/* to compile it use : | |
gcc -Wall x.c -lxcb | |
*/ | |
#include <xcb/xcb.h> | |
#include <stdio.h> | |
#include <stdlib.h> |
NewerOlder