Displaying 20 results from an estimated 245 matches for "typemaps".
Did you mean:
typemap
2007 Jun 26
0
[1080] trunk/wxruby2/swig: Moved typemaps specific to SystemSetting out of general typemap file
...#ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<title>[1080] trunk/wxruby2/swig: Moved typemaps specific to SystemSetting out of general typemap file</title>
</head>
<body>
<div id="msg">
<dl>
<dt>Revision</dt> <dd>1080</dd>
<dt>Author</dt> <dd>brokentoy</dd>
<dt>Date</dt> <dd>2007-06-26...
2007 Jun 25
0
[1069] trunk/wxruby2/swig/typemap.i: Fix big memory leak in methods taking wxString as a parameter
...amp;nbsp      $1 = new wxString(StringValuePtr($input), wxConvUTF8);
-}
-
-%typemap(directorout) wxString, wxString& "$result = wxString(StringValuePtr($input), wxConvUTF8);";
-
</del><ins>+// include SWIG''s built-in typemaps, eg for OUTPUT/INPUT
</ins><span class="cx"> %include "typemaps.i"
</span><span class="cx">
</span><ins>+
</ins><span class="cx"> %typemap(directorargout) ( int * OUTPUT ) {
</span><span class="cx...
2005 Oct 09
0
[Fwd: Re: [Swig] Re: Object return problem]
...>
CC: Swig@cs.uchicago.edu
References: <4347277E.1030700@mindspring.com> <4349911B.70200@interserv.com>
Hi guys,
I just figured out the answer. wxWindow uses directors (as almost all
our wxruby classes do), and the swig error message hints at the problem.
We need to use directorout typemaps, rather than just plain "out". I
inserted this, and it seemed to work:
%typemap(directorout) wxString {
$result = wxString(STR2CSTR($1), wxConvUTF8);
}
Typemaps are sure a confusing feature. They''re great, and powerful. But
I hope for SWIG v3 they can be completely overhauled...
2005 Oct 06
9
Grid.GetTextExtent
Wow. Look what SWIG does to GetTextExtent in Grid.cpp:
void SwigDirector_wxGrid::GetTextExtent(wxString const &string, int *x,
int *y, int *descent, int *externalLeading, wxFont const *font) const {
...
if (swig_get_up()) {
wxWindow::GetTextExtent(string,x,y,descent,externalLeading,font);
return;
}
obj0 = rb_str_new2((const char *)(&string)->mb_str());
2006 Aug 24
4
typemap.i patch
This patch adds %directorout typemaps for the GetTextExtent functions
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/wxruby-users
2007 Jun 26
0
[1084] trunk/wxruby2/swig/classes/SystemSettings.i: Fix missing punctuation in SystemSettings typemaps
...tion:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<title>[1084] trunk/wxruby2/swig/classes/SystemSettings.i: Fix missing punctuation in SystemSettings typemaps</title>
</head>
<body>
<div id="msg">
<dl>
<dt>Revision</dt> <dd>1084</dd>
<dt>Author</dt> <dd>brokentoy</dd>
<dt>Date</dt> <dd>2007-06-26 14:41:20 -0400 (Tue, 26 Jun 2007)</dd>
</dl&...
2006 Nov 24
0
[756] trunk/wxruby2/swig: Moved one-shot typemaps for ListBox.get_selections into ListBox.i
...rgin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<title>[756] trunk/wxruby2/swig: Moved one-shot typemaps for ListBox.get_selections into ListBox.i</title>
</head>
<body>
<div id="msg">
<dl>
<dt>Revision</dt> <dd>756</dd>
<dt>Author</dt> <dd>brokentoy</dd>
<dt>Date</dt> <dd>2006-11-24 12:17:06 -05...
2006 Apr 12
6
*OUTPUT/*INPUT typemaps
Hi
Have been looking again at SWIG output pointer parameters, as:
http://www.swig.org/Doc1.3/Ruby.html#Ruby_nn32
The problem is, whenever I tried to include the SWIG/Ruby ''typemaps.i''
file, it threw loads of errors.
A bit more investigation pinned the problem down to some secondary files
that typemaps.i includes to map ''special'' types like File.
So I tried just copying the section from SWIG''s ruby/typemaps.i that
deals with output, inp...
2005 Sep 10
2
Swig generates bad interface to GetTextExtent
Swig''s bad interface generation strikes again. get_text_extent called
with 1 argument maps to WindowDC''s _wrap_wxWindowDC_GetTextExtent__SWIG_0
Since this generates a wxFont that''s not initialized to nil it fails
when calling into wxWindows. Anyone have a suggestion?
2007 Apr 13
0
[961] branches/wxruby2/wxwidgets_282/swig: Move wxDateTime typemap into shared file, map to core Time class instead
...sp  (rev 0)
+++ branches/wxruby2/wxwidgets_282/swig/shared/datetime.i        2007-04-13 19:21:31 UTC (rev 961)
</span><span class="lines">@@ -0,0 +1,39 @@
</span><ins>+// Typemaps for converting between wxDateTime and Ruby''s Date and Time classes
+
+%{
+#include <wx/datetime.h>
+%}
+
+%typemap(in) const wxDateTime& {
+ int y = NUM2INT(rb_funcall($input, rb_intern("year"), 0));
+ int rMonth = NUM2INT(rb_funcall($input, rb_intern("month&...
2007 Mar 17
0
[888] branches/wxruby2/wxwidgets_282/swig/shared/treeitemid_typemaps.i: Fix compile warning for TreeItemId typemap (Artur Kuptel)
...h ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<title>[888] branches/wxruby2/wxwidgets_282/swig/shared/treeitemid_typemaps.i: Fix compile warning for TreeItemId typemap (Artur Kuptel)</title>
</head>
<body>
<div id="msg">
<dl>
<dt>Revision</dt> <dd>888</dd>
<dt>Author</dt> <dd>brokentoy</dd>
<dt>Date</dt> <dd>2007...
2007 Jun 25
0
[1072] trunk/wxruby2/swig/shared/datetime.i: Add typemap for DateTime::WeekDay; plug mem leak with wxDateTime arg
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding:
2006 Sep 20
1
typemap.i.patch
This patch implements a more generic solution to the problem that will
work for all our integer types at least. Use this instead of the last
version I sent, please.
Roy
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/wxruby-users
2005 Sep 11
1
Patch for typemap.i and Window.i
Added typemap for the differently-prototyped GetTextExtent. It was
%ignored in Window.i. Since I added the typemap it doesn''t seem like
we''ll need to %ignore it.
Again, the patch for typemap.i is since the last check-in.
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/wxruby-users
2005 Sep 28
1
Patch for typemap.i
This patch for typemap.i fixes several swig warnings while compiling.
You may noticed that I didn''t fix all the typecheck typemaps. I suppose
I should fix all of them, but they don''t cause problems with the
compilation.
This also has a patch to convert void *''s into ruby numbers. This fixes
a problem with the get_handle call.
I still am not sure what''s causing the problems with the other retur...
2006 Sep 20
3
Fix for non-centered windows
Two patches here:
First one removes virtual from a function that shouldn''t have been virtual.
Second one applies a typemap to catch GetRectFromChildWindow. For
reasons that are completely beyond me the standard ruby OUTPUT typemaps
don''t define directorargouts. I will take a stab at patching SWIG''s
default typemaps someday so we get this fixed for free on all our OUTPUT
typemaps.
Roy
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyforge.org
http://rubyforge....
2006 Apr 23
4
Wx::Window#get_text_extent patch
Here''s a patch to fix Wx::Window#get_text_extent - it requires that the
patches from teh last message are applied, to enable *INPUT etc typemaps.
Roy - though the function works correctly when called from Ruby, it
still causes a crash when called internally when clicking on a Wx::Grid
cell. Saw your message on SWIG mailing list, hopefully someone there can
help out.
alex
_______________________________________________
wxruby-users ma...
2005 Oct 09
1
[Fwd: Re: [Swig] typemap + default argument bug?]
(Mostly for Roy):
I saw this on the SWIG list, and wonder if it might be related to the
problems we have been seeing where multi-arg typemaps end up invoking
the wrong wrapper methods. (Not the newly-discovered directorout stuff).
Perhaps if we switched to "compactdefaultargs" things would start to
work more sanely. Looking at this section of the SWIG docs, it looks
like it should be safe, and might at least make it easier...
2016 May 06
1
[PATCH] perl: use INT2PTR macro for casting back to guestfs_h * (RHBZ#1150298)
Use the right macro, which should avoid the warnings seen with Perl
headers on some architecture.
---
generator/perl.ml | 2 +-
perl/typemap | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/generator/perl.ml b/generator/perl.ml
index 19cabb6..a665051 100644
--- a/generator/perl.ml
+++ b/generator/perl.ml
@@ -242,7 +242,7 @@ DESTROY (sv)
HV *hv = (HV *) SvRV (sv);
2005 Sep 03
1
The problem with %import
...ll need to keep in mind: If
we''ve created a typemap in a .i file in classes and the .h file for that
class is %imported elsewhere, we''d need to either redeclare the typemap
or we''ll need to place them into a file that gets %included (e.g.:
%include "..\Window_typemaps.i")
Roy