wine
14 years agouser32/tests: Add a test for foreground windows on a different thread.
Henri Verbeet [Wed, 17 Mar 2010 20:59:45 +0000 (21:59 +0100)] 
user32/tests: Add a test for foreground windows on a different thread.

What happens is that we get the WM_WINE_SETACTIVEWINDOW message sent by the
other thread after we already changed the foreground window back to our own
window.

14 years agomshtml: Fix return value interpretation when navigating.
Andrew Eikum [Wed, 17 Mar 2010 21:09:09 +0000 (16:09 -0500)] 
mshtml: Fix return value interpretation when navigating.

14 years agowindowscodecs: Make component enumerators thread-safe.
Vincent Povirk [Sat, 13 Mar 2010 18:29:09 +0000 (12:29 -0600)] 
windowscodecs: Make component enumerators thread-safe.

This is needed so that ImagingFactory can have a threading model of Both.

14 years agoinclude: Add definitions for IWICBitmapScaler.
Vincent Povirk [Wed, 17 Mar 2010 18:18:43 +0000 (13:18 -0500)] 
include: Add definitions for IWICBitmapScaler.

14 years agowinex11.drv: Use CurrentTime to focus windows if we have no timestamp.
Vincent Povirk [Wed, 17 Mar 2010 17:29:23 +0000 (12:29 -0500)] 
winex11.drv: Use CurrentTime to focus windows if we have no timestamp.

14 years agowinex11.drv: ReadSelectionData should fail if the import function fails.
Vincent Povirk [Wed, 17 Mar 2010 16:39:35 +0000 (11:39 -0500)] 
winex11.drv: ReadSelectionData should fail if the import function fails.

14 years agoole32: Remove useless parameter check.
Nikolay Sivov [Wed, 17 Mar 2010 15:21:52 +0000 (18:21 +0300)] 
ole32: Remove useless parameter check.

14 years agod3dx9_36: Add stub for D3DXCreateTextureFromFileInMemoryEx.
Christian Costa [Wed, 17 Mar 2010 11:21:22 +0000 (12:21 +0100)] 
d3dx9_36: Add stub for D3DXCreateTextureFromFileInMemoryEx.

14 years agod3d9: Remove old debug messages from the tests.
Stefan Dösinger [Thu, 14 Jan 2010 15:54:58 +0000 (07:54 -0800)] 
d3d9: Remove old debug messages from the tests.

14 years agod3d9: Windows 7 rejects invalid rectangles.
Stefan Dösinger [Mon, 15 Mar 2010 13:08:23 +0000 (14:08 +0100)] 
d3d9: Windows 7 rejects invalid rectangles.

14 years agod3d9: Remove the double unlock test.
Stefan Dösinger [Mon, 15 Mar 2010 12:42:57 +0000 (13:42 +0100)] 
d3d9: Remove the double unlock test.

14 years agoddraw: Use a D24X8 depth buffer.
Stefan Dösinger [Sat, 27 Feb 2010 13:38:18 +0000 (14:38 +0100)] 
ddraw: Use a D24X8 depth buffer.

14 years agomsvfw32: MCI Step is like Seek.
Jörg Höhle [Tue, 16 Mar 2010 18:14:38 +0000 (19:14 +0100)] 
msvfw32: MCI Step is like Seek.

14 years agoshlwapi/tests: Fix some test failures on Vista+.
Paul Vriens [Wed, 17 Mar 2010 12:20:15 +0000 (13:20 +0100)] 
shlwapi/tests: Fix some test failures on Vista+.

14 years agoshdocvw: Fixed tests on some Windows.
Jacek Caban [Wed, 17 Mar 2010 12:19:35 +0000 (13:19 +0100)] 
shdocvw: Fixed tests on some Windows.

14 years agomidimap: Defer initialisation.
Maarten Lankhorst [Wed, 17 Mar 2010 09:50:24 +0000 (10:50 +0100)] 
midimap: Defer initialisation.

14 years agowined3d: Make resources 16 byte aligned.
Stefan Dösinger [Thu, 11 Mar 2010 14:41:31 +0000 (15:41 +0100)] 
wined3d: Make resources 16 byte aligned.

