summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/dl/mkcallback.rb2
-rw-r--r--ext/tcltklib/sample/sample1.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/dl/mkcallback.rb b/ext/dl/mkcallback.rb
index 1004454fcd..b7ea1718d0 100644
--- a/ext/dl/mkcallback.rb
+++ b/ext/dl/mkcallback.rb
@@ -14,7 +14,7 @@ def mkfunc(rettype, fnum, argc)
ret_code =
if( DLTYPE[rettype][:c2rb] )
- " return #{DLTYPE[rettype][:rb2c][\"retval\"]};"
+ " return #{DLTYPE[rettype][:rb2c]['retval']};"
else
" /* no return value */"
end
diff --git a/ext/tcltklib/sample/sample1.rb b/ext/tcltklib/sample/sample1.rb
index 28ba7b547a..21ee0f29d5 100644
--- a/ext/tcltklib/sample/sample1.rb
+++ b/ext/tcltklib/sample/sample1.rb
@@ -535,7 +535,7 @@ class Test1
# clipboard をクリア.
clipboard.e("clear")
# selection から文字列を読み込み clipboard に追加する.
- clipboard.e("append {#{selection.e(\"get\")}}")}))
+ clipboard.e("append {#{selection.e('get')}}")}))
me1.e("add command -label {selection -> clipboard} -command",c)
cb.push(c = TclTkCallback.new(ip, proc{
# li1 をクリア.