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
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved. | |
using System.IO; | |
namespace UnrealBuildTool.Rules | |
{ | |
public class TestBlankPlugin : ModuleRules | |
{ | |
private string ModulePath { | |
get { | |
return Path.GetFullPath(Path.GetDirectoryName(RulesCompiler.GetModuleFilename(this.GetType().Name))); |
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
#include "HelloWorld.h" | |
#include "DynamicLib.h" | |
// Extern decl | |
typedef int32(*rs_trigger)(int32 value); | |
int32 DynamicLib::thing() | |
{ | |
int32 rtn = -1; | |
#if PLATFORM_WINDOWS |
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
// Fill out your copyright notice in the Description page of Project Settings. | |
#include "HelloWorld.h" | |
#include "Sample1.h" | |
#include "Sample2.h" | |
// Sets default values | |
ASample1::ASample1() | |
{ |
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
use traits::Trait; | |
use array::ArrayExt; | |
use array::Array; | |
use array::Block; | |
use array::Raw; | |
use std::default::Default; | |
/// A set of errors to associate with the buffer | |
#[derive(Debug)] | |
pub enum BufferError { |
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
enum PlayerError { | |
InvalidCodec(String), | |
InvalidMedia, | |
} | |
impl std::fmt::Display for PlayerError { | |
fn fmt(&self, f: &mut std::fmt::Formatter) -> Result<(), std::fmt::Error> { | |
use self::PlayerError::*; | |
let s = match *self { | |
InvalidCodec(ref s) => format!("Invalid codec: {}", s).clone(), |
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
doug-2:lisp-rs doug$ cargo build --verbose | |
Compiling lisp_rs v0.0.1 (file:///Users/doug/dev/lisp-rs) | |
Running `rustc build.rs --crate-name build-script-build --crate-type bin -C prefer-dynamic -g --out-dir /Users/doug/dev/lisp-rs/target/build/lisp_rs-352b28c7732846c9 --dep-info /Users/doug/dev/lisp-rs/target/.fingerprint/lisp_rs-352b28c7732846c9/dep-bin-build-script-build -L /Users/doug/dev/lisp-rs/target -L /Users/doug/dev/lisp-rs/target/deps` | |
Running `/Users/doug/dev/lisp-rs/target/build/lisp_rs-352b28c7732846c9/build-script-build` | |
Running `rustc /Users/doug/dev/lisp-rs/src/lib.rs --crate-name lisp_rs --crate-type lib -g -C metadata=352b28c7732846c9 -C extra-filename=-352b28c7732846c9 --out-dir /Users/doug/dev/lisp-rs/target --dep-info /Users/doug/dev/lisp-rs/target/.fingerprint/lisp_rs-352b28c7732846c9/dep-lib-lisp_rs -L /Users/doug/dev/lisp-rs/target -L /Users/doug/dev/lisp-rs/target/deps -l editline` | |
Running `rustc /Users/doug/dev/lisp-rs/src/main.rs --crate-name lisp_rs --crate-typ |
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
pub enum DataType { | |
IsView, | |
IsStatic, | |
IsNone | |
} | |
/// Hold various possible types of data | |
pub struct Data { | |
data: Trait<Box<Array<u8> + 'static>, DataType> | |
} |
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
import pytz | |
import datetime | |
value = datetime.time(hour=12, minute=0, tzinfo=pytz.timezone('Australia/Perth')) | |
print pytz.timezone('Australia/Perth').utcoffset(value) | |
value = datetime.time(hour=12, minute=0, tzinfo=pytz.timezone('Australia/Perth')) | |
print pytz.timezone('Australia/Perth').utcoffset(datetime.datetime.utcnow()) |
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
diff --git a/src/lib/codegen.rs b/src/lib/codegen.rs | |
index 3166f63..f8121a8 100644 | |
--- a/src/lib/codegen.rs | |
+++ b/src/lib/codegen.rs | |
@@ -800,7 +800,7 @@ impl<'a> IndentWriter<'a> { | |
#[allow(dead_code)] | |
fn fail<S : Str>(&self, reason: S) { | |
- self.write_line(format!("fail!({:?});", reason)); | |
+ self.write_line(format!("fail!({});", reason.as_slice())); |
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
use pattern::Pattern; | |
use pattern::Glob; | |
mod pattern; | |
fn main() { | |
let foo = Glob; | |
} |