sender 1.5.1 → 1.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG.rdoc +5 -0
- data/Manifest.txt +2 -24
- data/Rakefile +1 -0
- data/VERSION.rdoc +1 -1
- data/ext/sender/RubySourceSupport.c +0 -33
- data/ext/sender/RubySourceSupport.h +7 -1
- data/ext/sender/extconf.rb +19 -1
- data/ext/sender/rb_Kernel.c +9 -0
- data/ext/sender/{main.c → sender.c} +0 -0
- data/lib/VERSION.rdoc +1 -1
- data/lib/sender/sender.bundle +0 -0
- data/mkmf.log +69 -0
- data/sender.gemspec +6 -3
- metadata +20 -35
- data/Makefile +0 -181
- data/ext/sender/debug.h +0 -36
- data/ext/sender/dln.h +0 -41
- data/ext/sender/encdb.h +0 -147
- data/ext/sender/eval_intern.h +0 -215
- data/ext/sender/gc.h +0 -75
- data/ext/sender/id.h +0 -163
- data/ext/sender/iseq.h +0 -103
- data/ext/sender/node.h +0 -516
- data/ext/sender/parse.h +0 -189
- data/ext/sender/regenc.h +0 -207
- data/ext/sender/regint.h +0 -842
- data/ext/sender/regparse.h +0 -351
- data/ext/sender/revision.h +0 -1
- data/ext/sender/thread_pthread.h +0 -24
- data/ext/sender/thread_win32.h +0 -33
- data/ext/sender/transcode_data.h +0 -106
- data/ext/sender/transdb.h +0 -147
- data/ext/sender/version.h +0 -55
- data/ext/sender/vm_core.h +0 -647
- data/ext/sender/vm_exec.h +0 -184
- data/ext/sender/vm_insnhelper.h +0 -196
- data/ext/sender/vm_opts.h +0 -51
data/CHANGELOG.rdoc
CHANGED
@@ -58,3 +58,8 @@ Added Enumerator support. Non-block enumeration will iterate the backtrace that
|
|
58
58
|
=== 1.5.1 2010-07-09
|
59
59
|
|
60
60
|
Fixed return values for :backtrace_with_frame to return nil rather than false.
|
61
|
+
|
62
|
+
=== 1.5.2-3 2010-07-10
|
63
|
+
|
64
|
+
Added support for Ruby 1.9.2rc1 (iseq struct changed).
|
65
|
+
Added ruby_core_source support so that Ruby core files don't have to be included.
|
data/Manifest.txt
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
.autotest
|
2
2
|
CHANGELOG.rdoc
|
3
|
-
Makefile
|
4
3
|
Manifest.txt
|
5
4
|
README.rdoc
|
6
5
|
Rakefile
|
@@ -9,38 +8,17 @@ ext/sender/RPSender_internal.c
|
|
9
8
|
ext/sender/RPSender_internal.h
|
10
9
|
ext/sender/RubySourceSupport.c
|
11
10
|
ext/sender/RubySourceSupport.h
|
12
|
-
ext/sender/debug.h
|
13
|
-
ext/sender/dln.h
|
14
|
-
ext/sender/encdb.h
|
15
|
-
ext/sender/eval_intern.h
|
16
11
|
ext/sender/extconf.rb
|
17
|
-
ext/sender/gc.h
|
18
|
-
ext/sender/id.h
|
19
|
-
ext/sender/iseq.h
|
20
|
-
ext/sender/main.c
|
21
|
-
ext/sender/node.h
|
22
|
-
ext/sender/parse.h
|
23
12
|
ext/sender/rb_Global.c
|
24
13
|
ext/sender/rb_Global.h
|
25
14
|
ext/sender/rb_Global_internal.h
|
26
15
|
ext/sender/rb_Kernel.c
|
27
16
|
ext/sender/rb_Kernel.h
|
28
17
|
ext/sender/rb_Kernel_internal.h
|
29
|
-
ext/sender/
|
30
|
-
ext/sender/regint.h
|
31
|
-
ext/sender/regparse.h
|
32
|
-
ext/sender/revision.h
|
33
|
-
ext/sender/thread_pthread.h
|
34
|
-
ext/sender/thread_win32.h
|
35
|
-
ext/sender/transcode_data.h
|
36
|
-
ext/sender/transdb.h
|
37
|
-
ext/sender/version.h
|
38
|
-
ext/sender/vm_core.h
|
39
|
-
ext/sender/vm_exec.h
|
40
|
-
ext/sender/vm_insnhelper.h
|
41
|
-
ext/sender/vm_opts.h
|
18
|
+
ext/sender/sender.c
|
42
19
|
lib/VERSION.rdoc
|
43
20
|
lib/sender.rb
|
44
21
|
lib/sender/sender.bundle
|
22
|
+
mkmf.log
|
45
23
|
sender.gemspec
|
46
24
|
test/test_sender.rb
|
data/Rakefile
CHANGED
@@ -11,6 +11,7 @@ Hoe.spec 'sender' do
|
|
11
11
|
self.extra_rdoc_files = FileList['*.rdoc']
|
12
12
|
self.spec_extras = { :extensions => ["ext/sender/extconf.rb"] }
|
13
13
|
self.extra_dev_deps << ['rake-compiler', '>= 0']
|
14
|
+
self.extra_dev_deps << ['ruby_core_source', '>= 0']
|
14
15
|
|
15
16
|
|
16
17
|
Rake::ExtensionTask.new( 'sender', spec ) do |ext|
|
data/VERSION.rdoc
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.5.
|
1
|
+
1.5.3
|
@@ -10,39 +10,6 @@
|
|
10
10
|
// No header, so easiest way to integrate was to copy the code and make my own header.
|
11
11
|
// Previously declared static; otherwise unchanged
|
12
12
|
|
13
|
-
ID frame_func_id( rb_control_frame_t *cfp )
|
14
|
-
{
|
15
|
-
rb_iseq_t *iseq = cfp->iseq;
|
16
|
-
if (!iseq) {
|
17
|
-
return cfp->method_id;
|
18
|
-
}
|
19
|
-
while (iseq) {
|
20
|
-
|
21
|
-
if (RUBY_VM_IFUNC_P(iseq)) {
|
22
|
-
return rb_intern("<ifunc>");
|
23
|
-
}
|
24
|
-
if (iseq->defined_method_id) {
|
25
|
-
return iseq->defined_method_id;
|
26
|
-
}
|
27
|
-
if (iseq->local_iseq == iseq) {
|
28
|
-
break;
|
29
|
-
}
|
30
|
-
iseq = iseq->parent_iseq;
|
31
|
-
}
|
32
|
-
return 0;
|
33
|
-
}
|
34
|
-
|
35
|
-
ID rb_frame_caller(void)
|
36
|
-
{
|
37
|
-
rb_thread_t *th = GET_THREAD();
|
38
|
-
rb_control_frame_t *prev_cfp = RUBY_VM_PREVIOUS_CONTROL_FRAME(th->cfp);
|
39
|
-
/* check if prev_cfp can be accessible */
|
40
|
-
if ((void *)(th->stack + th->stack_size) == (void *)(prev_cfp)) {
|
41
|
-
return 0;
|
42
|
-
}
|
43
|
-
return frame_func_id(prev_cfp);
|
44
|
-
}
|
45
|
-
|
46
13
|
int rb_vm_get_sourceline(const rb_control_frame_t *cfp)
|
47
14
|
{
|
48
15
|
int line_no = 0;
|
data/ext/sender/extconf.rb
CHANGED
@@ -6,5 +6,23 @@ RbConfig::MAKEFILE_CONFIG['CC'] = ENV['CC'] if ENV['CC']
|
|
6
6
|
|
7
7
|
target = "sender"
|
8
8
|
|
9
|
+
require 'ruby_core_source'
|
10
|
+
headers = proc { have_header( "vm_core.h" ) and
|
11
|
+
have_header( "iseq.h" ) and
|
12
|
+
have_header( "eval_intern.h" ) and
|
13
|
+
have_header( "version.h" ) }
|
14
|
+
|
15
|
+
if RUBY_VERSION == "1.9.2"
|
16
|
+
RUBY_REVISION = 28524
|
17
|
+
end
|
18
|
+
|
19
|
+
# --with-ruby-include=...
|
20
|
+
# allow user to pass in non-standard core include directory
|
21
|
+
dir_config( "ruby" )
|
22
|
+
|
9
23
|
# Create our makefile from sources
|
10
|
-
|
24
|
+
if ! Ruby_core_source::create_makefile_with_core( headers, target )
|
25
|
+
puts 'Make failed.'
|
26
|
+
# error
|
27
|
+
exit(1)
|
28
|
+
end
|
data/ext/sender/rb_Kernel.c
CHANGED
@@ -573,7 +573,16 @@ VALUE rb_RPRuby_Sender_Kernel_internal_backtraceHashForControlFrame( rb_control_
|
|
573
573
|
else if ( RUBYVM_CFUNC_FRAME_P( *c_current_frame ) ) {
|
574
574
|
|
575
575
|
// get name of method
|
576
|
+
|
577
|
+
#if RUBY_PATCHLEVEL == -1
|
578
|
+
// For 1.9.2:
|
579
|
+
const rb_method_entry_t* c_method_for_frame = ( *c_current_frame )->me;
|
580
|
+
c_method_name = rb_id2name( c_method_for_frame->called_id );
|
581
|
+
#else
|
582
|
+
// For 1.9.1:
|
576
583
|
c_method_name = rb_id2name( ( *c_current_frame )->method_id );
|
584
|
+
#endif
|
585
|
+
|
577
586
|
rb_method_name = ( c_method_name == NULL ? Qnil : ID2SYM( rb_intern( c_method_name ) ) );
|
578
587
|
rb_object_for_frame = ( *c_current_frame )->self;
|
579
588
|
}
|
File without changes
|
data/lib/VERSION.rdoc
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.5.
|
1
|
+
1.5.3
|
data/lib/sender/sender.bundle
CHANGED
Binary file
|
data/mkmf.log
ADDED
@@ -0,0 +1,69 @@
|
|
1
|
+
have_header: checking for vm_core.h... -------------------- no
|
2
|
+
|
3
|
+
"gcc -o conftest -I/usr/local/include/ruby-1.9.1/x86_64-darwin10.4.0 -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -Iext/sender -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -march=x86-64 -g -ggdb3 -gdwarf-2 -g3 -maccumulate-outgoing-args -D_FILE_OFFSET_BITS=64 -fno-common -pipe conftest.c -L. -L/usr/local/lib -L. -L/usr/local/lib -lruby.1.9.1-static -lpthread -ldl -lobjc "
|
4
|
+
checked program was:
|
5
|
+
/* begin */
|
6
|
+
1: #include "ruby.h"
|
7
|
+
2:
|
8
|
+
3: int main() {return 0;}
|
9
|
+
/* end */
|
10
|
+
|
11
|
+
"gcc -E -I/usr/local/include/ruby-1.9.1/x86_64-darwin10.4.0 -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -Iext/sender -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -march=x86-64 -g -ggdb3 -gdwarf-2 -g3 -maccumulate-outgoing-args -D_FILE_OFFSET_BITS=64 -fno-common -pipe conftest.c -o conftest.i"
|
12
|
+
conftest.c:3:21: error: vm_core.h: No such file or directory
|
13
|
+
checked program was:
|
14
|
+
/* begin */
|
15
|
+
1: #include "ruby.h"
|
16
|
+
2:
|
17
|
+
3: #include <vm_core.h>
|
18
|
+
/* end */
|
19
|
+
|
20
|
+
--------------------
|
21
|
+
|
22
|
+
have_header: checking for vm_core.h... -------------------- yes
|
23
|
+
|
24
|
+
"gcc -E -I/usr/local/include/ruby-1.9.1/x86_64-darwin10.4.0 -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -Iext/sender -I/usr/local/include/ruby-1.9.1/ruby-1.9.2-rc1 -march=x86-64 -g -ggdb3 -gdwarf-2 -g3 -maccumulate-outgoing-args -D_FILE_OFFSET_BITS=64 -fno-common -pipe conftest.c -o conftest.i"
|
25
|
+
checked program was:
|
26
|
+
/* begin */
|
27
|
+
1: #include "ruby.h"
|
28
|
+
2:
|
29
|
+
3: #include <vm_core.h>
|
30
|
+
/* end */
|
31
|
+
|
32
|
+
--------------------
|
33
|
+
|
34
|
+
have_header: checking for iseq.h... -------------------- yes
|
35
|
+
|
36
|
+
"gcc -E -I/usr/local/include/ruby-1.9.1/x86_64-darwin10.4.0 -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -Iext/sender -I/usr/local/include/ruby-1.9.1/ruby-1.9.2-rc1 -march=x86-64 -g -ggdb3 -gdwarf-2 -g3 -maccumulate-outgoing-args -D_FILE_OFFSET_BITS=64 -fno-common -pipe conftest.c -o conftest.i"
|
37
|
+
checked program was:
|
38
|
+
/* begin */
|
39
|
+
1: #include "ruby.h"
|
40
|
+
2:
|
41
|
+
3: #include <iseq.h>
|
42
|
+
/* end */
|
43
|
+
|
44
|
+
--------------------
|
45
|
+
|
46
|
+
have_header: checking for eval_intern.h... -------------------- yes
|
47
|
+
|
48
|
+
"gcc -E -I/usr/local/include/ruby-1.9.1/x86_64-darwin10.4.0 -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -Iext/sender -I/usr/local/include/ruby-1.9.1/ruby-1.9.2-rc1 -march=x86-64 -g -ggdb3 -gdwarf-2 -g3 -maccumulate-outgoing-args -D_FILE_OFFSET_BITS=64 -fno-common -pipe conftest.c -o conftest.i"
|
49
|
+
checked program was:
|
50
|
+
/* begin */
|
51
|
+
1: #include "ruby.h"
|
52
|
+
2:
|
53
|
+
3: #include <eval_intern.h>
|
54
|
+
/* end */
|
55
|
+
|
56
|
+
--------------------
|
57
|
+
|
58
|
+
have_header: checking for version.h... -------------------- yes
|
59
|
+
|
60
|
+
"gcc -E -I/usr/local/include/ruby-1.9.1/x86_64-darwin10.4.0 -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -Iext/sender -I/usr/local/include/ruby-1.9.1/ruby-1.9.2-rc1 -march=x86-64 -g -ggdb3 -gdwarf-2 -g3 -maccumulate-outgoing-args -D_FILE_OFFSET_BITS=64 -fno-common -pipe conftest.c -o conftest.i"
|
61
|
+
checked program was:
|
62
|
+
/* begin */
|
63
|
+
1: #include "ruby.h"
|
64
|
+
2:
|
65
|
+
3: #include <version.h>
|
66
|
+
/* end */
|
67
|
+
|
68
|
+
--------------------
|
69
|
+
|
data/sender.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{sender}
|
5
|
-
s.version = "1.5.
|
5
|
+
s.version = "1.5.3"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Asher"]
|
9
|
-
s.date = %q{2010-07-
|
9
|
+
s.date = %q{2010-07-10}
|
10
10
|
s.description = %q{Adds :__sender__ and :__caller__ to the built-in :__callee__ and :__method__ methods in Ruby 1.9.1.
|
11
11
|
|
12
12
|
Also provides object-oriented :backtrace supporting n-levels backward, :each_backtrace_frame for iteration, :backtrace_includes?,
|
@@ -15,7 +15,7 @@ matching frame information for the frame(s) matching the given description.}
|
|
15
15
|
s.email = ["asher@ridiculouspower.com"]
|
16
16
|
s.extensions = ["ext/sender/extconf.rb"]
|
17
17
|
s.extra_rdoc_files = ["Manifest.txt", "CHANGELOG.rdoc", "README.rdoc", "VERSION.rdoc"]
|
18
|
-
s.files = [".autotest", "CHANGELOG.rdoc", "
|
18
|
+
s.files = [".autotest", "CHANGELOG.rdoc", "Manifest.txt", "README.rdoc", "Rakefile", "VERSION.rdoc", "ext/sender/RPSender_internal.c", "ext/sender/RPSender_internal.h", "ext/sender/RubySourceSupport.c", "ext/sender/RubySourceSupport.h", "ext/sender/extconf.rb", "ext/sender/rb_Global.c", "ext/sender/rb_Global.h", "ext/sender/rb_Global_internal.h", "ext/sender/rb_Kernel.c", "ext/sender/rb_Kernel.h", "ext/sender/rb_Kernel_internal.h", "ext/sender/sender.c", "lib/VERSION.rdoc", "lib/sender.rb", "lib/sender/sender.bundle", "mkmf.log", "sender.gemspec", "test/test_sender.rb"]
|
19
19
|
s.homepage = %q{http://rubygems.org/gems/sender}
|
20
20
|
s.rdoc_options = ["--main", "README.rdoc"]
|
21
21
|
s.require_paths = ["lib"]
|
@@ -31,15 +31,18 @@ matching frame information for the frame(s) matching the given description.}
|
|
31
31
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
32
32
|
s.add_development_dependency(%q<rubyforge>, [">= 2.0.4"])
|
33
33
|
s.add_development_dependency(%q<rake-compiler>, [">= 0"])
|
34
|
+
s.add_development_dependency(%q<ruby_core_source>, [">= 0"])
|
34
35
|
s.add_development_dependency(%q<hoe>, [">= 2.6.1"])
|
35
36
|
else
|
36
37
|
s.add_dependency(%q<rubyforge>, [">= 2.0.4"])
|
37
38
|
s.add_dependency(%q<rake-compiler>, [">= 0"])
|
39
|
+
s.add_dependency(%q<ruby_core_source>, [">= 0"])
|
38
40
|
s.add_dependency(%q<hoe>, [">= 2.6.1"])
|
39
41
|
end
|
40
42
|
else
|
41
43
|
s.add_dependency(%q<rubyforge>, [">= 2.0.4"])
|
42
44
|
s.add_dependency(%q<rake-compiler>, [">= 0"])
|
45
|
+
s.add_dependency(%q<ruby_core_source>, [">= 0"])
|
43
46
|
s.add_dependency(%q<hoe>, [">= 2.6.1"])
|
44
47
|
end
|
45
48
|
end
|
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sender
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 1
|
5
4
|
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 1
|
8
7
|
- 5
|
9
|
-
-
|
10
|
-
version: 1.5.
|
8
|
+
- 3
|
9
|
+
version: 1.5.3
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Asher
|
@@ -15,7 +14,7 @@ autorequire:
|
|
15
14
|
bindir: bin
|
16
15
|
cert_chain: []
|
17
16
|
|
18
|
-
date: 2010-07-
|
17
|
+
date: 2010-07-10 00:00:00 -04:00
|
19
18
|
default_executable:
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
@@ -26,7 +25,6 @@ dependencies:
|
|
26
25
|
requirements:
|
27
26
|
- - ">="
|
28
27
|
- !ruby/object:Gem::Version
|
29
|
-
hash: 7
|
30
28
|
segments:
|
31
29
|
- 2
|
32
30
|
- 0
|
@@ -42,28 +40,39 @@ dependencies:
|
|
42
40
|
requirements:
|
43
41
|
- - ">="
|
44
42
|
- !ruby/object:Gem::Version
|
45
|
-
hash: 3
|
46
43
|
segments:
|
47
44
|
- 0
|
48
45
|
version: "0"
|
49
46
|
type: :development
|
50
47
|
version_requirements: *id002
|
51
48
|
- !ruby/object:Gem::Dependency
|
52
|
-
name:
|
49
|
+
name: ruby_core_source
|
53
50
|
prerelease: false
|
54
51
|
requirement: &id003 !ruby/object:Gem::Requirement
|
55
52
|
none: false
|
56
53
|
requirements:
|
57
54
|
- - ">="
|
58
55
|
- !ruby/object:Gem::Version
|
59
|
-
|
56
|
+
segments:
|
57
|
+
- 0
|
58
|
+
version: "0"
|
59
|
+
type: :development
|
60
|
+
version_requirements: *id003
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: hoe
|
63
|
+
prerelease: false
|
64
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
60
69
|
segments:
|
61
70
|
- 2
|
62
71
|
- 6
|
63
72
|
- 1
|
64
73
|
version: 2.6.1
|
65
74
|
type: :development
|
66
|
-
version_requirements: *
|
75
|
+
version_requirements: *id004
|
67
76
|
description: |-
|
68
77
|
Adds :__sender__ and :__caller__ to the built-in :__callee__ and :__method__ methods in Ruby 1.9.1.
|
69
78
|
|
@@ -84,7 +93,6 @@ extra_rdoc_files:
|
|
84
93
|
files:
|
85
94
|
- .autotest
|
86
95
|
- CHANGELOG.rdoc
|
87
|
-
- Makefile
|
88
96
|
- Manifest.txt
|
89
97
|
- README.rdoc
|
90
98
|
- Rakefile
|
@@ -93,39 +101,18 @@ files:
|
|
93
101
|
- ext/sender/RPSender_internal.h
|
94
102
|
- ext/sender/RubySourceSupport.c
|
95
103
|
- ext/sender/RubySourceSupport.h
|
96
|
-
- ext/sender/debug.h
|
97
|
-
- ext/sender/dln.h
|
98
|
-
- ext/sender/encdb.h
|
99
|
-
- ext/sender/eval_intern.h
|
100
104
|
- ext/sender/extconf.rb
|
101
|
-
- ext/sender/gc.h
|
102
|
-
- ext/sender/id.h
|
103
|
-
- ext/sender/iseq.h
|
104
|
-
- ext/sender/main.c
|
105
|
-
- ext/sender/node.h
|
106
|
-
- ext/sender/parse.h
|
107
105
|
- ext/sender/rb_Global.c
|
108
106
|
- ext/sender/rb_Global.h
|
109
107
|
- ext/sender/rb_Global_internal.h
|
110
108
|
- ext/sender/rb_Kernel.c
|
111
109
|
- ext/sender/rb_Kernel.h
|
112
110
|
- ext/sender/rb_Kernel_internal.h
|
113
|
-
- ext/sender/
|
114
|
-
- ext/sender/regint.h
|
115
|
-
- ext/sender/regparse.h
|
116
|
-
- ext/sender/revision.h
|
117
|
-
- ext/sender/thread_pthread.h
|
118
|
-
- ext/sender/thread_win32.h
|
119
|
-
- ext/sender/transcode_data.h
|
120
|
-
- ext/sender/transdb.h
|
121
|
-
- ext/sender/version.h
|
122
|
-
- ext/sender/vm_core.h
|
123
|
-
- ext/sender/vm_exec.h
|
124
|
-
- ext/sender/vm_insnhelper.h
|
125
|
-
- ext/sender/vm_opts.h
|
111
|
+
- ext/sender/sender.c
|
126
112
|
- lib/VERSION.rdoc
|
127
113
|
- lib/sender.rb
|
128
114
|
- lib/sender/sender.bundle
|
115
|
+
- mkmf.log
|
129
116
|
- sender.gemspec
|
130
117
|
- test/test_sender.rb
|
131
118
|
has_rdoc: true
|
@@ -143,7 +130,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
143
130
|
requirements:
|
144
131
|
- - ">="
|
145
132
|
- !ruby/object:Gem::Version
|
146
|
-
hash: 3
|
147
133
|
segments:
|
148
134
|
- 0
|
149
135
|
version: "0"
|
@@ -152,7 +138,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
152
138
|
requirements:
|
153
139
|
- - ">="
|
154
140
|
- !ruby/object:Gem::Version
|
155
|
-
hash: 3
|
156
141
|
segments:
|
157
142
|
- 0
|
158
143
|
version: "0"
|
data/Makefile
DELETED
@@ -1,181 +0,0 @@
|
|
1
|
-
|
2
|
-
SHELL = /bin/sh
|
3
|
-
|
4
|
-
#### Start of system configuration section. ####
|
5
|
-
|
6
|
-
srcdir = ext/sender
|
7
|
-
topdir = /usr/local/include/ruby-1.9.1
|
8
|
-
hdrdir = /usr/local/include/ruby-1.9.1
|
9
|
-
arch_hdrdir = /usr/local/include/ruby-1.9.1/$(arch)
|
10
|
-
VPATH = $(srcdir):$(arch_hdrdir)/ruby:$(hdrdir)/ruby
|
11
|
-
prefix = $(DESTDIR)/usr/local
|
12
|
-
exec_prefix = $(prefix)
|
13
|
-
vendorhdrdir = $(rubyhdrdir)/vendor_ruby
|
14
|
-
sitehdrdir = $(rubyhdrdir)/site_ruby
|
15
|
-
rubyhdrdir = $(includedir)/$(RUBY_INSTALL_NAME)-$(ruby_version)
|
16
|
-
vendordir = $(libdir)/$(RUBY_INSTALL_NAME)/vendor_ruby
|
17
|
-
sitedir = $(libdir)/$(RUBY_INSTALL_NAME)/site_ruby
|
18
|
-
mandir = $(datarootdir)/man
|
19
|
-
localedir = $(datarootdir)/locale
|
20
|
-
libdir = $(exec_prefix)/lib
|
21
|
-
psdir = $(docdir)
|
22
|
-
pdfdir = $(docdir)
|
23
|
-
dvidir = $(docdir)
|
24
|
-
htmldir = $(docdir)
|
25
|
-
infodir = $(datarootdir)/info
|
26
|
-
docdir = $(datarootdir)/doc/$(PACKAGE)
|
27
|
-
oldincludedir = $(DESTDIR)/usr/include
|
28
|
-
includedir = $(prefix)/include
|
29
|
-
localstatedir = $(prefix)/var
|
30
|
-
sharedstatedir = $(prefix)/com
|
31
|
-
sysconfdir = $(prefix)/etc
|
32
|
-
datadir = $(datarootdir)
|
33
|
-
datarootdir = $(prefix)/share
|
34
|
-
libexecdir = $(exec_prefix)/libexec
|
35
|
-
sbindir = $(exec_prefix)/sbin
|
36
|
-
bindir = $(exec_prefix)/bin
|
37
|
-
rubylibdir = $(libdir)/$(ruby_install_name)/$(ruby_version)
|
38
|
-
archdir = $(rubylibdir)/$(arch)
|
39
|
-
sitelibdir = $(sitedir)/$(ruby_version)
|
40
|
-
sitearchdir = $(sitelibdir)/$(sitearch)
|
41
|
-
vendorlibdir = $(vendordir)/$(ruby_version)
|
42
|
-
vendorarchdir = $(vendorlibdir)/$(sitearch)
|
43
|
-
|
44
|
-
CC = gcc
|
45
|
-
CXX = g++
|
46
|
-
LIBRUBY = $(LIBRUBY_SO)
|
47
|
-
LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
|
48
|
-
LIBRUBYARG_SHARED = -l$(RUBY_SO_NAME)
|
49
|
-
LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static
|
50
|
-
OUTFLAG = -o
|
51
|
-
COUTFLAG = -o
|
52
|
-
|
53
|
-
RUBY_EXTCONF_H =
|
54
|
-
cflags = $(optflags) $(debugflags) $(warnflags)
|
55
|
-
optflags =
|
56
|
-
debugflags = -g3
|
57
|
-
warnflags = -Wall -Wno-parentheses
|
58
|
-
CFLAGS = -fno-common $(cflags) -fno-common -pipe -fno-common
|
59
|
-
INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir)/ruby/backward -I$(hdrdir) -I$(srcdir) -I/usr/src/ruby
|
60
|
-
DEFS =
|
61
|
-
CPPFLAGS = -I/usr/src/ruby/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE $(DEFS) $(cppflags)
|
62
|
-
CXXFLAGS = $(CFLAGS) $(cxxflags)
|
63
|
-
ldflags = -L. -L/usr/local/lib
|
64
|
-
dldflags =
|
65
|
-
archflag =
|
66
|
-
DLDFLAGS = $(ldflags) $(dldflags) $(archflag)
|
67
|
-
LDSHARED = cc -dynamic -bundle -undefined suppress -flat_namespace
|
68
|
-
LDSHAREDXX = $(LDSHARED)
|
69
|
-
AR = ar
|
70
|
-
EXEEXT =
|
71
|
-
|
72
|
-
RUBY_INSTALL_NAME = ruby
|
73
|
-
RUBY_SO_NAME = ruby
|
74
|
-
arch = i386-darwin10.4.0
|
75
|
-
sitearch = i386-darwin10.4.0
|
76
|
-
ruby_version = 1.9.1
|
77
|
-
ruby = /usr/local/bin/ruby
|
78
|
-
RUBY = $(ruby)
|
79
|
-
RM = rm -f
|
80
|
-
RM_RF = $(RUBY) -run -e rm -- -rf
|
81
|
-
RMDIRS = $(RUBY) -run -e rmdir -- -p
|
82
|
-
MAKEDIRS = mkdir -p
|
83
|
-
INSTALL = /usr/bin/install -c
|
84
|
-
INSTALL_PROG = $(INSTALL) -m 0755
|
85
|
-
INSTALL_DATA = $(INSTALL) -m 644
|
86
|
-
COPY = cp
|
87
|
-
|
88
|
-
#### End of system configuration section. ####
|
89
|
-
|
90
|
-
preload =
|
91
|
-
|
92
|
-
libpath = . $(libdir) /usr/src/ruby/lib
|
93
|
-
LIBPATH = -L. -L$(libdir) -L/usr/src/ruby/lib
|
94
|
-
DEFFILE =
|
95
|
-
|
96
|
-
CLEANFILES = mkmf.log
|
97
|
-
DISTCLEANFILES =
|
98
|
-
DISTCLEANDIRS =
|
99
|
-
|
100
|
-
extout =
|
101
|
-
extout_prefix =
|
102
|
-
target_prefix =
|
103
|
-
LOCAL_LIBS =
|
104
|
-
LIBS = $(LIBRUBYARG_SHARED) -lpthread -ldl -lobjc
|
105
|
-
SRCS = main.c rb_Global.c RubySourceSupport.c
|
106
|
-
OBJS = main.o rb_Global.o RubySourceSupport.o
|
107
|
-
TARGET = sender
|
108
|
-
DLLIB = $(TARGET).bundle
|
109
|
-
EXTSTATIC =
|
110
|
-
STATIC_LIB =
|
111
|
-
|
112
|
-
BINDIR = $(bindir)
|
113
|
-
RUBYCOMMONDIR = $(sitedir)$(target_prefix)
|
114
|
-
RUBYLIBDIR = $(sitelibdir)$(target_prefix)
|
115
|
-
RUBYARCHDIR = $(sitearchdir)$(target_prefix)
|
116
|
-
HDRDIR = $(rubyhdrdir)/ruby$(target_prefix)
|
117
|
-
ARCHHDRDIR = $(rubyhdrdir)/$(arch)/ruby$(target_prefix)
|
118
|
-
|
119
|
-
TARGET_SO = $(DLLIB)
|
120
|
-
CLEANLIBS = $(TARGET).bundle
|
121
|
-
CLEANOBJS = *.o *.bak
|
122
|
-
|
123
|
-
all: $(DLLIB)
|
124
|
-
static: $(STATIC_LIB)
|
125
|
-
|
126
|
-
clean-rb-default::
|
127
|
-
clean-rb::
|
128
|
-
clean-so::
|
129
|
-
clean: clean-so clean-rb-default clean-rb
|
130
|
-
@-$(RM) $(CLEANLIBS) $(CLEANOBJS) $(CLEANFILES)
|
131
|
-
|
132
|
-
distclean-rb-default::
|
133
|
-
distclean-rb::
|
134
|
-
distclean-so::
|
135
|
-
distclean: clean distclean-so distclean-rb-default distclean-rb
|
136
|
-
@-$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log
|
137
|
-
@-$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES)
|
138
|
-
@-$(RMDIRS) $(DISTCLEANDIRS)
|
139
|
-
|
140
|
-
realclean: distclean
|
141
|
-
install: install-so install-rb
|
142
|
-
|
143
|
-
install-so: $(RUBYARCHDIR)
|
144
|
-
install-so: $(RUBYARCHDIR)/$(DLLIB)
|
145
|
-
$(RUBYARCHDIR)/$(DLLIB): $(DLLIB)
|
146
|
-
$(INSTALL_PROG) $(DLLIB) $(RUBYARCHDIR)
|
147
|
-
install-rb: pre-install-rb install-rb-default
|
148
|
-
install-rb-default: pre-install-rb-default
|
149
|
-
pre-install-rb: Makefile
|
150
|
-
pre-install-rb-default: Makefile
|
151
|
-
$(RUBYARCHDIR):
|
152
|
-
$(MAKEDIRS) $@
|
153
|
-
|
154
|
-
site-install: site-install-so site-install-rb
|
155
|
-
site-install-so: install-so
|
156
|
-
site-install-rb: install-rb
|
157
|
-
|
158
|
-
.SUFFIXES: .c .m .cc .cxx .cpp .C .o
|
159
|
-
|
160
|
-
.cc.o:
|
161
|
-
$(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
|
162
|
-
|
163
|
-
.cxx.o:
|
164
|
-
$(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
|
165
|
-
|
166
|
-
.cpp.o:
|
167
|
-
$(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
|
168
|
-
|
169
|
-
.C.o:
|
170
|
-
$(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
|
171
|
-
|
172
|
-
.c.o:
|
173
|
-
$(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $<
|
174
|
-
|
175
|
-
$(DLLIB): $(OBJS) Makefile
|
176
|
-
@-$(RM) $(@)
|
177
|
-
$(LDSHARED) -o $@ $(OBJS) $(LIBPATH) $(DLDFLAGS) $(LOCAL_LIBS) $(LIBS)
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
$(OBJS): $(hdrdir)/ruby.h $(hdrdir)/ruby/defines.h $(arch_hdrdir)/ruby/config.h
|
data/ext/sender/debug.h
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
/**********************************************************************
|
2
|
-
|
3
|
-
debug.h - YARV Debug function interface
|
4
|
-
|
5
|
-
$Author: ko1 $
|
6
|
-
created at: 04/08/25 02:33:49 JST
|
7
|
-
|
8
|
-
Copyright (C) 2004-2007 Koichi Sasada
|
9
|
-
|
10
|
-
**********************************************************************/
|
11
|
-
|
12
|
-
#ifndef RUBY_DEBUG_H
|
13
|
-
#define RUBY_DEBUG_H
|
14
|
-
|
15
|
-
#include "ruby/ruby.h"
|
16
|
-
#include "node.h"
|
17
|
-
|
18
|
-
#define dpv(h,v) ruby_debug_print_value(-1, 0, h, v)
|
19
|
-
#define dp(v) ruby_debug_print_value(-1, 0, "", v)
|
20
|
-
#define dpi(i) ruby_debug_print_id(-1, 0, "", i)
|
21
|
-
#define dpn(n) ruby_debug_print_node(-1, 0, "", n)
|
22
|
-
|
23
|
-
#define bp() ruby_debug_breakpoint()
|
24
|
-
|
25
|
-
VALUE ruby_debug_print_value(int level, int debug_level, const char *header, VALUE v);
|
26
|
-
ID ruby_debug_print_id(int level, int debug_level, const char *header, ID id);
|
27
|
-
NODE *ruby_debug_print_node(int level, int debug_level, const char *header, const NODE *node);
|
28
|
-
int ruby_debug_print_indent(int level, int debug_level, int indent_level);
|
29
|
-
void ruby_debug_breakpoint(void);
|
30
|
-
void ruby_debug_gc_check_func(void);
|
31
|
-
|
32
|
-
#ifdef RUBY_DEBUG_ENV
|
33
|
-
void ruby_set_debug_option(const char *str);
|
34
|
-
#endif
|
35
|
-
|
36
|
-
#endif /* RUBY_DEBUG_H */
|