[Ironruby-core] IoOps fix

Ivan Porto Carrero ivan at flanders.co.nz
Sun Oct 4 07:18:27 EDT 2009


Hi

I've attached a diff with the same content as the link below. It contains
the code needed to fix detecting console redirection.
http://github.com/casualjim/ironruby/commit/b91e0b912d32c908a9021c738ed23a1635044fd4

I've also looked for more places that have p/invoke stuff

/* the first 2 got fixed in this commit */
/Users/ivan/src/ironruby.mine/Merlin/Main/Languages/Ruby/Libraries.LCA_RESTRICTED/Builtins/IoOps.cs
(523, 10):        [DllImport("kernel32")]
/Users/ivan/src/ironruby.mine/Merlin/Main/Languages/Ruby/Libraries.LCA_RESTRICTED/Builtins/IoOps.cs
(526, 10):        [DllImport("kernel32")]

/* probably no need to fix this one Win32API */
/Users/ivan/src/ironruby.mine/Merlin/Main/Languages/Ruby/Libraries.LCA_RESTRICTED/Win32API/Win32API.cs
(151, 10):        [DllImport("kernel32.dll")]
/Users/ivan/src/ironruby.mine/Merlin/Main/Languages/Ruby/Libraries.LCA_RESTRICTED/Win32API/Win32API.cs
(154, 10):        [DllImport("kernel32.dll")]

/* Will ask mono people if this is supposed to work on mono */
/Users/ivan/src/ironruby.mine/Merlin/Main/Runtime/Microsoft.Dynamic/ComInterop/ComRuntimeHelpers.cs
(250, 10):        [DllImport("oleaut32.dll", PreserveSig = false)]
/Users/ivan/src/ironruby.mine/Merlin/Main/Runtime/Microsoft.Dynamic/ComInterop/ComRuntimeHelpers.cs
(256, 10):        [DllImport("oleaut32.dll", PreserveSig = false)]
/Users/ivan/src/ironruby.mine/Merlin/Main/Runtime/Microsoft.Dynamic/ComInterop/ComRuntimeHelpers.cs
(731, 10):        [DllImport("oleaut32.dll", PreserveSig = false)]


---
Met vriendelijke groeten - Best regards - Salutations
Ivan Porto Carrero
Blog: http://flanders.co.nz
Twitter: http://twitter.com/casualjim
Author of IronRuby in Action (http://manning.com/carrero)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20091004/3e299230/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: IoOps.diff
Type: application/octet-stream
Size: 3968 bytes
Desc: not available
URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20091004/3e299230/attachment.obj>


More information about the Ironruby-core mailing list