search for: rb_eargerror

Displaying 14 results from an estimated 14 matches for "rb_eargerror".

2004 Oct 23
0
win32-ipc, with blocks (code review please)
...T2NUM(0); // Timed out } return Qnil; } static VALUE ipc_wait_any(int argc, VALUE* argv, VALUE klass) { VALUE rbObject, rbTimeout; DWORD dwTimeout = INFINITE; rb_scan_args(argc,argv,"11",&rbObject,&rbTimeout); if(TYPE(rbObject)!=T_ARRAY) { rb_raise(rb_eArgError,"Invalid Object Handles"); } if(rbTimeout!=Qnil) dwTimeout = NUM2UINT(INFINITE); return wait_for_multiple(klass,rbObject,FALSE,dwTimeout); } static VALUE ipc_wait_all(int argc, VALUE* argv, VALUE klass) { VALUE rbObject, rbTimeout; DWORD dwTimeout = INFINITE; rb_s...
2007 May 31
0
[1039] trunk/wxruby2/swig/Events.i: Remove some debugging output
...t;> { </span><del>-&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspputs("Called internal_evt_with_id in Events"); </del><span class="cx"> if (argc != 1) </span><span class="cx"> rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); </span><span class="cx"> </span><span class="lines">@@ -299,7 +297,6 @@ </span><span class="cx"> </span><span class="cx"> int idStart = NU...
2007 May 31
0
[1038] trunk/wxruby2/swig/Events.i: Add missing EVT_COMMAND_TREE constants
...t;> { </span><ins>+&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspputs("Called internal_evt_with_id in Events"); </ins><span class="cx"> if (argc != 1) </span><span class="cx"> rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); </span><span class="cx"> </span><span class="lines">@@ -286,7 +310,7 @@ </span><span class="cx"> { </span><span class="cx"> if (argc != 0) </spa...
2013 Dec 27
0
[PATCH] ruby: Fix .new method (RHBZ#1046509).
...because we need the extra + * parameters, which ruby passes via the initialize method (see next + * function). */ static VALUE -ruby_guestfs_create (int argc, VALUE *argv, VALUE m) +ruby_guestfs_alloc (VALUE klass) { - guestfs_h *g; + guestfs_h *g = NULL; - if (argc > 1) - rb_raise (rb_eArgError, \"expecting 0 or 1 arguments\"); - - volatile VALUE optargsv = argc == 1 ? argv[0] : rb_hash_new (); - Check_Type (optargsv, T_HASH); + /* Wrap it, and make sure the close function is called when the + * handle goes away. + */ + return Data_Wrap_Struct (c_guestfs, NULL, ruby_gues...
2007 May 29
0
[1035] trunk/wxruby2/swig/classes/EvtHandler.i: Removed a heap of redundant stuff that''s been #if 0''d for a while
...tion = - (wxObjectEventFunction )&wxRbCallback::EventThunker; - (cppSelf)->Connect(firstId, lastId, eventType, function, userData); -} - -static VALUE internal_evt_with_id(int argc, VALUE *argv, VALUE self, - wxEventType eventType) -{ - if (argc != 1) - rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); - - int id = NUM2INT(argv[0]); - //printf("evt_with_id(%d) %s\n", id, rb_block_given_p() ? "with block" : ""); - - internal_connect(self, id, id, eventType); - return Qnil; -} - -static VALUE intern...
2007 Jun 25
0
[1066] trunk/wxruby2/swig: Move EVT constants in swig/classes/Event.i; add a few missing ones
...sp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp wxEventType eventType); - -static VALUE internal_evt_with_id(int argc, VALUE *argv, VALUE self, - wxEventType eventType) -{ - if (argc != 1) - rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); - - int id = NUM2INT(argv[0]); - - internal_connect(self, id, id, eventType); - return Qnil; -} - -static VALUE internal_evt_with_id_range(int argc, VALUE *argv, VALUE self, - wxEventType eventType) -{ - if (argc != 2) -...
2007 Jun 23
0
[1064] trunk/wxruby2/swig/Events.i: Removed unused func, updated comments
...7 +358,4 @@ </span><span class="cx"> return Qnil; </span><span class="cx"> } </span><span class="cx"> </span><del>-static VALUE connect_fnc(int argc, VALUE *argv, VALUE self) -{ - if (argc != 3) - rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)", argc); - - int id = NUM2INT(argv[0]); - int lastId = NUM2INT(argv[1]); - int type = NUM2INT(argv[2]); - - internal_connect(self, id, lastId, type); - return Qnil; -} - </del><span class="cx"> %} </span></...
2007 Jun 26
0
[1085] trunk/wxruby2/swig: Add checks and ruby exceptions for two common Wx::Window mistakes leading to
...mp;nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp "Cannot create a Window before App.main_loop has been called");} + if ( ! $1 && ! rb_obj_is_kind_of(self, cWxTopLevelWindow.klass) ) +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp{ rb_raise(rb_eArgError, +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp "Window parent argument must not be nil"); } +} + </ins><s...
2007 Apr 29
0
[983] branches/wxruby2/wxwidgets_282: Make Window#paint work both inside and outside a paint event handler,
...ss="cx"> VALUE paint() </span><span class="cx"> { </span><ins>+&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspif ( ! rb_block_given_p() ) +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp rb_raise(rb_eArgError, "No block given for Window#paint"); + </ins><span class="cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspwxWindow *ptr = self; </span><del>-&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspif ( rb_block...
2007 May 31
0
[1040] trunk/wxruby2/swig/Events.i: Add List and Splitter constants, also EVT_SIZING and EVT_MOVING
...;<span class="cx"> %constant const int wxEVT_AUI_PANE_BUTTON; </span><span class="cx"> %constant const int wxEVT_AUI_PANE_CLOSE; </span><span class="lines">@@ -283,7 +332,6 @@ </span><span class="cx"> rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); </span><span class="cx"> </span><span class="cx"> int id = NUM2INT(argv[0]); </span><del>- //printf("evt_with_id(%d) %s\n", id, rb_block_given_p() ? "with block&...
2008 Jun 12
4
Background thread - entension code - switch contexts
Hi, I am using wxRuby 1.9.7 and Ruby 1.8.6. I have built an extension in C++ and used swig to load it into Ruby interpreter, which works great. The extension is an often long executing algorithm, and I''ve noticed that if I fork a new Ruby thread in button clicked event, and in this thread run the algorithm the application freezes for the time of execution. I have looked through the
2006 Jan 05
7
[Fwd: [win32utils-help][6822] Eventlog problem]
Dang, I thought we solved this. Any ideas? Dan PS - I realized after reading this I forgot to bump the version number for 0.3.3 - I''ve uploaded a new zip file with the correct version number. -------------- next part -------------- An embedded message was scrubbed... From: alain Fioretti <noreply at rubyforge.org> Subject: [win32utils-help][6822] Eventlog problem Date: Thu, 5
2013 Feb 04
1
[PATCH] generator: Add visibility to action struct
...pr "ruby_guestfs_%s (" f.name; if optargs = [] then ( pr "VALUE gv"; List.iter @@ -476,7 +475,7 @@ ruby_user_cancel (VALUE gv) pr " Data_Get_Struct (gv, guestfs_h, g);\n"; pr " if (!g)\n"; pr " rb_raise (rb_eArgError, \"%%s: used handle after closing it\", \"%s\");\n" - name; + f.name; pr "\n"; (* For optargs case, get the arg VALUEs into local variables. @@ -509,7 +508,7 @@ ruby_user_cancel (VALUE gv) pr " const char *%s = RSTRIN...
2009 Aug 03
1
[PATCH 1/2] Convert all TABs-as-indentation to spaces.
...; i ); Hashtbl.add pod2text_memo key lines; let chan = open_out pod2text_memo_filename in @@ -7737,55 +7737,55 @@ static VALUE ruby_guestfs_close (VALUE gv) pr " Data_Get_Struct (gv, guestfs_h, g);\n"; pr " if (!g)\n"; pr " rb_raise (rb_eArgError, \"%%s: used handle after closing it\", \"%s\");\n" - name; + name; pr "\n"; List.iter ( - function - | String n | FileIn n | FileOut n -> - pr " Check_Type (%sv, T_STRING);\n" n; - pr " const char *%s = StringValu...