search for: freearg

Displaying 9 results from an estimated 9 matches for "freearg".

Did you mean: freeargs
2007 Jun 25
0
[1069] trunk/wxruby2/swig/typemap.i: Fix big memory leak in methods taking wxString as a parameter
...cx"> } </span><span class="cx"> } </span><span class="cx"> </span><del>-/* -Currently incompatible with the ruby post-processing of swigged .cpp files -Needs to be fixed in fixdeleting.rb before this can be uncommented out -%typemap(freearg) wxString & { -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspdelete $1; -} </del><ins>+// (ruby) String <-> wxString +%typemap(in) wxString& "$1 = new wxString(StringValuePtr($input), wxConvUTF8);" +%typemap(in) wxString* "$1 = new...
2005 Oct 09
0
[Fwd: Re: [Swig] Re: Object return problem]
...nvUTF8); >> } >> >> %typemap(in) const wxString& { >> $1 = new wxString(STR2CSTR($input), wxConvUTF8); >> } >> >> %typemap(in) wxString* { >> $1 = new wxString(STR2CSTR($input), wxConvUTF8); >> } >> >> /** >> %typemap(freearg) wxString & { >> delete $1; >> } >> >> %typemap(freearg) const wxString& { >> delete $1; >> } >> >> %typemap(freearg) wxString* { >> delete $1; >> } >> */ >> %typemap(directorin) wxString, const wxString &,...
2015 Aug 17
3
[PATCH] Expand tilde for UNIX domain socket forwards.
On Mon, 17 Aug 2015, Todd C. Miller wrote: > I like the idea but tilde_expand_filename() calls fatal() if it > cannot resolve ~foo. This is not terrible when using -L and -R on > the normal command line but it seems pretty harsh to exit when -L > or -R are used via the ~C escape or the streamlocal-forward at openssh.com > request. > Message-Id: <aea6cdc1d1b42d07 at
2007 Mar 17
0
[888] branches/wxruby2/wxwidgets_282/swig/shared/treeitemid_typemaps.i: Fix compile warning for TreeItemId typemap (Artur Kuptel)
...</span><del>-%typemap(directorout) wxTreeItemId& "$result = new wxTreeItemId(NUM2LONG($1));" </del><ins>+%typemap(directorout) wxTreeItemId& "$result = new wxTreeItemId((void*)NUM2LONG($1));" </ins><span class="cx"> %typemap(freearg) wxTreeItemId& "delete $1;" </span><del>- - </del></span></pre> </div> </div> </body> </html>
2009 Sep 21
2
[patch] RFC: put server tunnel name in environment
If an ssh server receives a tun/tap tunnel request and sets up the tunnel concerned, as far as I can see there is currently no way for the server to configure the tunnel in a manner dependent upon (e.g) the key used to set up the ssh session. Whilst an id based on the key can be passed to the ssh child process, where the tunnel is dynamically allocated, its tunnel name is lost. This patch
2007 Jun 25
0
[1072] trunk/wxruby2/swig/shared/datetime.i: Add typemap for DateTime::WeekDay; plug mem leak with wxDateTime arg
...@@ </span><span class="cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp$1 = new wxDateTime(d, mon, y, h, min, s, 0); </span><span class="cx"> } </span><span class="cx"> </span><ins>+%typemap(freearg) wxDateTime& "if ( argc > $argnum - 2 ) delete $1;" + </ins><span class="cx"> %typemap(out) wxDateTime& { </span><span class="cx"> VALUE y = INT2NUM($1->GetYear()); </span><span class="cx"> VALUE mon =...
2007 Jan 05
0
[831] trunk/wxruby2: Use simple ruby Integers to represent TreeItemIds
...UM2LONG($input));" +%typemap(out) wxTreeItemId "$result = LONG2NUM( (long)$1.m_pItem );" +%typemap(directorin) wxTreeItemId& "$input = LONG2NUM( (long)$1.m_pItem );" +%typemap(directorout) wxTreeItemId& "$result = new wxTreeItemId(NUM2LONG($1));" +%typemap(freearg) wxTreeItemId& "delete $1;" + + </ins></span></pre> </div> </div> </body> </html>
2006 Dec 31
0
[816] trunk/wxruby2: Added AcceleratorTable and AcceleratorTable classes, plus documentation
...eleratorEntry"); +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp arr[i] = *wx_acc_ent; + } + $1 = RARRAY($input)->len; + $2 = arr; + } +} +%typemap(default,numinputs=1) (int n, wxAcceleratorEntry entries[]) +{ + $1 = 0; + $2 = NULL; +} + +%typemap(freearg) (int n, wxAcceleratorEntry entries[]) +{ + if ($2 != NULL) delete [] $2; +} + +%typemap(typecheck) (int n , wxAcceleratorEntry entries[]) +{ + $1 = (TYPE($input) == T_ARRAY); +} + +%import "include/wxObject.h" + +%include "include/wxAcceleratorTable.h" </ins></spa...
2017 Oct 10
3
tunnel device name acquisition?
Numerous how-tos all over the Internet show how one would set up a tunnel using ssh, e.g.: ssh -f -o Tunnel=ethernet <server_ip> true I was wondering if there's a way to subsequently acquire the names of the local and remote tun/tap interfaces (e.g., using the default "-w any:any") for subsequent automatic tunnel configuration, e.g.: ip link set $TapDev up ip link set