14 years agowined3d: Merge two if conditions in buffer.c.
Stefan Dösinger [Thu, 11 Mar 2010 14:21:40 +0000 (15:21 +0100)] 
wined3d: Merge two if conditions in buffer.c.

14 years agowinhttp: Fix invalid behaviour of WinHttpCrackUrl.
Maciej Borsz [Tue, 16 Mar 2010 18:58:25 +0000 (19:58 +0100)] 
winhttp: Fix invalid behaviour of WinHttpCrackUrl.

14 years agowined3d: Add surface conversion function from WINED3DFMT_YUY2 to WINED3DFMT_B8G8R8X8_...
Sandijs Ribaks [Tue, 16 Mar 2010 14:09:06 +0000 (16:09 +0200)] 
wined3d: Add surface conversion function from WINED3DFMT_YUY2 to WINED3DFMT_B8G8R8X8_UNORM.

14 years agohlink: Implement IHlinkBrowseContext::GetBrowseWindowInfo.
Andrew Eikum [Tue, 16 Mar 2010 21:49:23 +0000 (16:49 -0500)] 
hlink: Implement IHlinkBrowseContext::GetBrowseWindowInfo.

14 years agohlink: Split target at hash in HlinkCreateFromString.
Andrew Eikum [Tue, 16 Mar 2010 19:52:04 +0000 (14:52 -0500)] 
hlink: Split target at hash in HlinkCreateFromString.

14 years agohlink: Set hlink's location to NULL if the empty string is given.
Andrew Eikum [Tue, 16 Mar 2010 19:52:01 +0000 (14:52 -0500)] 
hlink: Set hlink's location to NULL if the empty string is given.

14 years agooleaut32: Plug some memleaks on error paths (Smatch).
Michael Stefaniuc [Tue, 16 Mar 2010 22:05:47 +0000 (23:05 +0100)] 
oleaut32: Plug some memleaks on error paths (Smatch).

14 years agooleaut32: Remove superfluous NULL check before HeapFree (Smatch).
Michael Stefaniuc [Tue, 16 Mar 2010 22:05:39 +0000 (23:05 +0100)] 
oleaut32: Remove superfluous NULL check before HeapFree (Smatch).

14 years agooleaut32: Always use DISPID_PROPERTYPUT to fill in the last argument.
Vincent Povirk [Tue, 16 Mar 2010 18:32:57 +0000 (13:32 -0500)] 
oleaut32: Always use DISPID_PROPERTYPUT to fill in the last argument.

14 years agoshlwapi/tests: Fix some test failures on XP/Vista.
Paul Vriens [Tue, 16 Mar 2010 18:21:08 +0000 (19:21 +0100)] 
shlwapi/tests: Fix some test failures on XP/Vista.

14 years agorsaenh/tests: Fix some test failures on XP (pre SP3).
Paul Vriens [Tue, 16 Mar 2010 18:17:56 +0000 (19:17 +0100)] 
rsaenh/tests: Fix some test failures on XP (pre SP3).

14 years agoddraw: Fix IDirectDraw4Impl_GetSurfaceFromDC().
Henri Verbeet [Tue, 16 Mar 2010 18:02:22 +0000 (19:02 +0100)] 
ddraw: Fix IDirectDraw4Impl_GetSurfaceFromDC().

Perhaps interesting to note is that this returns an IDirectDrawSurface instead
of an IDirectDrawSurface4.

14 years agoddraw: Implement IDirectDrawImpl_GetSurfaceFromDC().
Henri Verbeet [Tue, 16 Mar 2010 18:02:21 +0000 (19:02 +0100)] 
ddraw: Implement IDirectDrawImpl_GetSurfaceFromDC().

This is a pretty naive implementation, should that become a performance
problem it's easy enough to speed up with a search tree of some kind.

14 years agowined3d: Cleanup IWineD3DDeviceImpl_SetFrontBackBuffers().
Henri Verbeet [Tue, 16 Mar 2010 18:02:20 +0000 (19:02 +0100)] 
wined3d: Cleanup IWineD3DDeviceImpl_SetFrontBackBuffers().

