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/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp | |
index 52ba489..4d8864e 100644 | |
--- a/lib/Driver/Tools.cpp | |
+++ b/lib/Driver/Tools.cpp | |
@@ -1321,15 +1321,18 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, | |
// The make clang go fast button. | |
CmdArgs.push_back("-disable-free"); | |
+ const char *InputFilename = darwin::CC1::getBaseInputName(Args, Inputs); | |
// Disable the verification pass in -asserts builds. |
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 <llvm/Support/IRReader.h> | |
#include <llvm/LLVMContext.h> | |
#include <llvm/Module.h> | |
#include <llvm/Support/raw_ostream.h> | |
using namespace llvm; | |
int main() | |
{ | |
std::string error; | |
Module *stdlib; |
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
class Titan | |
OPCODES = %w( | |
SHR | |
ADD | |
SUB | |
AND | |
LOR | |
XOR | |
NOT | |
PSH |
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
class Object | |
def self.const_missing k | |
const_set k, Class.new | |
end | |
end | |
class Lol < Lol2 | |
end | |
p Lol.superclass |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <ctype.h> | |
#define h ('('==c||c==')') | |
FILE *r;typedef struct n a;struct n{int t;char *v;a *f;a *s;}; | |
a*n(int t,char*v,a*f,a*s){a*x=(a*)malloc(sizeof(a));if((x->t = t)){x->f | |
=f;x->s=s;}else{char*c=malloc(strlen(v)+1);strcpy(c,v);x->v=c;}return | |
x;}void p(a*a){if(!a){printf("()");}else{if(a->t){printf("(cons ") | |
;p(a->f);printf(" ");p(a->s);printf(")");}else{printf("%s",a->v);}}}a* |
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 <iostream> | |
#include <cstdio> | |
namespace jelta | |
{ | |
enum TokenType { | |
LPAREN, | |
RPAREN, | |
INTEGER, | |
SYMBOL, | |
UNUSED_LAST |
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
[jey@tigger diakonos]$ git diff | |
diff --git a/lib/diakonos/buffer/cursor.rb b/lib/diakonos/buffer/cursor.rb | |
index 50ee557..c8a16da 100644 | |
--- a/lib/diakonos/buffer/cursor.rb | |
+++ b/lib/diakonos/buffer/cursor.rb | |
@@ -115,7 +115,7 @@ module Diakonos | |
end | |
def cursor_to_eol | |
- y = @win_main.cury |
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/spec/buffer.rb b/spec/buffer.rb | |
index 30b94b4..a45fee6 100644 | |
--- a/spec/buffer.rb | |
+++ b/spec/buffer.rb | |
@@ -240,15 +240,15 @@ end | |
describe 'A Diakonos user' do | |
before do | |
- @b = Diakonos::Buffer.new( 'filepath' => SAMPLE_FILE ) | |
+ @b = Diakonos::Buffer.new() |
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
A Diakonos user | |
- can close XML tags [FAILED] | |
Bacon::Error: "<div></div>!/usr/bin/env ruby".==("<div></div>") failed | |
spec/buffer.rb:254:in `block (2 levels) in <top (required)>': A Diakonos user - can close XML tags | |
spec/buffer.rb:246:in `block in <top (required)>' | |
spec/buffer.rb:240:in `<top (required)>' | |
64 specifications (638 requirements), 1 failures, 0 errors |
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
def go_to_char( char, after = ON_CHAR ) | |
r = @last_row | |
i = @lines[ r ].index( char, @last_col + 1 ) | |
if i | |
if after | |
i += 1 | |
end | |
return cursor_to r, i, DO_DISPLAY | |
end |