Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to Rust 0.6 syntax. #6

Merged
merged 1 commit into from Mar 28, 2013
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

@@ -35,10 +35,10 @@ pub type GLdouble = f64;

pub struct Window(c_int);

pub const DOUBLE: c_uint = 2 as c_uint;
pub static DOUBLE: c_uint = 2 as c_uint;

const WINDOW_WIDTH: GLenum = 102;
const WINDOW_HEIGHT: GLenum = 103;
static WINDOW_WIDTH: GLenum = 102;
static WINDOW_HEIGHT: GLenum = 103;

pub enum State {
WindowWidth,
@@ -136,7 +136,7 @@ pub fn reshape_callback_tls_key(_callback: @@fn(x: c_int, y: c_int)) {
// Empty.
}

pub extern fn reshape_callback(++width: c_int, ++height: c_int) {
pub extern fn reshape_callback(width: c_int, height: c_int) {
unsafe {
let callback = local_data_get(reshape_callback_tls_key).get();
(*callback)(width, height);
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.