search for: t_array

Displaying 20 results from an estimated 31 matches for "t_array".

Did you mean: tx_array
2010 Jan 11
4
[LLVMdev] Operations on constant array value?
Hi, I've read http://llvm.org/docs/LangRef.html#t_array and http://llvm.org/docs/GetElementPtr.html and if I've understood right there are no operations that act directly on arrays - instead I need to use getelementptr on a pointer to an array to get a pointer to an array element. I also understand that there is no 'address of' operation. A...
2010 Jan 11
2
[LLVMdev] Operations on constant array value?
2010/1/11 Eli Friedman <eli.friedman at gmail.com> > On Mon, Jan 11, 2010 at 7:07 AM, James Williams <junk at giantblob.com> > wrote: > > Hi, > > > > I've read http://llvm.org/docs/LangRef.html#t_array and > > http://llvm.org/docs/GetElementPtr.html and if I've understood right > there > > are no operations that act directly on arrays - instead I need to use > > getelementptr on a pointer to an array to get a pointer to an array > element. > > I also understand t...
2004 Oct 23
0
win32-ipc, with blocks (code review please)
...IT_TIMEOUT){ return INT2NUM(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; DWO...
2010 Jan 11
0
[LLVMdev] Operations on constant array value?
On Mon, Jan 11, 2010 at 7:07 AM, James Williams <junk at giantblob.com> wrote: > Hi, > > I've read http://llvm.org/docs/LangRef.html#t_array and > http://llvm.org/docs/GetElementPtr.html and if I've understood right there > are no operations that act directly on arrays - instead I need to use > getelementptr on a pointer to an array to get a pointer to an array element. > I also understand that there is no 'address o...
2010 Jan 11
2
[LLVMdev] Operations on constant array value?
...t 14:03, James Williams wrote: > > 2010/1/11 Eli Friedman <eli.friedman at gmail.com> > >> On Mon, Jan 11, 2010 at 7:07 AM, James Williams <junk at giantblob.com> >> wrote: >> > Hi, >> > >> > I've read http://llvm.org/docs/LangRef.html#t_array and >> > http://llvm.org/docs/GetElementPtr.html and if I've understood right >> there >> > are no operations that act directly on arrays - instead I need to use >> > getelementptr on a pointer to an array to get a pointer to an array >> element. >>...
2005 Jun 24
0
[LLVMdev] variable sized structs in LLVM
...what you want to do. Please make the array be [0 x int] though, as it is undefined in llvm to access past the end of an array with non-zero length. I added a note about zero-length arrays here: http://llvm.cs.uiuc.edu/docs/LangRef.html#i_getelementptr http://llvm.cs.uiuc.edu/docs/LangRef.html#t_array > It is clear what happens here, but I don't know how I would reproduce that, > because I can't easily find out the length in bytes of the array. I'm not sure I understand. Are you saying that, at runtime, you need ot know the actual length of the array? If so, you should st...
2010 Jan 11
0
[LLVMdev] Operations on constant array value?
...ge); Garrison On Jan 11, 2010, at 14:03, James Williams wrote: > 2010/1/11 Eli Friedman <eli.friedman at gmail.com> > On Mon, Jan 11, 2010 at 7:07 AM, James Williams <junk at giantblob.com> wrote: > > Hi, > > > > I've read http://llvm.org/docs/LangRef.html#t_array and > > http://llvm.org/docs/GetElementPtr.html and if I've understood right there > > are no operations that act directly on arrays - instead I need to use > > getelementptr on a pointer to an array to get a pointer to an array element. > > I also understand that there...
2010 Jan 11
0
[LLVMdev] Operations on constant array value?
...For example: llvm::Value* stringVar = builder.CreateAlloca(stringConstant->getType()); builder.CreateStore(stringConstant, stringVar); The stringVar is your address. Garrison On Jan 11, 2010, at 10:07, James Williams wrote: > Hi, > > I've read http://llvm.org/docs/LangRef.html#t_array and http://llvm.org/docs/GetElementPtr.html and if I've understood right there are no operations that act directly on arrays - instead I need to use getelementptr on a pointer to an array to get a pointer to an array element. I also understand that there is no 'address of' operation. &g...
2010 Jan 11
0
[LLVMdev] Operations on constant array value?
..., 2010, at 14:03, James Williams wrote: > >> 2010/1/11 Eli Friedman <eli.friedman at gmail.com> >> On Mon, Jan 11, 2010 at 7:07 AM, James Williams <junk at giantblob.com> wrote: >> > Hi, >> > >> > I've read http://llvm.org/docs/LangRef.html#t_array and >> > http://llvm.org/docs/GetElementPtr.html and if I've understood right there >> > are no operations that act directly on arrays - instead I need to use >> > getelementptr on a pointer to an array to get a pointer to an array element. >> > I also unders...
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
2011 Jan 05
0
Fwd: Review of libguestfs ruby bindings
...can remove the check entirely; either you will get back a valid string (even if it is empty), or the interpreter will raise an exception (in which case the rest of your function won't be called anyway). 7) In ruby_guestfs_test0() and other places, there is code like: Check_Type (strlistv, T_ARRAY); { size_t i, len; len = RARRAY_LEN (strlistv); strlist = guestfs_safe_malloc (g, sizeof (char *) * (len+1)); for (i = 0; i < len; ++i) { VALUE v = rb_ary_entry (strlistv, i); strlist[i] = StringValueCStr (v); } strlist[len] = NULL; } Unfortunately this c...
2005 Jun 20
4
[LLVMdev] variable sized structs in LLVM
Hi LLVM-dev! I'm having problems figuring out how to do variable sized structs in LLVM (which are neccessary for PyPy's LLVM backend, on which I'm working). I'm trying to do the equivalent of struct array { long refcount; long length; long items[1]; }; in LLVM, where the items array can be arbitrarily long. I guess that the struct definition should
2018 Mar 09
0
For Extracting gridded netcdf data into output files where each file representing the individual grid
...need to get 3721(61*61=3721) output files. But, I am only getting 3482 output files. I think the problem is with naming the output files using paste command, The loop part I had done is as follows: for (i in 1:length(ny)){ for (j in 1:length(nx)){ for (l in 1:365){ write.csv(list(t_array[i,j,]),paste(i,j,".csv",sep=""),row.names=T) }}} I am looking forward for your suggestions...... [[alternative HTML version deleted]]
2008 Jun 18
1
[LLVMdev] [PATCH] Insert a missing comma in documentation
...a>, <a href="#t_pointer">pointer</a>, - <a href="#t_vector">vector</a> + <a href="#t_vector">vector</a>, <a href="#t_struct">structure</a>, <a href="#t_array">array</a>, <a href="#t_label">label</a>.
2005 Jun 24
2
[LLVMdev] variable sized structs in LLVM
...lease make the array be [0 x > int] though, as it is undefined in llvm to access past the end of an array > with non-zero length. I added a note about zero-length arrays here: > > http://llvm.cs.uiuc.edu/docs/LangRef.html#i_getelementptr > http://llvm.cs.uiuc.edu/docs/LangRef.html#t_array > > As you mention above, you should use malloc and cast the return value. If > you want to get the desired size in a target-independent way (always > good), you should do something like this: > > %array = type { int, int, [0 x int] } > implementation > %array *%NewArray(...
2006 Oct 19
0
[687] trunk/wxruby2/swig/classes/Pen.i: Remove a malformed and unneeded typemap (Roy Sutton)
...0:07 UTC (rev 686) +++ trunk/wxruby2/swig/classes/Pen.i&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp2006-10-19 08:31:41 UTC (rev 687) </span><span class="lines">@@ -40,8 +40,6 @@ </span><span class="cx"> $1 = (TYPE($input) == T_ARRAY); </span><span class="cx"> } </span><span class="cx"> </span><del>-%apply (int n, wxDash dash []) { (int n, wxDash *dashes),(int nItems, wxDash *dash) } - </del><span class="cx"> %ignore wxPen::SetStipple; </span>&...
2006 Oct 21
0
[696] trunk/wxruby2/swig/classes/Pen.i: Un-ignored Get/SetStipple b/c these are now ifdef''d in the header for GTK
...:49 UTC (rev 695) +++ trunk/wxruby2/swig/classes/Pen.i&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp2006-10-21 11:16:22 UTC (rev 696) </span><span class="lines">@@ -40,10 +40,6 @@ </span><span class="cx"> $1 = (TYPE($input) == T_ARRAY); </span><span class="cx"> } </span><span class="cx"> </span><del>-%ignore wxPen::SetStipple; -%ignore GetStipple; - - </del><span class="cx"> %import "include/wxObject.h" </span><span class="cx&q...
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
2007 May 05
0
[1016] trunk/wxruby2/swig/classes/StatusBar.i: Remove directors from StatusBar''s methods as don''t seem to need them, (Bug:6809)
...span class="cx"> </span><del>- </del><ins>+// For SetStatusWidths </ins><span class="cx"> %typemap(in,numinputs=1) (int n, int *widths) (int *arr){ </span><span class="cx"> if (($input == Qnil) || (TYPE($input) != T_ARRAY)) </span><span class="cx"> { </span></span></pre> </div> </div> </body> </html>
2006 Dec 31
0
[816] trunk/wxruby2: Added AcceleratorTable and AcceleratorTable classes, plus documentation
...wxAcceleratorEntry +%extend wxAcceleratorTable { VALUE bogus__(wxAcceleratorEntry) { } } + + +// For constructor, accepts an array of Wx::AcceleratorEntry objects +%typemap(in,numinputs=1) (int n, wxAcceleratorEntry entries[]) (wxAcceleratorEntry *arr) +{ + if (($input == Qnil) || (TYPE($input) != T_ARRAY)) + { + $1 = 0; + $2 = NULL; + } + else + { + wxAcceleratorEntry *wx_acc_ent; + arr = new wxAcceleratorEntry[RARRAY($input)->len]; + for (int i = 0; i < RARRAY($input)->len; i++) + { +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp SWIG_Conve...