Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
lrz committed Aug 14, 2008
1 parent 9c72202 commit d5df2f7
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
3 changes: 0 additions & 3 deletions ext/extmk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ def extract_makefile(makefile, keep = true)
end

def extmake(target)
GC.start
print "#{$message} #{target}\n"
$stdout.flush
if $force_static or $static_ext[target]
Expand Down Expand Up @@ -431,8 +430,6 @@ def $mflags.defined?(var)
FileUtils::makedirs('ext')
Dir::chdir('ext')

GC.start

hdrdir = $hdrdir
$hdrdir = ($top_srcdir = relative_from(srcdir, $topdir = "..")) + "/include"
exts.each do |d|
Expand Down
9 changes: 8 additions & 1 deletion objc.m
Original file line number Diff line number Diff line change
Expand Up @@ -1166,7 +1166,14 @@
}
len = strlen(name_str);
if (name_str[len - 1] != ':') {
snprintf(buf, sizeof buf, "%s:", name_str);
if (name_str[len - 1] == '=' && isalpha(name_str[len - 2])) {
snprintf(buf, sizeof buf, "set%s", name_str);
buf[3] = toupper(buf[3]);
buf[len + 2] = ':';
}
else {
snprintf(buf, sizeof buf, "%s:", name_str);
}
name_sel = sel_registerName(buf);
}
}
Expand Down
9 changes: 8 additions & 1 deletion vm_method.c
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,14 @@ rb_method_node(VALUE klass, ID id)
}
else {
char buf[100];
snprintf(buf, sizeof buf, "%s:", id_str);
if (id_str[slen - 1] == '=' && isalpha(id_str[slen - 2])) {
snprintf(buf, sizeof buf, "set%s", id_str);
buf[3] = toupper(buf[3]);
buf[slen + 2] = ':';
}
else {
snprintf(buf, sizeof buf, "%s:", id_str);
}
return rb_method_node(klass, rb_intern(buf));
}
}
Expand Down

0 comments on commit d5df2f7

Please sign in to comment.