[Win32utils-devel] Getting at MakeOpenFile
Wayne Vucenic
waynev at gmail.com
Wed May 31 18:04:40 EDT 2006
Hi Dan,
How's it going?
Regarding MakeOpenFile... looking in
C:\ruby\lib\ruby\1.8\i386-mswin32\rubyio.h, its defined as a macro:
#define MakeOpenFile(obj, fp) do {\
if (RFILE(obj)->fptr) {\
rb_io_close(obj);\
free(RFILE(obj)->fptr);\
RFILE(obj)->fptr = 0;\
}\
fp = 0;\
fp = RFILE(obj)->fptr = ALLOC(OpenFile);\
fp->f = fp->f2 = NULL;\
fp->mode = 0;\
fp->pid = 0;\
fp->lineno = 0;\
fp->path = NULL;\
fp->finalize = 0;\
} while (0)
so the only way to access it would be to #include "rubyio.h", which
doesn't help much for your pure Ruby solution.
Wayne
---
Wayne Vucenic
No Bugs Software
Ruby and C# Agile Contract Programming in Silicon Valley
On 5/31/06, Berger, Daniel <Daniel.Berger at qwest.com> wrote:
> Along the same lines as the last question - how can I get to functions
> like MakeOpenFile via Win32API? It doesn't seem to be exported by
> msvcrt-ruby18.
>
> Possible? Or am I out of luck?
>
> Dan
>
>
> This communication is the property of Qwest and may contain confidential or
> privileged information. Unauthorized use of this communication is strictly
> prohibited and may be unlawful. If you have received this communication
> in error, please immediately notify the sender by reply e-mail and destroy
> all copies of the communication and any attachments.
> _______________________________________________
> win32utils-devel mailing list
> win32utils-devel at rubyforge.org
> http://rubyforge.org/mailman/listinfo/win32utils-devel
>
More information about the win32utils-devel
mailing list