14 years agowined3d: Don't change the draw buffer in IWineD3DDeviceImpl_SetFrontBackBuffers().
Henri Verbeet [Tue, 16 Mar 2010 18:02:19 +0000 (19:02 +0100)] 
wined3d: Don't change the draw buffer in IWineD3DDeviceImpl_SetFrontBackBuffers().

This should be handled by the context's draw buffer management.

14 years agowined3d: Simplify the IWineD3DDeviceImpl_ClearSurface() surface loading code.
Henri Verbeet [Tue, 16 Mar 2010 18:02:18 +0000 (19:02 +0100)] 
wined3d: Simplify the IWineD3DDeviceImpl_ClearSurface() surface loading code.

14 years agowined3d: Simplify context_apply_attachment_filter_states() flow a bit.
Henri Verbeet [Tue, 16 Mar 2010 18:02:17 +0000 (19:02 +0100)] 
wined3d: Simplify context_apply_attachment_filter_states() flow a bit.

14 years agowined3d: Add missing checkGLcall's to buffer_Map().
Henri Verbeet [Tue, 16 Mar 2010 18:02:16 +0000 (19:02 +0100)] 
wined3d: Add missing checkGLcall's to buffer_Map().

14 years agowined3d: Don't use framebuffer blit for backbuffer formats with fixups in swapchain_b...
Henri Verbeet [Tue, 16 Mar 2010 18:02:15 +0000 (19:02 +0100)] 
wined3d: Don't use framebuffer blit for backbuffer formats with fixups in swapchain_blit().

14 years agowined3d: Don't use filtering on textures that need complex fixups in swapchain_blit().
Henri Verbeet [Tue, 16 Mar 2010 18:02:14 +0000 (19:02 +0100)] 
wined3d: Don't use filtering on textures that need complex fixups in swapchain_blit().

For example, interpolating palette indices doesn't have the desired result.
Should we really want filtering for these cases we could implement it inside
the relevant shaders, after the fixup, but I doubt it's worth the effort.

14 years agowined3d: Use "gl_filter" in the non-FBO path of swapchain_blit() as well.
Henri Verbeet [Tue, 16 Mar 2010 18:02:13 +0000 (19:02 +0100)] 
wined3d: Use "gl_filter" in the non-FBO path of swapchain_blit() as well.

14 years agomakefiles: Add more shell functions to generate the main makefile.
Alexandre Julliard [Tue, 16 Mar 2010 21:00:02 +0000 (22:00 +0100)] 
makefiles: Add more shell functions to generate the main makefile.

14 years agoshell32/tests: Add tests for the parser of SHELLEXECUTEINFO.lpFile.
Ilya Basin [Mon, 8 Mar 2010 18:44:57 +0000 (21:44 +0300)] 
shell32/tests: Add tests for the parser of SHELLEXECUTEINFO.lpFile.

14 years agomciseq: MCI Set Port allows to select the MIDI device.
Jörg Höhle [Sun, 14 Mar 2010 11:49:14 +0000 (12:49 +0100)] 
mciseq: MCI Set Port allows to select the MIDI device.

14 years agomciavi: Stubs should return a success code.
Jörg Höhle [Mon, 15 Mar 2010 07:11:04 +0000 (08:11 +0100)] 
mciavi: Stubs should return a success code.

Partly reverts my commit 3e5c704e7a44328e9243e786bd6e37c17e790fa4.

14 years agoshell32: Initial support for the properties command in the IContextMenu for shellview.
David Hedberg [Tue, 16 Mar 2010 00:32:46 +0000 (01:32 +0100)] 
shell32: Initial support for the properties command in the IContextMenu for shellview.

14 years agoshell32: SHCreatePropSheetExtArrayEx should check if the key itself contains the...
David Hedberg [Tue, 16 Mar 2010 00:32:45 +0000 (01:32 +0100)] 
shell32: SHCreatePropSheetExtArrayEx should check if the key itself contains the clsid of the shell extension.

14 years agowine.inf: Add key for approved shell extensions.
David Hedberg [Tue, 16 Mar 2010 00:32:44 +0000 (01:32 +0100)] 
wine.inf: Add key for approved shell extensions.

