search for: uint2num

Displaying 5 results from an estimated 5 matches for "uint2num".

Did you mean: int2num
2004 Nov 13
0
Sanity check for win32-file
.... When I run this: require "win32/file" fh = File.nopen("C:\\test.txt") fh.close I now get: test.rb:12:in `initialize'': Invalid argument (Errno::EINVAL) from test.rb:12:in `nopen'' Specifically, it''s failing on this in file.c: args[0] = UINT2NUM(_open_osfhandle((long)h,O_RDWR)); self = rb_class_new_instance(1,args,rb_cFile); // BOOM How could this work yesterday, and suddenly stop working today? What am I missing? Dan
2004 Apr 29
3
win32-ipc bug?
Either I''ve been up too late, or the timeout value passed to Ipc.new isn''t actually saved anywhere. Am I wrong? Anyway, I''ve added docs and a test suite for win32-ipc. Feel free to take a look and make sure there aren''t any glaring errors. Thanks. Dan PS - I''m hoping to release win32-event 0.2.0 and win32-ipc 0.1.0 this weekend unless there are
2004 Oct 23
0
win32-ipc, with blocks (code review please)
...d(cIpc,"wait_any",ipc_wait_any,-1); rb_define_singleton_method(cIpc,"wait_all",ipc_wait_all,-1); rb_define_method(cIpc,"initialize",ipc_init,1); rb_define_method(cIpc,"wait",ipc_wait,-1); // Constants rb_define_const(cIpc,"INFINITE",UINT2NUM(INFINITE)); rb_define_const(cIpc,"VERSION",rb_str_new2(WIN32_IPC_VERSION)); }
2004 Jul 31
3
Bug in new_work_item
Hi all, Windows 2000 Ruby 1.8.2 R7 VC++ 6.0 I noticed that if I try to call new_work_item and give the task a name that already exists, I get a segfault: C:\eclipse\workspace\win32-taskscheduler>ruby test.rb "0.1.0" test.rb:22:in `new_work_item'': NewWorkItem() function failed (Win32::TaskSchedul erError) from test.rb:22 test.rb:22: [BUG] Segmentation fault ruby
2009 Aug 03
1
[PATCH 1/2] Convert all TABs-as-indentation to spaces.
...- pr " rb_hash_aset (rv, rb_str_new2 (\"%s\"), LL2NUM (r->%s));\n" name name + pr " rb_hash_aset (rv, rb_str_new2 (\"%s\"), LL2NUM (r->%s));\n" name name | name, FUInt32 -> - pr " rb_hash_aset (rv, rb_str_new2 (\"%s\"), UINT2NUM (r->%s));\n" name name + pr " rb_hash_aset (rv, rb_str_new2 (\"%s\"), UINT2NUM (r->%s));\n" name name | name, FInt32 -> - pr " rb_hash_aset (rv, rb_str_new2 (\"%s\"), INT2NUM (r->%s));\n" name name + pr " rb_hash_as...