Skip to content

Instantly share code, notes, and snippets.

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.
#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;
@jgouly
jgouly / gist:1691036
Created January 27, 2012 21:34
titan
class Titan
OPCODES = %w(
SHR
ADD
SUB
AND
LOR
XOR
NOT
PSH
class Object
def self.const_missing k
const_set k, Class.new
end
end
class Lol < Lol2
end
p Lol.superclass
#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*
#include <iostream>
#include <cstdio>
namespace jelta
{
enum TokenType {
LPAREN,
RPAREN,
INTEGER,
SYMBOL,
UNUSED_LAST
[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
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()
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
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