14 years agoole32: Turn FIXME to TRACE for CoGetTreatAsClass.
Nikolay Sivov [Mon, 15 Mar 2010 19:51:56 +0000 (22:51 +0300)] 
ole32: Turn FIXME to TRACE for CoGetTreatAsClass.

14 years agogdiplus/tests: Fix a test failure on Win98/WinMe.
Paul Vriens [Tue, 16 Mar 2010 10:00:59 +0000 (11:00 +0100)] 
gdiplus/tests: Fix a test failure on Win98/WinMe.

14 years agocmd: Add another expansion test.
Yann Droneaud [Tue, 16 Mar 2010 09:54:26 +0000 (10:54 +0100)] 
cmd: Add another expansion test.

Test %VAR%VAR% to check that the second variable is not expanded.

14 years agocmd: Remove %CD% test.
Yann Droneaud [Tue, 16 Mar 2010 09:53:28 +0000 (10:53 +0100)] 
cmd: Remove %CD% test.

%CD% seems not supported on Windows NT 4.

14 years agokernel32/tests: Run tests again on Win95.
Paul Vriens [Tue, 16 Mar 2010 09:42:48 +0000 (10:42 +0100)] 
kernel32/tests: Run tests again on Win95.

14 years agomshtml/tests: Fix some test failures on Win9x/WinMe by using a A-function.
Paul Vriens [Tue, 16 Mar 2010 09:18:52 +0000 (10:18 +0100)] 
mshtml/tests: Fix some test failures on Win9x/WinMe by using a A-function.

14 years agowined3d: Check the alignment of mapped buffer pointers.
Stefan Dösinger [Thu, 11 Mar 2010 12:20:32 +0000 (13:20 +0100)] 
wined3d: Check the alignment of mapped buffer pointers.

Windows returns 32 byte aligned pointers when locking vertex and index
buffers, and some applications(Half Life 2, Alpha Prime, possibly others)
rely on this. Check the alignment and fall back to double buffered
buffers with HeapAlloced and aligned pointers if the alignment doesn't
fit.

14 years agowined3d: Implement unfenced updates of double buffered buffers.
Stefan Dösinger [Thu, 11 Mar 2010 11:34:22 +0000 (12:34 +0100)] 
wined3d: Implement unfenced updates of double buffered buffers.

14 years agowined3d: Use glMapBuffer for 1:1 uploads in PreLoad.
Stefan Dösinger [Thu, 11 Mar 2010 11:23:19 +0000 (12:23 +0100)] 
wined3d: Use glMapBuffer for 1:1 uploads in PreLoad.

This is needed to take advantage of asynchronous uploads with double buffered buffers

14 years agowined3d: Don't DISCARD or NOOVERWRITE non-dynamic buffers.
Stefan Dösinger [Thu, 11 Mar 2010 11:05:23 +0000 (12:05 +0100)] 
wined3d: Don't DISCARD or NOOVERWRITE non-dynamic buffers.

Shaiya locks a non-dynamic buffer with the DISCARD flag and expects
the contents to be retained. The SDK says DISCARD requires dynamic
resources, and Windows 7 returns an error in this situation, crashing
Shaiya. This patch sticks to the Windows XP behavior and allows the
lock, but ignores the DISCARD flag to retain the buffer contents.

14 years agod3d9: Fix test failures on Windows 7.
Stefan Dösinger [Sun, 14 Mar 2010 11:59:29 +0000 (12:59 +0100)] 
d3d9: Fix test failures on Windows 7.

14 years agodbghelp: Store the file map in ELF's module specific data.
Eric Pouech [Mon, 15 Mar 2010 20:12:37 +0000 (21:12 +0100)] 
dbghelp: Store the file map in ELF's module specific data.

14 years agodbghelp: Added helper to free module's specific data (ELF, MSC...) upon removal.
Eric Pouech [Mon, 15 Mar 2010 20:12:31 +0000 (21:12 +0100)] 
dbghelp: Added helper to free module's specific data (ELF, MSC...) upon removal.

