diff options
author | taca <taca> | 2003-08-30 02:55:03 +0000 |
---|---|---|
committer | taca <taca> | 2003-08-30 02:55:03 +0000 |
commit | 2d04cdda11536ce35f22d3b48b5443c11e2ab332 (patch) | |
tree | f140219b7be2402c0bbec2fe2d9041130a0b7149 /x11/ruby-fox/patches/patch-ab | |
parent | b172193d523edc9187caf1cbe7c7737dc819b56a (diff) | |
download | pkgsrc-2d04cdda11536ce35f22d3b48b5443c11e2ab332.tar.gz |
update ruby-fox package to 1.0.25 based on patch by private mail
from Juan RP <xtraeme AT NetBSD DOT org>.
(I've only change PLIST and miscellaneous format of files.)
This package catch up to fox 1.0.43 and changes are vast, please refer
<http://www.fxruby.org/doc/changes.html> in detail.
Diffstat (limited to 'x11/ruby-fox/patches/patch-ab')
-rw-r--r-- | x11/ruby-fox/patches/patch-ab | 34 |
1 files changed, 21 insertions, 13 deletions
diff --git a/x11/ruby-fox/patches/patch-ab b/x11/ruby-fox/patches/patch-ab index 7f154314e5b..27c9fba6d03 100644 --- a/x11/ruby-fox/patches/patch-ab +++ b/x11/ruby-fox/patches/patch-ab @@ -1,23 +1,31 @@ -$NetBSD: patch-ab,v 1.1 2002/01/26 03:50:35 taca Exp $ +$NetBSD: patch-ab,v 1.2 2003/08/30 02:55:03 taca Exp $ ---- FXRuby.cpp.orig Fri Jul 27 05:09:22 2001 -+++ FXRuby.cpp -@@ -74,6 +74,9 @@ +--- FXRuby.cpp.orig 2003-08-30 03:32:27.000000000 +0200 ++++ FXRuby.cpp 2003-08-30 03:34:48.000000000 +0200 +@@ -42,6 +42,9 @@ #include <io.h> // for get_osf_handle() #endif +#define RB_BPROC(func) ((VALUE (*)(...))func) +#define RB_RPROC(func) ((VALUE (*)(...))func) + - // Maps C++ objects to Ruby instances - static std::map<const void*,VALUE> FXRuby_ObjMap; + #ifdef HAVE_SIGNAL_H + #include <signal.h> // for definitions of SIGINT, etc. + #endif +@@ -1085,12 +1088,12 @@ -@@ -766,7 +769,7 @@ - hArgs.nargs=3; - VALUE retval; if(FXRbCatchExceptions){ -- retval=rb_rescue2(handle_body,(VALUE)&hArgs,handle_rescue,Qnil, -+ retval=rb_rescue2(RB_BPROC(handle_body),(VALUE)&hArgs,RB_RPROC(handle_rescue),Qnil, - rb_eStandardError,rb_eNameError,0); + #ifdef RB_RESCUE2_BROKEN_PROTOTYPE +- retval=rb_rescue2((VALUE(*)()) handle_body, reinterpret_cast<VALUE>(&hArgs), +- (VALUE(*)()) handle_rescue, Qnil, ++ retval=rb_rescue2((VALUE(*)()) RB_BPROC(handle_body), reinterpret_cast<VALUE>(&hArgs), ++ (VALUE(*)()) RB_RPROC(handle_rescue), Qnil, + rb_eStandardError, rb_eNameError, 0); + #else +- retval=rb_rescue2((VALUE(*)(ANYARGS)) handle_body, reinterpret_cast<VALUE>(&hArgs), +- (VALUE(*)(ANYARGS)) handle_rescue, Qnil, ++ retval=rb_rescue2((VALUE(*)(ANYARGS)) RB_BPROC(handle_body), reinterpret_cast<VALUE>(&hArgs), ++ (VALUE(*)(ANYARGS)) RB_RPROC(handle_rescue), Qnil, + rb_eStandardError, rb_eNameError, 0); + #endif } - else{ |