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
../../configure --prefix=~/local --program-suffix=-1.9.2 --with-rubylibprefix=~/local/lib/ruby-1.9.2 --with-soname=ruby-1.9.2 --with-ridir=~/local/share/ri-1.9.2 --with-rubyhdrdir=~/local/include/ruby-1.9.1-1.9.2 --with-gdbm-dir=/opt/local --with-libyaml-dir=/opt/local --with-libffi-dir=/opt/local --with-arch=i386 CC="ccache gcc" |
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/ext/fiddle/conversions.c b/ext/fiddle/conversions.c | |
index bb5361a..2291829 100644 | |
--- a/ext/fiddle/conversions.c | |
+++ b/ext/fiddle/conversions.c | |
@@ -1,5 +1,55 @@ | |
#include <fiddle.h> | |
+#undef ffi_type_uchar | |
+#undef ffi_type_schar | |
+#undef ffi_type_ushort |
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
trait ExpressionTrueness[T] { | |
def myElse(then: => T) | |
} | |
class ExpressionTruth[T](obj: T) extends ExpressionTrueness[T] { | |
def myElse(then: => T) = obj | |
} | |
class ExpressionFalsity[T] extends ExpressionTrueness[T]() { | |
def myElse(then: => T) = then |
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
#!/bin/sh | |
GIT_DIR=`git rev-parse --git-dir` | |
sqlite3 $GIT_DIR/revisions.sqlite \ | |
'create table revisions(svn integer primary key, hash char(40) not null); alter table revisions add index i_hash(hash);' |
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
--- src/lib/getopt.c.orig 2010-04-18 08:54:21.000000000 -0500 | |
+++ src/lib/getopt.c 2010-04-18 08:54:34.000000000 -0500 | |
@@ -57,7 +57,9 @@ | |
#ifdef __GNU_LIBRARY__ | |
/* Don't include stdlib.h for non-GNU C libraries because some of them | |
contain conflicting prototypes for getopt. */ | |
+#ifndef _AIX | |
#include <stdlib.h> | |
+#endif | |
#endif /* GNU C library. */ |
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/.gitignore b/.gitignorenew file mode 100644 | |
index 0000000..01bee7b | |
--- /dev/null | |
+++ b/.gitignore | |
@@ -0,0 +1,30 @@ | |
+.obj | |
+.deps | |
+*.a | |
+config.log | |
+config.out |
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
CC="ccache gcc" ../../mri/configure --prefix=~/local --program-suffix=-1.9.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
#!/bin/sh | |
svn log -q http://svn.ruby-lang.org/repos/ruby/ | grep -v '^--' | cut -d'|' -f 2 | sed 's/ //g' | sort | uniq |
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
CmdUtils.CreateCommand({ | |
name: "ruby-dev", | |
takes: {"number": noun_arb_text}, | |
execute: function(number) { | |
if (number && number.text && number.text.length != 0) { | |
window.content.location.href = "http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-dev/" + number.text; | |
} else { | |
window.content.location.href = "http://blade.nagaokaut.ac.jp/ruby/ruby-dev/index.shtml"; | |
} | |
} |
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
require 'test/unit' | |
require '/Users/yugui/dev/evil-ruby/lib/evil' | |
class Object | |
alias_method :c, :actual_class | |
end | |
class Class | |
alias_method :s, :actual_superclass | |
end | |
class Foo; end |