14 years agodbghelp: Added full support for DW_FORM_data8 attributes, as well as primary support...
Eric Pouech [Mon, 15 Mar 2010 20:12:22 +0000 (21:12 +0100)] 
dbghelp: Added full support for DW_FORM_data8 attributes, as well as primary support for DW_FORM_block* attributes.

14 years agomakefiles: Remove the no longer needed explicit dependencies for bison files.
Alexandre Julliard [Tue, 16 Mar 2010 12:27:27 +0000 (13:27 +0100)] 
makefiles: Remove the no longer needed explicit dependencies for bison files.

14 years agomakefiles: Remove the no longer needed explicit separators for dependencies.
Alexandre Julliard [Tue, 16 Mar 2010 12:16:20 +0000 (13:16 +0100)] 
makefiles: Remove the no longer needed explicit separators for dependencies.

14 years agomakedep: Output source dependency for bison files needed for parallel makes.
Alexandre Julliard [Tue, 16 Mar 2010 12:27:51 +0000 (13:27 +0100)] 
makedep: Output source dependency for bison files needed for parallel makes.

14 years agomakedep: Append the separator if not found in an existing makefile.
Alexandre Julliard [Tue, 16 Mar 2010 12:14:21 +0000 (13:14 +0100)] 
makedep: Append the separator if not found in an existing makefile.

14 years agod3d9/tests: Test ATI2N pitch and locking offset behaviour.
Ričardas Barkauskas [Mon, 15 Mar 2010 23:10:09 +0000 (01:10 +0200)] 
d3d9/tests: Test ATI2N pitch and locking offset behaviour.

14 years agowined3d: Fix ATI2N pitch and offset calculations.
Ričardas Barkauskas [Mon, 15 Mar 2010 23:19:23 +0000 (01:19 +0200)] 
wined3d: Fix ATI2N pitch and offset calculations.

14 years agogdiplus: Basic implementation of GdipImageGetFrameCount with updated tests.
Justin Chevrier [Mon, 15 Mar 2010 23:14:28 +0000 (19:14 -0400)] 
gdiplus: Basic implementation of GdipImageGetFrameCount with updated tests.

14 years agogdiplus/tests: Expand GdipImageGetFrameCount test coverage.
Justin Chevrier [Mon, 15 Mar 2010 23:14:27 +0000 (19:14 -0400)] 
gdiplus/tests: Expand GdipImageGetFrameCount test coverage.

14 years agoiphlpapi: Don't crash when enumerating PtP interfaces.
Michael Stefaniuc [Tue, 16 Mar 2010 00:09:40 +0000 (01:09 +0100)] 
iphlpapi: Don't crash when enumerating PtP interfaces.

14 years agooleaut32: Set parameter to NULL in GetMops stub.
Piotr Caban [Mon, 15 Mar 2010 22:40:46 +0000 (23:40 +0100)] 
oleaut32: Set parameter to NULL in GetMops stub.

14 years agooleaut32: Improve ICreateTypeInfo_LayOut implementation.
Piotr Caban [Mon, 15 Mar 2010 22:40:31 +0000 (23:40 +0100)] 
oleaut32: Improve ICreateTypeInfo_LayOut implementation.

14 years agooleaut32: Improved ICreateTypeInfo AddFuncDesc implementation.
Piotr Caban [Mon, 15 Mar 2010 22:40:15 +0000 (23:40 +0100)] 
oleaut32: Improved ICreateTypeInfo AddFuncDesc implementation.

14 years agooleaut32: Use QueryPathOfRegTypeLib in ICreateTypeInfo2_AddRefTypeInfo.
Piotr Caban [Mon, 15 Mar 2010 22:40:01 +0000 (23:40 +0100)] 
oleaut32: Use QueryPathOfRegTypeLib in ICreateTypeInfo2_AddRefTypeInfo.

14 years agooleaut32: Remove incorrect memid validation.
Piotr Caban [Mon, 15 Mar 2010 22:39:46 +0000 (23:39 +0100)] 
oleaut32: Remove incorrect memid validation.

This code was trying to block negative values of memid (incorrectly).
I have run more tests and found that it's possible to set some negative
values (e.g. on TKIND_INTERFACE: -1, -4..-8, -500..?). Unless we know
what values are allowed it's probably better to not check memid.

