summaryrefslogtreecommitdiffstats
path: root/ext/dl/mkcallback.rb
diff options
context:
space:
mode:
authorttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-07-06 19:59:31 +0000
committerttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-07-06 19:59:31 +0000
commit7974e145b32f00f52cecbd7962d49e5abeece385 (patch)
treed27a534c8f3b28925c2d9f4c746b5ed2525a2da5 /ext/dl/mkcallback.rb
parente5d722768ab53ca15d2d006dea5aac5981731c6b (diff)
downloadruby-7974e145b32f00f52cecbd7962d49e5abeece385.tar.gz
ruby-7974e145b32f00f52cecbd7962d49e5abeece385.tar.xz
ruby-7974e145b32f00f52cecbd7962d49e5abeece385.zip
conformed to the usage of FUNC_CDECL/STDCALL described in [ruby-dev:28970].
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10481 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dl/mkcallback.rb')
-rw-r--r--ext/dl/mkcallback.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/dl/mkcallback.rb b/ext/dl/mkcallback.rb
index 493f55b18..8526353bf 100644
--- a/ext/dl/mkcallback.rb
+++ b/ext/dl/mkcallback.rb
@@ -111,8 +111,8 @@ for calltype in CALLTYPES
for n in 0..(MAX_CALLBACK-1)
$out << (<<-EOS)
-FUNC_#{calltype.upcase}(static #{DLTYPE[ty][:type]}
-#{func_name(ty,argc,n,calltype)}(#{(0...argc).collect{|i| "DLSTACK_TYPE stack" + i.to_s}.join(", ")}))
+static #{DLTYPE[ty][:type]}
+FUNC_#{calltype.upcase}(#{func_name(ty,argc,n,calltype)})(#{(0...argc).collect{|i| "DLSTACK_TYPE stack" + i.to_s}.join(", ")})
{
VALUE ret, cb#{argc > 0 ? ", args[#{argc}]" : ""};
#{