search for: data_ptr

Displaying 20 results from an estimated 20 matches for "data_ptr".

2007 Jul 21
0
[1134] trunk/wxruby2/swig/mark_free_impl.i: When window is deleted, unhook ruby obj from DATA_PTR to avoid MSW crashes
...ecoration: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>[1134] trunk/wxruby2/swig/mark_free_impl.i: When window is deleted, unhook ruby obj from DATA_PTR to avoid MSW crashes</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>1134</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt> <dd>2007-07-21 11:51:00 -0400 (Sat, 21 Jul 2007...
2009 Aug 08
2
[PATCH] pxe: fix OACK packet handling
...tftp_opt++; } if (i == tftp_opts) @@ -954,13 +952,15 @@ static void pxe_searchdir(char *filename, struct file *file) p += tftp_opt->str_len; /* get the address of the filed that we want to write on */ - data_ptr = (uint32_t *)((char *)file + tftp_opt->offset); + data_ptr = (uint32_t *)((char *)open_file + tftp_opt->offset); *data_ptr = 0; /* do convert a number-string to decimal number, just like atoi */ while (buffersize--) { -...
2007 Mar 21
4
Problem with PaintDC(MSW)
When implementing EVT_PAINT handlers in c++ the PaintDC object is constructed at the beginning of the function, and auto destructed at it''s end, which informs wxwidgets that "invalid regions in the window have been repainted". Under ruby, this is not the case and causes a stream of EVT_PAINT events to be sent to the given window (until one of PaintDC objects is destructed by
2003 Oct 27
5
Windows Build - Down to Run Time Errors
I finally got a clean compile and link for wxRuby. Now I''m down to deciphering runtime errors. Once again, I''m going to pick up on this tomorrow, but I thought I''d post my console output tonight to see if anyone has any thoughts before I tackle this tomorrow. I''m running the same app "minimal.rb" E:\Dev\RubyDev\wxruby\samples\minimal>ruby
2010 Oct 26
0
[LLVMdev] Reproducible testcase for r100044
...< %s | llc -march=x86-64 | FileCheck %s ; r100044 %texture = type { i32, i32, i32, i32, [13 x i32], [13 x i32], [13 x i32] } define i32 @fs5_variant0_whole(%texture* noalias %texture, i32 %lod) noinline { entry: %texture.row_stride = getelementptr %texture* %texture, i32 0, i32 4 %texture.data_ptr = getelementptr %texture* %texture, i32 0, i32 6 %x140 = icmp sge i32 %lod, 0 br i1 %x140, label %if-true-block, label %if-false-block if-true-block: ret i32 0 if-false-block: ; Commenting the following two lines will avoid the bug %x198 = getelementptr [13 x i32]* %texture.row_stride,...
2003 Nov 13
7
modified classes
-- +-[ Kontra, Gergely<kgergely@mcl.hu> PhD student Room IB113 ]---------+ | http://www.mcl.hu/~kgergely "Olyan langesz vagyok, hogy | | Mobil:(+36 20) 356 9656 ICQ: 175564914 poroltoval kellene jarnom" | +-- Magyar php mirror es magyar php dokumentacio: http://hu.php.net --+ -------------- next part -------------- A non-text attachment was scrubbed... Name:
2007 Feb 27
7
[Xen-ia64-devel] [PATCH 0/3][IA64] Accelerate IDE PIO on HVM/IA64
Hi, This set of patches remarkably accelerates IDE PIO on HVM/IA64. I got a throughput of 2.11MB/sec in disk read performance. Without it, it was only 64kB/sec. I posted the prototype once. http://lists.xensource.com/archives/html/xen-devel/2006-12/msg00077.html The basic idea is to add a buffering mechanism in a hypervisor. I know this approach is not sophisticated. But there is no other good
2007 Jul 21
0
[1135] trunk/wxruby2/swig/mark_free_impl.i: Convert from DOS to Unix newlines
...managed by WxWidgets. -void GcNullFreeFunc(void *ptr) -{ - SWIG_RubyRemoveTracking(ptr); -} - -// Tests if the window has been signalled as destroyed by a -// WindowDestroyEvent handled by wxRubyApp -bool GC_IsWindowDeleted(void *ptr) -{ - // If objects have been ''unlinked'' then DATA_PTR = 0 - if ( ! ptr ) return true; - VALUE rb_win = SWIG_RubyInstanceFor(ptr); - if ( rb_ivar_defined(rb_win, wx_destroyed_sym ) ) -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspreturn true; - else -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspr...
2006 Oct 22
0
[707] trunk/wxruby2/swig/classes/Window.i: Window-paint method now implemented in Ruby (Alex Fenton)
...terObj((void *) &dc, SWIGTYPE_p_wxPaintDC, 0); -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp rb_yield(dcVal); -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp DATA_PTR(dcVal) = NULL; -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp } -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp return Qnil;&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp - - } - </del><span class=&q...
2013 Dec 27
0
[PATCH] ruby: Fix .new method (RHBZ#1046509).
...lass. + */ +static VALUE +ruby_guestfs_initialize (int argc, VALUE *argv, VALUE m) +{ + guestfs_h *g; + unsigned flags; + + if (argc > 1) + rb_raise (rb_eArgError, \"expecting 0 or 1 arguments\"); + + /* Should have been set to NULL by prior call to alloc function. */ + assert (DATA_PTR (m) == NULL); + + flags = parse_flags (argc, argv); + + g = guestfs_create_flags (flags); + if (!g) + rb_raise (e_Error, \"failed to create guestfs handle\"); + + DATA_PTR (m) = g; + + /* Don't print error messages to stderr by default. */ + guestfs_set_error_handler (g, NULL...
2007 Jul 22
0
[1140] trunk/wxruby2/swig/mark_free_impl.i: Remove instance variable marking of deleted Wx Windows because it''s redundant
...span><span class="lines">@@ -23,9 +21,7 @@ </span><span class="cx"> bool GC_IsWindowDeleted(void *ptr) </span><span class="cx"> { </span><span class="cx"> // If objects have been ''unlinked'' then DATA_PTR = 0 </span><del>- if ( ! ptr ) return true; - VALUE rb_win = SWIG_RubyInstanceFor(ptr); - if ( rb_ivar_defined(rb_win, wx_destroyed_sym ) ) </del><ins>+ if ( ! ptr ) </ins><span class="cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&amp...
2007 Jul 21
0
[1136] trunk/wxruby2/swig/classes/App.i: Note when the Wx::App is exiting and avoid doing GC if in process of
...t;span class="cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspVALUE the_app = rb_const_get(mWxruby2, rb_intern("THE_APP")); </span><span class="cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspif ( DATA_PTR(the_app) == 0 ) </span><del>-&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp { -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspreturn; -&nbsp&nbsp&nbsp...
2006 Oct 10
4
Need help for coding an extension to ferret
Hi, i''m working on a project using Ferret for indexing it''s datas. I''m very happy with it but i need to code an extension to implement a .to_json method to TopDocs class, because ruby''s json implementation is really really slow... It''s my second (the first was the tutorial :/ ) ruby C extension, so i''m not really at ease with ruby C
2019 Apr 04
1
Proof of concept for GPU forwarding for Linux guest on Linux host.
Hi, This is a proof of concept of GPU forwarding for Linux guest on Linux host. I'd like to get comments and suggestions from community before I put more time on it. To summarize what it is: 1. It's a solution to bring GPU acceleration for Linux vm guest on Linux host. It could works with different GPU although the current proof of concept only works with Intel GPU. 2. The basic idea
2007 May 21
0
[1022] trunk/wxruby2/swig/classes/App.i: Memory mgmt: use Wx::App to mark still-alive Windows, set up Wx::THE_APP const
...bsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp// errors. +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspVALUE the_app = rb_const_get(mWxruby2, rb_intern("THE_APP")); +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspif ( DATA_PTR(the_app) == 0 ) +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp { +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspreturn; +&nbsp&nbsp&nbsp&nbsp&nbsp&n...
2005 Mar 22
18
[PATCH] tools top level makefile cleanup
I cleaned up the top level makefile in the tools directory. No major changes. Except I have it so that ioemmu is compiled only with x86_32. Signed-off-by: Jerone Young <jyoung5@us.ibm.com> --- tools/Makefile.orig 2005-03-17 21:03:44.000000000 -0600 +++ tools/Makefile 2005-03-22 15:05:20.000000000 -0600 @@ -1,37 +1,33 @@ +XEN_ROOT = ../ +include $(XEN_ROOT)/tools/Rules.mk -all: -
2004 May 02
6
Progress on wxruby-swig segfaults
It has been a frustrating couple days. I have been tracking down the bug where any wxruby-swig app will crash/segfault upon exit. Yesterday, I fixed the problem where the App object was being freed twice. Today, after several hours of debugging, I discovered that the Frame object is also being deleted twice (for a different reason). I have asked Lyle Johnson for some guidance, because it is
2007 May 31
0
[1042] trunk/wxruby2: Overhaul of the event handling WxType->RubyClass mapping to make it
...{ - cEvent = cWxEvent.klass; - } - </del><span class="cx"> static VALUE vevent; </span><span class="cx"> vevent = Data_Wrap_Struct(cEvent, 0, 0, 0); </span><span class="cx"> DATA_PTR(vevent) = &event; </span><span class="lines">@@ -500,20 +66,12 @@ </span><span class="cx"> wxRbCallback *cb = (wxRbCallback *)event.m_callbackUserData; </span><span class="cx"> rb_funcall(cb->m_func, rb_intern(...
2010 Aug 13
15
NFS issue with ZFS
I have Solaris 10 U7 that is exporting ZFS filesytem. The client is Solaris 9 U7. I can mount the filesytem just fine but I am unable to write to it. showmount -e shows my mount is set for everyone. the dfstab file has option rw set. So what gives? Phillip -- This message posted from opensolaris.org
2006 Nov 17
1
gjournal on 6.x wont build
Hi all, I was intending on trying out gjournal on a new disk i've added in my desktop. I had a look to see what the most recent patch provided by Pawel and found http://people.freebsd.org/~pjd/patches/gjournal6_20061024.patch I created the directories as per Pawel's original post (http://lists.freebsd.org/pipermail/freebsd-fs/2006-June/001962.html) and the patch succeeded with no failed