14 years agooleaut32: Fix importinfo flags.
Piotr Caban [Mon, 15 Mar 2010 22:39:31 +0000 (23:39 +0100)] 
oleaut32: Fix importinfo flags.

14 years agooleaut32: Fix some reference leaks.
Piotr Caban [Mon, 15 Mar 2010 22:39:15 +0000 (23:39 +0100)] 
oleaut32: Fix some reference leaks.

14 years agooleaut32: Added ICreateTypeInfo2_SetFuncHelpContext implementation.
Piotr Caban [Mon, 15 Mar 2010 22:38:57 +0000 (23:38 +0100)] 
oleaut32: Added ICreateTypeInfo2_SetFuncHelpContext implementation.

14 years agooleaut32: Improve dual interfaces creation in typelib.
Piotr Caban [Mon, 15 Mar 2010 22:38:40 +0000 (23:38 +0100)] 
oleaut32: Improve dual interfaces creation in typelib.

14 years agooleaut32: Improve TypeInfos with changed TypeKind handling.
Piotr Caban [Mon, 15 Mar 2010 22:38:24 +0000 (23:38 +0100)] 
oleaut32: Improve TypeInfos with changed TypeKind handling.

14 years agooleaut32: Simplify ICreateTypeInfo2_SetTypeFlags implementation.
Piotr Caban [Mon, 15 Mar 2010 22:37:48 +0000 (23:37 +0100)] 
oleaut32: Simplify ICreateTypeInfo2_SetTypeFlags implementation.

14 years agowined3d: Implement SetDestWindowOverride() by simply making the context current on...
Henri Verbeet [Mon, 15 Mar 2010 20:07:31 +0000 (21:07 +0100)] 
wined3d: Implement SetDestWindowOverride() by simply making the context current on a different window.

14 years agowined3d: Store the device window in the swapchain.
Henri Verbeet [Mon, 15 Mar 2010 20:07:30 +0000 (21:07 +0100)] 
wined3d: Store the device window in the swapchain.

The swapchain's current window might be changed by SetDestWindowOverride().

14 years agowined3d: Simplify a comparison in IWineD3DDeviceImpl_Reset().
Henri Verbeet [Mon, 15 Mar 2010 20:07:29 +0000 (21:07 +0100)] 
wined3d: Simplify a comparison in IWineD3DDeviceImpl_Reset().

14 years agowined3d: The swapchain should always have a window handle.
Henri Verbeet [Mon, 15 Mar 2010 20:07:28 +0000 (21:07 +0100)] 
wined3d: The swapchain should always have a window handle.

14 years agowined3d: Use the context's window handle in IWineD3DSurfaceImpl_BltOverride().
Henri Verbeet [Mon, 15 Mar 2010 20:07:27 +0000 (21:07 +0100)] 
wined3d: Use the context's window handle in IWineD3DSurfaceImpl_BltOverride().

14 years agowined3d: Use the context's window handle in stretch_rect_fbo().
Henri Verbeet [Mon, 15 Mar 2010 20:07:26 +0000 (21:07 +0100)] 
wined3d: Use the context's window handle in stretch_rect_fbo().

14 years agowined3d: Store the swapchain instead of the surface in the context.
Henri Verbeet [Mon, 15 Mar 2010 20:07:25 +0000 (21:07 +0100)] 
wined3d: Store the swapchain instead of the surface in the context.

14 years agowined3d: Add a separate function to set the pixel format in context_create().
Henri Verbeet [Mon, 15 Mar 2010 20:07:24 +0000 (21:07 +0100)] 
wined3d: Add a separate function to set the pixel format in context_create().

14 years agowined3d: Use "gl_info" in some more places in context_create().
Henri Verbeet [Mon, 15 Mar 2010 20:07:23 +0000 (21:07 +0100)] 
wined3d: Use "gl_info" in some more places in context_create().

14 years agorpcrt4: Add support for marshalling/unmarshalling complex arrays of pointers.
Rob Shearman [Mon, 15 Mar 2010 21:18:46 +0000 (21:18 +0000)] 
rpcrt4: Add support for marshalling/unmarshalling complex arrays of pointers.

14 years agowidl: Remove a FIXME comment in write_function_stubs.
Rob Shearman [Mon, 15 Mar 2010 19:31:14 +0000 (19:31 +0000)] 
widl: Remove a FIXME comment in write_function_stubs.

Clean valgrind runs of tested types and comparison with MIDL-generated
code suggests that the existing code written in the finally block for
client code is sufficient.

14 years agowidl: Simplify write_parameter_conf_or_var_exprs by making use of typegen_detect_type.
Rob Shearman [Mon, 15 Mar 2010 19:31:10 +0000 (19:31 +0000)] 
widl: Simplify write_parameter_conf_or_var_exprs by making use of typegen_detect_type.

Remove the difficult manual walking of the alias tree and make the
code easier to read and less likely to break if a new type is added.

14 years agowidl: Clean up array case in write_remoting_arg.
Rob Shearman [Mon, 15 Mar 2010 19:31:00 +0000 (19:31 +0000)] 
widl: Clean up array case in write_remoting_arg.

Use a switch statement instead of multiple if statements and
explicitly write out the fixed array cases.

14 years agowidl: Remove some FIXME comments and replace them with comments explaining why the...
Rob Shearman [Mon, 15 Mar 2010 19:30:50 +0000 (19:30 +0000)] 
widl: Remove some FIXME comments and replace them with comments explaining why the current behaviour is correct.

14 years agowidl: Fix the writing of expressions in un-typedef'd structures by using write_type_l...
Rob Shearman [Mon, 15 Mar 2010 19:30:37 +0000 (19:30 +0000)] 
widl: Fix the writing of expressions in un-typedef'd structures by using write_type_left to write out the type, which adds the "struct ..." if necessary.

Also improve the type comparison code to not crash on unnamed
structures (although further changes need to be made to fix the output
in this case) and make it more efficient by first doing a comparison
on the values of the type pointers.

14 years agowidl: error_status_t isn't an allowed conformance type.
Rob Shearman [Mon, 15 Mar 2010 19:30:28 +0000 (19:30 +0000)] 
widl: error_status_t isn't an allowed conformance type.

The FC code requires more than 4 bits to represent it and the
correlation descriptor and union formats only allow 4 bits to
represent the type referred to.

14 years agowidl: Pass current_structure into write_conf_or_var_desc in write_ip_tfs.
Rob Shearman [Mon, 15 Mar 2010 19:30:20 +0000 (19:30 +0000)] 
widl: Pass current_structure into write_conf_or_var_desc in write_ip_tfs.

This allows write_conf_or_var_desc to have the context enabling it to
write out an appropriate correlation descriptor when iid_is is used
from within a structure.

14 years agowidl: Use typegen_detect_type to determine which types should be written for the...
Rob Shearman [Mon, 15 Mar 2010 19:30:02 +0000 (19:30 +0000)] 
widl: Use typegen_detect_type to determine which types should be written for the pointer description in write_struct_tfs.

Otherwise extra pointers for user types could be written.

14 years agowidl: Merge write_typeformatstring_var and write_embedded_types into one function...
Rob Shearman [Mon, 15 Mar 2010 19:29:57 +0000 (19:29 +0000)] 
widl: Merge write_typeformatstring_var and write_embedded_types into one function, write_type_tfs.

14 years agowidl: Don't use the return value of write_embedded_types to determine whether a type...
Rob Shearman [Mon, 15 Mar 2010 19:29:53 +0000 (19:29 +0000)] 
widl: Don't use the return value of write_embedded_types to determine whether a type contains pointers or not.

It isn't correct in all situations, so type_has_pointer has to be used
anyway so using the return value of write_embedded_types just clutters
the code.

14 years agowidl: Write pointers in write_typeformatstring_var using write_pointer_tfs.
Rob Shearman [Mon, 15 Mar 2010 19:29:48 +0000 (19:29 +0000)] 
widl: Write pointers in write_typeformatstring_var using write_pointer_tfs.

Avoid duplicating the pointer writing code.