diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-07-27 17:15:09 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-07-27 17:15:09 +0000 |
commit | 9f3914aba6fe3df5a1c4382b655fb0a7df0cdbfa (patch) | |
tree | d2b7e665bf743738cfd41133d522a5d659aa9ff8 /ext/dl/dl.h | |
parent | 5c815b733d90a82d0d708d836c9a98c9704d8ad4 (diff) | |
download | ruby-9f3914aba6fe3df5a1c4382b655fb0a7df0cdbfa.tar.gz |
* ext/dl/cfunc.c (dlcfunc_mark), ext/dl/cptr.c (dlptr_mark):
workaround to mark wrapped object. this is not a true fix,
because [Bug #4929] is caused by the interface design of DL.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dl/dl.h')
-rw-r--r-- | ext/dl/dl.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/dl/dl.h b/ext/dl/dl.h index f893d8c2ae..90e2131ee2 100644 --- a/ext/dl/dl.h +++ b/ext/dl/dl.h @@ -199,6 +199,7 @@ struct cfunc_data { char *name; int type; ID calltype; + VALUE wrap; }; extern ID rbdl_id_cdecl; extern ID rbdl_id_stdcall; @@ -209,6 +210,7 @@ struct ptr_data { void *ptr; long size; freefunc_t free; + VALUE wrap[2]; }; #define RDL_HANDLE(obj) ((struct dl_handle *)(DATA_PTR(obj))) |