Skip to content

Instantly share code, notes, and snippets.

View aaronbartell's full-sized avatar
🥓
Happy

Aaron Bartell aaronbartell

🥓
Happy
View GitHub Profile
@aaronbartell
aaronbartell / gist:8872852
Created February 7, 2014 22:00
mixin test
module Foo
def a1
puts "a1: I am a #{self.class.name}"
end
def Foo.a2
puts "a2: I am a #{self.class.name}"
end
def self.a3
puts "a3: I am a #{self.class.name}"
end
@aaronbartell
aaronbartell / config.log2014-08-14.09:23
Last active August 29, 2015 14:04
jffi OS400 build log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by libffi configure 3.0.10, which was
generated by GNU Autoconf 2.68. Invocation command line was
$ /home/aaron/git/jffi/jni/libffi/configure --disable-static --with-pic=yes --disable-dependency-tracking
## --------- ##
## Platform. ##
def say_hi name
puts "hi #{name}"
end
say_hi "Aaron"
module Talk
def self.hi name
puts "n1:#{name.object_id}"
name = "#{name}, welcome to the jungle."
puts "n2:#{name.object_id}"
end
end
require_relative 'talk'
module Talk
def self.hi name
puts "n1:#{name.object_id}"
name = "#{name}, welcome to the jungle."
puts "n2:#{name.object_id}"
end
end
-bash-4.2$ git status
# On branch master
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# say_hi.rb
nothing added to commit but untracked files present (use "git add" to track)
-bash-4.2$ git commit -m 'Added say_hi.rb'
[master d59ea45] Added say_hi.rb
commit 1dd507ec8a3d761dea1ad13cf5a00008e29f4e90
Author: Aaron Bartell <aaronbartell@gmail.com>
Date: Tue Oct 7 07:51:42 2014 -0500
Test whether pass-by-reference is true with object_id method call
commit d2e14ee138c1bd48a6d67d5e283697580f35ea35
Author: Aaron Bartell <aaronbartell@gmail.com>
Date: Tue Oct 7 07:50:52 2014 -0500
diff --git a/jni/jffi/jffi.h b/jni/jffi/jffi.h
index d1f5274..5e67391 100644
--- a/jni/jffi/jffi.h
+++ b/jni/jffi/jffi.h
@@ -65,6 +65,33 @@ extern "C" {
# define unlikely(x) (x)
#endif
+/* Do not move this. Some versions of AIX are very picky about where
+ this is positioned. */
diff --git a/jni/libffi/include/ffi_common.h b/jni/libffi/include/ffi_common.h
index d953762..8349909 100644
--- a/jni/libffi/include/ffi_common.h
+++ b/jni/libffi/include/ffi_common.h
@@ -16,32 +16,7 @@ extern "C" {
#include <fficonfig.h>
-/* Do not move this. Some versions of AIX are very picky about where
- this is positioned. */
-bash-4.2$ ant jar
Buildfile: /home/aaron/git/jffi/build.xml
-pre-init:
-init-vars:
[mkdir] Created dir: /home/aaron/git/jffi/build/jni
-post-init: