Commit Graph
161 Commits
Author SHA1 Message Date
Christoph von Wittich 2e3fc85b22 [WIDL]
sync widl with wine 1.1.41

svn path=/trunk/; revision=46294
2010-03-21 12:47:24 +00:00
Christoph von Wittich feebaff19f [WIDL]
sync widl to wine 1.1.40

svn path=/trunk/; revision=45931
2010-03-06 12:53:26 +00:00
Aleksey Bragin 7473d1aab3 [WIDL]
- Sync to Wine-1.1.39

svn path=/trunk/; revision=45833
2010-03-04 13:46:14 +00:00
Aleksey Bragin 5040fe13f1 [WIDL]
- Update widl to Wine-1.1.33.

svn path=/trunk/; revision=44284
2009-11-24 22:42:40 +00:00
Christoph von Wittich d3b074aa2c sync widl to wine 1.1.32
svn path=/trunk/; revision=43808
2009-10-28 11:28:26 +00:00
Dmitry Gorbachev 145fbbd116 - Update address of Free Software Foundation.
- Update obsolete LGPL v2 to LGPL v2.1.

svn path=/trunk/; revision=43790
2009-10-27 10:34:16 +00:00
Christoph von Wittich 40ee8ac836 sync widl to wine 1.1.31
svn path=/trunk/; revision=43628
2009-10-19 21:30:54 +00:00
Christoph von Wittich 898e09db4d sync widl with wine 1.1.28
svn path=/trunk/; revision=42859
2009-08-22 17:21:33 +00:00
Christoph von Wittich 4c4e558887 sync widl to wine 1.1.27
svn path=/trunk/; revision=42510
2009-08-08 12:40:21 +00:00
Aleksey Bragin e3ff5fffdc - Sync WIDL and ole32 with Wine-1.1.23, w/o syncing rpcrt4. Credits go to Christoph for helping out with this sync. Tested with rpcrt4_winetests and MS Office 2003 setup.
svn path=/trunk/; revision=42480
2009-08-07 20:15:12 +00:00
Christoph von Wittich 51a928f1de revert 37001 (Initialize _RetVal properly in order to avoid compiler warnings) as we have PSEH2 now and don't suffer from this gcc bug anymore
svn path=/trunk/; revision=39440
2009-02-06 13:33:57 +00:00
Aleksey Bragin bb2d6f3675 Rob Shearman <[email protected]>
widl: Add a new function, type_alias_get_aliasee to wrap the retrieval of the type that the alias aliases.

Rob Shearman <[email protected]> 
widl: Add new type_get_type and type_get_real_type_type functions.
Use these to implement a few helper functions. Change the type verification in type accessor functions to use these new functions.

Austin English <[email protected]>
widl: Fix a compiler warning.

Alexandre Julliard <[email protected]>
widl: We need an offset after the correlation descriptor for unencapsulated unions.

svn path=/trunk/; revision=39170
2009-01-28 10:41:01 +00:00
Stefan Ginsberg bb0998a443 - Sorry, this broke build on certain Linux hosts
svn path=/trunk/; revision=38957
2009-01-19 22:19:00 +00:00
Stefan Ginsberg f233dab1ee - Remove unnecessary allowwarnings="true"
svn path=/trunk/; revision=38948
2009-01-19 18:08:28 +00:00
Aleksey Bragin d95bdfc632 - Sync widl + rpcrt4 with Wine.
svn path=/trunk/; revision=38936
2009-01-19 12:24:52 +00:00
Christoph von Wittich 076028efe9 warning fixes
svn path=/trunk/; revision=38884
2009-01-18 12:08:55 +00:00
Christoph von Wittich c58b26652e reapply 36982
WIDL: Enable the use of scalar types (non-pointer types) as custom binding handles.

svn path=/trunk/; revision=38791
2009-01-16 15:16:09 +00:00
KJK::Hyperion 936851e20d Sync widl, comcat, ole32, oleaut32 and rpcrt4 to wine 1.1.12
widl can now automatically generate boilerplate code for DLLs hosting RPC proxies (and ole32 and oleaut32 now use this feature): invoke the generation automatically from rbuild rules for rpcproxy modules

svn path=/trunk/; revision=38774
2009-01-15 17:52:35 +00:00
Christoph von Wittich 3fc8d752a8 -Rob Shearman <robertshearman at gmail.com> Thu Sep 18 2008
widl: Don't automatically add DUMMYUNIONNAME and DUMMYSTRUCTNAME names to anonymous unions and structs.

-Rob Shearman <robertshearman at gmail.com> Thu Sep 18 2008
include: Add explicit DUMMYUNIONNAME and DUMMYSTRUCTNAME names to anonymous unions in IDL files.

svn path=/trunk/; revision=38609
2009-01-06 17:52:24 +00:00
Christoph von Wittich 76f5148d89 -Vincent Povirk <madewokherd+d41d at gmail.com> Thu Dec 4 2008
widl: Fix string format warning.

-Andrew Talbot <andrew.talbot at talbotville.com> Sat Dec 6 2008
widl: Remove unneeded address-of operators from array names.

svn path=/trunk/; revision=38602
2009-01-06 07:19:59 +00:00
Christoph von Wittich 6e92d826f0 - Rob Shearman <robertshearman at gmail.com> Sun Nov 30
widl: Fix optimisation for writing out ref pointers to simple structs and base types.

svn path=/trunk/; revision=38601
2009-01-06 07:09:07 +00:00
Christoph von Wittich 2a6585478f -Rob Shearman <robertshearman at gmail.com> Sun Nov 30 2008
widl: Output the correct buffer size required for parameters whose sizes are known at type-generation time.

svn path=/trunk/; revision=38600
2009-01-06 06:41:21 +00:00
Christoph von Wittich 4f4e13929b -Dmitry Timoshkov <dmitry <at> codeweavers.com> Mon Nov 10 2008
widl: Make the generated string pointers const as well.

-Alexandre Julliard <julliard <at> winehq.org> Tue Nov 25 2008
widl: Make sure format strings for structure and union types are only output once.

svn path=/trunk/; revision=38599
2009-01-06 06:16:55 +00:00
Christoph von Wittich 072a17a70e - Austin English <austinenglish <at> gmail.com> Tue, 9 Sep 2008
widl: remove unreached code (Smatch)

- Rob Shearman <robertshearman <at> gmail.com> Wed Sep 10 2008
widl: Fix the writing typedefs to dispinterfaces and pointers to interfaces.

- Rob Shearman <robertshearman <at> gmail.com> Wed Sep 10 2008
widl: Remove redundant code.

svn path=/trunk/; revision=38588
2009-01-05 18:17:35 +00:00
Jeffrey Morlan 5c760c2d22 widl: Don't assume that host void* is the same size as target void*
svn path=/trunk/; revision=38212
2008-12-21 00:43:56 +00:00
Eric Kohl 7366e052b4 Sync to wine-1.1.4:
- Rob Shearman <[email protected]> Tue, 26 Aug 2008
widl: Raise RPC_X_SS_IN_NULL_CONTEXT exception for NULL in-only context handles instead of RPC_X_NULL_REF_PTR.

Based on a patch by Michael Martin.

- Alexandre Julliard <[email protected]> Sat, 30 Aug 2008
widl: Replace write_name() by get_name() to make the code more readable.

- Dan Hipschman <[email protected]> Tue, 2 Sep 2008
widl: Output NULL for inherited methods in the vtbl.

svn path=/trunk/; revision=37862
2008-12-04 21:22:42 +00:00
Eric Kohl 599818849a Sync to wine-1.1.3:
- Dan Hipschman <[email protected]> Thu, 7 Aug 2008
widl: Honor typedef pointer attributes.

svn path=/trunk/; revision=37860
2008-12-04 20:20:08 +00:00
Eric Kohl f12d11b4f7 Sync to wine-1.1.1 (Patch 10 of 10):
- Alexandre Julliard <[email protected]> Mon, 7 Jul 2008
Add noinput directive to all lex files to avoid a compiler warning.

svn path=/trunk/; revision=37859
2008-12-04 19:52:55 +00:00
Eric Kohl 663337847e Sync to wine-1.1.1 (Patch 9 of 10):
- Alexandre Julliard <[email protected]> Mon, 7 Jul 2008
widl: Fix a couple of uninitialized variable compiler warnings.

svn path=/trunk/; revision=37858
2008-12-04 19:37:53 +00:00
Eric Kohl 4a6ded56dd Sync to wine-1.1.1 (Patch 8 of 10):
- Rob Shearman <[email protected]> Fri, 4 Jul 2008
widl: Remove some unnecessary calls to duptype.

svn path=/trunk/; revision=37814
2008-12-02 21:08:02 +00:00
Eric Kohl 9fcfc6eb1e Sync to wine-1.1.1 (Patch 7 of 10):
- Rob Shearman <[email protected]> Fri, 4 Jul 2008
widl: Rename find_type_helper, find_type and find_type2 to find_type, find_type_error and find_type_error2 respectively.

svn path=/trunk/; revision=37813
2008-12-02 20:45:09 +00:00
Colin Finck 48068dfdd4 Revert r37802, which reverted r37801, which was previously reverted in r37477 reverting r37476.
In other words: Reapply ekohl's widl change part 4, as the Release slave should build it properly now.

svn path=/trunk/; revision=37812
2008-12-02 19:17:32 +00:00
Eric Kohl 371bfcc3b2 Revert 37801 because it still breaks the release build.
svn path=/trunk/; revision=37802
2008-12-01 20:38:24 +00:00
Eric Kohl 4b639a0b94 Sync to wine-1.1.1 (Patch 4 of 10):
ATTENTION: You MUST run "clean" before building ReactOS, otherwise WIDL will crash when it is run.

- Dan Hipschman <[email protected]> Tue, 1 Jul 2008
widl: Implement type redefinition checks.

This allows widl to catch type redefinitions and report an error, like MIDL.
However, this does a better job than MIDL since it also reports the location of the originial definition, like GCC.

CREDITS: Thanks to Christoph and Martin von Wittich for updating the Release-Buildslave. This patch should now build on both Buildslaves.

svn path=/trunk/; revision=37801
2008-12-01 20:33:43 +00:00
Eric Kohl 62a7ad910e SySync to wine-1.1.1 (Patch 6 of 10):
- Rob Shearman <[email protected]> Thu, 3 Jul 2008
widl: Consolidate top-level parameter conformance/variance expression writing into a separate function.

Descend through as many pointer types as necessary to find the
fundamental type and determine whether it needs a top-level parameter
conformance/variance expression to be written.

Add support for writing top-level parameter conformance/variance
expressions for non-encapsulated unions.

svn path=/trunk/; revision=37491
2008-11-20 20:37:09 +00:00
Eric Kohl 783e8e1be3 SySync to wine-1.1.1 (Patch 5 of 10):
- Dan Hipschman <[email protected]> Tue, 1 Jul 2008
widl: Factor a small part of the grammar.

svn path=/trunk/; revision=37489
2008-11-20 20:21:33 +00:00
Eric Kohl 4bc0878195 Revert 37476 because it breaks the build bot.
svn path=/trunk/; revision=37477
2008-11-19 23:22:44 +00:00
Eric Kohl 75e18ffafa Sync to wine-1.1.1 (Patch 4 of 10):
ATTENTION: You MUST run "clean" before building ReactOS, otherwise WIDL will crash when it is run.

- Dan Hipschman <[email protected]> Tue, 1 Jul 2008
widl: Implement type redefinition checks.

This allows widl to catch type redefinitions and report an error, like MIDL.
However, this does a better job than MIDL since it also reports the location
of the originial definition, like GCC.

svn path=/trunk/; revision=37476
2008-11-19 23:13:05 +00:00
Eric Kohl 79b0c90fa8 Sync to wine-1.1.1 (Patch 3 of 10):
- Rob Shearman <[email protected]> Tue, 1 Jul 2008
widl: Check that the structure has been defined in check_remoting_args.

svn path=/trunk/; revision=37470
2008-11-19 21:44:03 +00:00
Eric Kohl df50518f1e Sync to wine-1.1.1 (Patch 2 of 10):
- Rob Shearman <[email protected]> Tue, 1 Jul 2008
widl: Increment the buffer offset by 8 for embedded pointers inside varying arrays in varying structures.

The 8 bytes are for the variance and offset and are added just before
the array, as seen in the marshalling code in rpcrt4. No offset needs
to be added for non-varying structures since the buffer mark is set
after the conformance in marshalled or unmarshalled.

svn path=/trunk/; revision=37467
2008-11-19 21:01:47 +00:00
Eric Kohl 5e41cc9ce8 Sync to wine-1.1.1 (Patch 1 of 10):
- Alexandre Julliard <[email protected]> Tue, 1 Jul 2008
widl: Add some support for unencapsulated unions that need a conformance descriptor.

svn path=/trunk/; revision=37466
2008-11-19 20:33:58 +00:00
Matthias Kupfer 5ae753abf9 revert to revision 37390
svn path=/trunk/; revision=37454
2008-11-19 12:00:23 +00:00
Eric Kohl 29ddbaa8c9 Revert 37416 because it does not build on all machines.
svn path=/trunk/; revision=37446
2008-11-18 18:51:13 +00:00
Eric Kohl 1bd1e3126a Sync to wine-1.1.1:
- Alexandre Julliard <[email protected]> Thu, 26 Jun 2008
widl: [default] is an allowed attribute for union fields.
(Note: This patch was already applied before in order not to break ReactOS.)

- Alexandre Julliard <[email protected]> Tue, 1 Jul 2008
widl: Add some support for unencapsulated unions that need a conformance descriptor.

- Rob Shearman <[email protected]> Tue, 1 Jul 2008
widl: Increment the buffer offset by 8 for embedded pointers inside varying arrays in varying structures.

The 8 bytes are for the variance and offset and are added just before the array, as seen in the marshalling code in rpcrt4. No offset needs to be added for non-varying structures since the buffer mark is set after the conformance in marshalled or unmarshalled.

- Rob Shearman <[email protected]> Tue, 1 Jul 2008
widl: Check that the structure has been defined in check_remoting_args.

- Dan Hipschman <[email protected]> Tue, 1 Jul 2008
widl: Implement type redefinition checks.

This allows widl to catch type redefinitions and report an error, like MIDL. However, this does a better job than MIDL since it also reports the location of the originial definition, like GCC.

- Dan Hipschman <[email protected]> Tue, 1 Jul 2008
widl: Factor a small part of the grammar.

- Rob Shearman <[email protected]> Thu, 3 Jul 2008
widl: Consolidate top-level parameter conformance/variance expression writing into a separate function.

Descend through as many pointer types as necessary to find the fundamental type and determine whether it needs a top-level parameter conformance/variance expression to be written. Add support for writing top-level parameter conformance/variance expressions for non-encapsulated unions.

- Rob Shearman <[email protected]> Fri, 4 Jul 2008
widl: Rename find_type_helper, find_type and find_type2 to find_type, find_type_error and find_type_error2 respectively.

- Rob Shearman <[email protected]> Fri, 4 Jul 2008
widl: Remove some unnecessary calls to duptype.

- Alexandre Julliard <[email protected]> Mon, 7 Jul 2008
widl: Fix a couple of uninitialized variable compiler warnings.

- Alexandre Julliard <[email protected]> Mon, 7 Jul 2008
Add noinput directive to all lex files to avoid a compiler warning.

Note: Two patches are missing because they implement code to generate MIDL-incompatible SEH support code. Unfortunately I think it is almost time to fork WIDL because later patches implement even more incompatibilities. :-(

svn path=/trunk/; revision=37416
2008-11-17 19:07:03 +00:00
Aleksey Bragin bc5c507d54 Daniel Zimmerman
- Fix random widl crashes when compiling on Vista x86.

Patch from Wine bugzilla: http://bugs.winehq.org/show_bug.cgi?id=16084 .

See issue #3877 for more details.

svn path=/trunk/; revision=37390
2008-11-16 16:24:23 +00:00
Eric Kohl e2eef76cbf Sync to wine-1.1.0:
- Simon Richter <[email protected]> Tue, 17 Jun 2008
widl: Write string lengths in host endianness.
Type libraries are currently parsed in host endianness, so byte arrays that are going to be interpreted as integers need to be written in the appropriate byte order.

- Rob Shearman <[email protected]> Fri, 20 Jun 2008
widl: Fix generation of the type format string for conformant-varying structures.
The conformance needs to be added on to the offset in the buffer so set this before calling each the writer of each class of pointer description in write_pointer_description. Pass the passed in offsets to buffer and memory to write_pointer_description_offsets in write_varying_array_pointer_descriptions.

- Rob Shearman <[email protected]> Mon, 23 Jun 2008
widl: Replace code to round up values and calculate padding with macros to improve readability.

- Rob Shearman <[email protected]> Mon, 23 Jun 2008
widl: Fix the embedded pointer offsets in generated code when the containing structure has padding.
Do so by calculating the alignment of members when iterating through the structures and adding it onto the buffer and memory offsets. Only call type_memsize once elsewhere in the embedded pointer processing functions since the return value will be the same from the second call.

- Rob Shearman <[email protected]> Mon, 23 Jun 2008
widl: Factor out the finding of a registered type to reduce code duplication.

- Rob Shearman <[email protected]> Mon, 23 Jun 2008
widl: Set the type of the type_t node constructured for dispinterfaces to RPC_FC_IP, like we do for interfaces.

- Rob Shearman <[email protected]> Mon, 23 Jun 2008
widl: Fix crash in find_array_or_string_in_struct if the structure or union has no fields or cases.
(Aleksey already applied this patch in rev37378)

- Rob Shearman <[email protected]> Mon, 23 Jun 2008
widl: Fix the types of enums with the v1_enum attribute applied.

- Rob Shearman <[email protected]> Mon, 23 Jun 2008
widl: Fix type_memsize to follow aliases so that the correct size is calculated.

- Rob Shearman <[email protected]> Mon, 23 Jun 2008
widl: Fix check_remoting_fields to enumerate the correct list of fields.

svn path=/trunk/; revision=37381
2008-11-15 21:17:09 +00:00
Eric Kohl c43e05155c Sync to wine-1.0-rc11:
- Francois Gouget <[email protected]> Tue, 6 May 2008
Add a comment warning when a table must be kept sorted for later use with bsearch().

- Francois Gouget <[email protected]> Tue, 6 May 2008
Assorted spelling fixes.

- Marcus Meissner <[email protected]> Tue, 6 May 2008
widl: Mark non-returning functions as noreturn.

svn path=/trunk/; revision=37380
2008-11-15 20:18:16 +00:00
Aleksey Bragin a1ba38503c Rob Shearman <[email protected]> Mon, 23 Jun 2008 21:28:56 +0000 (22:28 +0100)
widl: Fix crash in find_array_or_string_in_struct if the structure or union has no fields or cases.

http://source.winehq.org/git/wine.git/?a=commit;h=b3dde47ed760880e323222af9ec7ad30702dec7c

svn path=/trunk/; revision=37378
2008-11-15 18:37:15 +00:00
Eric Kohl b2736a8abb Sync to wine-0.9.61: Oooops, forgot to add these files!!
- Rob Shearman <[email protected]> Sun, 20 Apr 2008
widl: Stop looping in check_remoting_args when a context_handle or wire_marshal type is found as they are in effect fundamental types.

- Rob Shearman <[email protected]> Sun, 20 Apr 2008
widl: Check that fields in structures and unions referenced by non-local functions can be marshalled and that their attributes are consistent.


-Rob Shearman <[email protected]> Sun, 20 Apr 2008
widl: The implicit_handle attribute is allowed with a handle explicitly specified in the function parameters. In that case, that handle is used instead of the implicit handle. Fix the check for the explicit_handle attribute being specified without a handle being specified in the function parameters, even though issuing an error is wrong. (Thanks to Marcus Meissner & Coverity for spotting that the check didn't do what it was supposed to do.)

- Rob Shearman <[email protected]> Sun, 20 Apr 2008
widl: Automatically add "handle_t IDL_handle" parameter to functions with no explicit handle specified whose containing interface has the explicit_handle attribute.

- Rob Shearman <[email protected]> Sun, 20 Apr 2008
widl: Issue an error instead of crashing for dividing by zero in a constant expression.

- Rob Shearman <[email protected]> Sun, 20 Apr 2008
widl: Add support for "->" and "." operators in expressions.

- Rob Shearman <[email protected]> Sun, 20 Apr 2008
widl: Add support for arrays in expressions.

- Rob Shearman <[email protected]> Sun, 20 Apr 2008
widl: Add support for '%' operator in expressions.

- Rob Shearman <[email protected]> Tue, 22 Apr 2008
widl: Fix operator precedence in expressions.

- Rob Shearman <[email protected]> Tue, 22 Apr 2008
widl: Require a constant expression for case statements.

- Rob Shearman <[email protected]> Tue, 22 Apr 2008
widl: Add support for comparison, exclusive or, logical not and positive operators in expressions.

- Rob Shearman <[email protected]> Tue, 22 Apr 2008
widl: Remove EXPR_MEMBERPTR and implement it using EXPR_PPTR and EXPR_MEMBER instead.

- Rob Shearman <[email protected]> Tue, 22 Apr 2008
widl: Don't free input_name in pop_import as we keep pointers to it in the var_t type now.

- Rob Shearman <[email protected]> Tue, 22 Apr 2008
widl: Pass the actual type into check_remoting_fields and check_field_common instead of the type name.

- Rob Shearman <[email protected]> Tue, 22 Apr 2008
widl: Check that expressions resolve so that expressions in generated code will compile. Also check that expressions return the correct type for the attribute.

- Rob Shearman <[email protected]> Tue, 22 Apr 2008
widl: Move expression functions to a new file, expr.c.

- Rob Shearman <[email protected]> Tue, 22 Apr 2008
widl: Use expr_resolve_type to get the type of the identifier in write_conf_or_var_desc. Remove the conversion of pointer types into base types as this was only needed due to lack of proper type resolving.

- Rob Shearman <[email protected]> Tue, 22 Apr 2008
widl: Remove duplicated code in the form of the write_struct_expr function by enhancing write_expr to allow toplevel identifiers to be prefixed by a string, if specified.

- Rob Shearman <[email protected]> Thu, 24 Apr 2008
widl: Implement lcid property on library declarations.

- Rob Shearman <[email protected]> Thu, 24 Apr 2008
widl: Construct the pointer chain while parsing pointers, rather than storing a ptr_level. This method is more flexible and somewhat simpler.

- Rob Shearman <[email protected]> Thu, 24 Apr 2008
widl: Allow NULL to be used in expressions.

- Rob Shearman <[email protected]> Thu, 24 Apr 2008
widl: Create a list of statements in the whole IDL file, instead of just a list of interfaces.

- Rob Shearman <[email protected]> Thu, 24 Apr 2008
widl: Add typedef statements to the statement lists.

- Rob Shearman <[email protected]> Fri, 25 Apr 2008
widl: Consolidate most of the inner loop of reg_typedefs into set_type.

- Rob Shearman <[email protected]> Fri, 25 Apr 2008
widl: Rename pident to declarator and parse the array declarations as part of declarators. This allows arrays to be used in typedefs and const statements.

- Rob Shearman <[email protected]> Fri, 25 Apr 2008
widl: Make the rules for parsing fields in structures, encapsulated unions and non-encapsulated unions more strict. Move the rules in fields that handle empty union cases into separate union rules so that they can't erroneously be accepted for structures or other types of unions.

- Rob Shearman <[email protected]> Fri, 25 Apr 2008
widl: Add support for declaring multiple fields of a structure in one statement.

- Rob Shearman <[email protected]> Fri, 25 Apr 2008
widl: Add support for string literals and wide-string literals in expressions.

- Rob Shearman <[email protected]> Fri, 25 Apr 2008
widl: Create a statement object for import statements. Move the writing of include directives into the generated header into header.c.

- Rob Shearman <[email protected]> Fri, 25 Apr 2008
widl: Move the func_declarator rule entirely into direct_declarator.

- Rob Shearman <[email protected]> Sat, 26 Apr 2008
widl: Add typedefs to typelibs which have the public or uuid attributes, not any other attribute.

- Rob Shearman <[email protected]> Sat, 26 Apr 2008
widl: Support hex digits that use an uppercase 0X prefix.

- Rob Shearman <[email protected]> Sun, 27 Apr 2008
widl: Accept integer constant suffixes in the lexer.

- Rob Shearman <[email protected]> Tue, 29 Apr 2008
widl: Keep const attributes applied to pointers when writing out the type. Use an attribute to store the const qualifier for the pointer and type. Allow multiple type-qualifiers to be applied to a type by adding a declaration-specifier rule that encompasses type-qualifiers and types.

- Rob Shearman <[email protected]> Tue, 29 Apr 2008
widl: Add support for "inline" on function definitions. Fix applying calling convention to function type.

- Rob Shearman <[email protected]> Tue, 29 Apr 2008
widl: Make constdef and externdef take a declarator instead of an ident so that functions and arrays can be defined using the statements.

- Rob Shearman <[email protected]> Tue, 29 Apr 2008
widl: Allow pointer attributes to be applied to function pointers.

- Rob Shearman <[email protected]> Tue, 29 Apr 2008
widl: callback, code, comm_status and in_line are attribute names, not keywords.

- Rob Shearman <[email protected]> Wed, 30 Apr 2008
widl: Prepare for supporting storage classes in declaration statements. Return a decl_spec_t structure from decl_spec rules so that the storage
class and type qualifiers can both be returned.

- Rob Shearman <[email protected]> Wed, 30 Apr 2008
widl: Add the parsing of storage classes into declaration-specifiers. Support the static and register keywords. This consolidates externdef and constdef rules into one declaration rule.

- Rob Shearman <[email protected]> Thu, 1 May 2008
widl: Consolidate writing of COM and dispatch interfaces into one function to remove duplicated code. Split up the writing into start and end to eventually support the style MIDL uses where it writes declared types, etc. between the start and end of the interface. Make internal header functions take the file pointer to print to. Don't write interface IDs for non-object interfaces and always write handle declarations even if the interface has no methods, like MIDL does.

- Gerald Pfeifer <[email protected]> Fri, 2 May 2008
widl: Fix syntax to also work with older versions of bison.

svn path=/trunk/; revision=37314
2008-11-12 19:30:10 +00:00
Eric Kohl a591ac9fa5 Sync to wine-0.9.61:
- Rob Shearman <[email protected]> Sun, 20 Apr 2008
widl: Stop looping in check_remoting_args when a context_handle or wire_marshal type is found as they are in effect fundamental types.

- Rob Shearman <[email protected]> Sun, 20 Apr 2008
widl: Check that fields in structures and unions referenced by non-local functions can be marshalled and that their attributes are consistent.


-Rob Shearman <[email protected]> Sun, 20 Apr 2008
widl: The implicit_handle attribute is allowed with a handle explicitly specified in the function parameters. In that case, that handle is used instead of the implicit handle. Fix the check for the explicit_handle attribute being specified without a handle being specified in the function parameters, even though issuing an error is wrong. (Thanks to Marcus Meissner & Coverity for spotting that the check didn't do what it was supposed to do.)

- Rob Shearman <[email protected]> Sun, 20 Apr 2008
widl: Automatically add "handle_t IDL_handle" parameter to functions with no explicit handle specified whose containing interface has the explicit_handle attribute.

- Rob Shearman <[email protected]> Sun, 20 Apr 2008
widl: Issue an error instead of crashing for dividing by zero in a constant expression.

- Rob Shearman <[email protected]> Sun, 20 Apr 2008
widl: Add support for "->" and "." operators in expressions.

- Rob Shearman <[email protected]> Sun, 20 Apr 2008
widl: Add support for arrays in expressions.

- Rob Shearman <[email protected]> Sun, 20 Apr 2008
widl: Add support for '%' operator in expressions.

- Rob Shearman <[email protected]> Tue, 22 Apr 2008
widl: Fix operator precedence in expressions.

- Rob Shearman <[email protected]> Tue, 22 Apr 2008
widl: Require a constant expression for case statements.

- Rob Shearman <[email protected]> Tue, 22 Apr 2008
widl: Add support for comparison, exclusive or, logical not and positive operators in expressions.

- Rob Shearman <[email protected]> Tue, 22 Apr 2008
widl: Remove EXPR_MEMBERPTR and implement it using EXPR_PPTR and EXPR_MEMBER instead.

- Rob Shearman <[email protected]> Tue, 22 Apr 2008
widl: Don't free input_name in pop_import as we keep pointers to it in the var_t type now.

- Rob Shearman <[email protected]> Tue, 22 Apr 2008
widl: Pass the actual type into check_remoting_fields and check_field_common instead of the type name.

- Rob Shearman <[email protected]> Tue, 22 Apr 2008
widl: Check that expressions resolve so that expressions in generated code will compile. Also check that expressions return the correct type for the attribute.

- Rob Shearman <[email protected]> Tue, 22 Apr 2008
widl: Move expression functions to a new file, expr.c.

- Rob Shearman <[email protected]> Tue, 22 Apr 2008
widl: Use expr_resolve_type to get the type of the identifier in write_conf_or_var_desc. Remove the conversion of pointer types into base types as this was only needed due to lack of proper type resolving.

- Rob Shearman <[email protected]> Tue, 22 Apr 2008
widl: Remove duplicated code in the form of the write_struct_expr function by enhancing write_expr to allow toplevel identifiers to be prefixed by a string, if specified.

- Rob Shearman <[email protected]> Thu, 24 Apr 2008
widl: Implement lcid property on library declarations.

- Rob Shearman <[email protected]> Thu, 24 Apr 2008
widl: Construct the pointer chain while parsing pointers, rather than storing a ptr_level. This method is more flexible and somewhat simpler.

- Rob Shearman <[email protected]> Thu, 24 Apr 2008
widl: Allow NULL to be used in expressions.

- Rob Shearman <[email protected]> Thu, 24 Apr 2008
widl: Create a list of statements in the whole IDL file, instead of just a list of interfaces.

- Rob Shearman <[email protected]> Thu, 24 Apr 2008
widl: Add typedef statements to the statement lists.

- Rob Shearman <[email protected]> Fri, 25 Apr 2008
widl: Consolidate most of the inner loop of reg_typedefs into set_type.

- Rob Shearman <[email protected]> Fri, 25 Apr 2008
widl: Rename pident to declarator and parse the array declarations as part of declarators. This allows arrays to be used in typedefs and const statements.

- Rob Shearman <[email protected]> Fri, 25 Apr 2008
widl: Make the rules for parsing fields in structures, encapsulated unions and non-encapsulated unions more strict. Move the rules in fields that handle empty union cases into separate union rules so that they can't erroneously be accepted for structures or other types of unions.

- Rob Shearman <[email protected]> Fri, 25 Apr 2008
widl: Add support for declaring multiple fields of a structure in one statement.

- Rob Shearman <[email protected]> Fri, 25 Apr 2008
widl: Add support for string literals and wide-string literals in expressions.

- Rob Shearman <[email protected]> Fri, 25 Apr 2008
widl: Create a statement object for import statements. Move the writing of include directives into the generated header into header.c.

- Rob Shearman <[email protected]> Fri, 25 Apr 2008
widl: Move the func_declarator rule entirely into direct_declarator.

- Rob Shearman <[email protected]> Sat, 26 Apr 2008
widl: Add typedefs to typelibs which have the public or uuid attributes, not any other attribute.

- Rob Shearman <[email protected]> Sat, 26 Apr 2008
widl: Support hex digits that use an uppercase 0X prefix.

- Rob Shearman <[email protected]> Sun, 27 Apr 2008
widl: Accept integer constant suffixes in the lexer.

- Rob Shearman <[email protected]> Tue, 29 Apr 2008
widl: Keep const attributes applied to pointers when writing out the type. Use an attribute to store the const qualifier for the pointer and type. Allow multiple type-qualifiers to be applied to a type by adding a declaration-specifier rule that encompasses type-qualifiers and types.

- Rob Shearman <[email protected]> Tue, 29 Apr 2008
widl: Add support for "inline" on function definitions. Fix applying calling convention to function type.

- Rob Shearman <[email protected]> Tue, 29 Apr 2008
widl: Make constdef and externdef take a declarator instead of an ident so that functions and arrays can be defined using the statements.

- Rob Shearman <[email protected]> Tue, 29 Apr 2008
widl: Allow pointer attributes to be applied to function pointers.

- Rob Shearman <[email protected]> Tue, 29 Apr 2008
widl: callback, code, comm_status and in_line are attribute names, not keywords.

- Rob Shearman <[email protected]> Wed, 30 Apr 2008
widl: Prepare for supporting storage classes in declaration statements. Return a decl_spec_t structure from decl_spec rules so that the storage
class and type qualifiers can both be returned.

- Rob Shearman <[email protected]> Wed, 30 Apr 2008
widl: Add the parsing of storage classes into declaration-specifiers. Support the static and register keywords. This consolidates externdef and constdef rules into one declaration rule.

- Rob Shearman <[email protected]> Thu, 1 May 2008
widl: Consolidate writing of COM and dispatch interfaces into one function to remove duplicated code. Split up the writing into start and end to eventually support the style MIDL uses where it writes declared types, etc. between the start and end of the interface. Make internal header functions take the file pointer to print to. Don't write interface IDs for non-object interfaces and always write handle declarations even if the interface has no methods, like MIDL does.

- Gerald Pfeifer <[email protected]> Fri, 2 May 2008
widl: Fix syntax to also work with older versions of bison.

svn path=/trunk/; revision=37313
2008-11-12 19:26:25 +00:00