Alexandre Julliard
d02f9d1804
widl: We need an offset after the correlation descriptor for unencapsulated unions.
2009-01-23 16:47:51 +01:00
Austin English
e5418e194a
widl: Fix a compiler warning.
2009-01-20 12:30:50 +01:00
Rob Shearman
28ee1ee90f
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.
2009-01-19 13:36:26 +01:00
Rob Shearman
bdb1321544
widl: Add a new function, type_alias_get_aliasee to wrap the retrieval of the type that the alias aliases.
2009-01-19 13:36:26 +01:00
Francois Gouget
a17f48219a
widl: Add a trailing '\n' to an error() message.
2009-01-14 14:52:21 +01:00
Michael Karcher
1c56d293f0
widl: Dereference operator in expr works on any declared pointer.
2009-01-12 16:53:18 +01:00
Michael Karcher
f80e4aa9d2
widl: Don't forget conformance info on [iid_is] void pointers.
2009-01-12 16:53:18 +01:00
Michael Karcher
8092e85ece
widl: Fix handling of [local] functions without [call_as].
2009-01-12 16:53:18 +01:00
Michael Stefaniuc
9192297345
widl: Move "inline" right after the storage class specifier.
2009-01-10 17:43:11 +01:00
Michael Karcher
656de48e4e
widl: Write struct fields as signed fields.
2009-01-08 14:11:35 +01:00
Michael Karcher
5f7886925d
widl: Make write_base_type take a format char instead of a type desc ptr.
2009-01-08 14:05:00 +01:00
Rob Shearman
1d8dbeff9a
widl: Make the case of messages output by warning and error functions consistent.
...
Standardise on lower case "warning" and "error", since they match the
case of what gcc prints.
2009-01-07 14:41:31 +01:00
Rob Shearman
77228b52e6
widl: Determine the type of an array entirely at code generation time instead of at parse time.
...
Previously, this was done partially (for fixed array types only).
2009-01-07 12:27:14 +01:00
Rob Shearman
8a976a7d78
widl: Replace uses of get_func_return_type with type_function_get_rettype.
...
Also replace direct accesses into the type structure to get the return
type of a function with the same function.
2009-01-06 14:36:25 +01:00
Rob Shearman
9b139018cf
widl: Add new function, type_iface_get_stmts.
...
Use it to retrieve statements contained in interface types.
2009-01-06 12:58:41 +01:00
Rob Shearman
8fc59d0ead
widl: Add a new function, type_iface_get_inherit.
...
Use it for retrieving the parent interface for interfaces.
2009-01-06 12:58:33 +01:00
Rob Shearman
67ac03ae4e
widl: Add a new function, type_pointer_get_ref.
...
Use it for retrieving the type that a pointer refers to.
2009-01-06 12:58:25 +01:00
Rob Shearman
2b87d269e1
widl: Add a new function, type_array_get_element.
...
Use it whenever retrieving the element type of an array.
2009-01-06 12:58:13 +01:00
Rob Shearman
8a42bc1f7b
widl: Move the ifaces field of the type_t structure to coclass details.
2009-01-06 12:58:01 +01:00
Rob Shearman
83b1f08117
widl: Add function for getting the interfaces defined by a coclass type.
...
Split out the defining of coclass types in the parser into a function.
2009-01-06 12:57:56 +01:00
Rob Shearman
1f519e17cc
widl: Don't store typelib kind information in the type structure.
...
It can trivially be derived from the type field now.
2009-01-06 12:57:31 +01:00
Rob Shearman
64520ecdc7
widl: Move creation of module type into a separate function, type_new_module and give it a special FC type.
2009-01-06 12:57:15 +01:00
Rob Shearman
8b326c4ff8
widl: Move duptype and alias to parser.y.
...
Make duptype static and rename alias to type_new_alias.
2009-01-06 12:57:02 +01:00
Rob Shearman
cb8d3322be
widl: Add new type_is_alias and type_get_real_type helper functions.
...
Use type_is_alias to replace cumbersome "type->kind == TKIND_ALIAS" expressions.
Use type_get_real_type to simplify some code.
2009-01-06 12:56:51 +01:00
Rob Shearman
200ec53835
widl: Access array type properties through accessors instead of getting them directly.
...
Store array type properties in the details union to save a bit of
memory and to make the general properties more obvious.
2009-01-06 12:56:33 +01:00
Rob Shearman
901a42b7f9
widl: Move funcs and stmts fields from type_t structure to module_details and function_details.
2009-01-06 12:56:15 +01:00
Rob Shearman
b1f8560ae0
widl: Do the consistency checks on interfaces after parsing is complete.
2009-01-06 12:53:49 +01:00
Rob Shearman
d2c4ff2305
widl: Add aliased types to the typelib for statements in the library block if the typedef itself doesn't need to be added.
...
Otherwise, the order of types in the typelib will be wrong or types
will be missing.
2009-01-03 14:55:31 +01:00
Rob Shearman
10a422ae14
widl: Use is_string_type instead of is_attr(..., ATTR_STRING) for detecting strings.
...
Detecting strings is a bit harder than just looking for the string
attribute, so make sure to use the function which has the purpose of
doing just that.
Fixes compilation of generated server/proxy code when a parameter has
both the [out] and [string] attributes.
2009-01-02 14:27:43 +01:00
Michael Karcher
2fe1f36793
widl: Recurse search for need of delegation.
...
If any ancestor of an interface needs delegation, the interface itself
has holes in the vtables and thus needs delegation, too.
2009-01-02 12:53:20 +01:00
Rob Shearman
36c03f6a94
widl: Remove duplicate pointer handling code in get_struct_type.
...
Only make the structure complex if there is an interface pointer, not
if there is a pointer to a union or complex struct since these are
handled perfectly well by the pointer marshalling code.
Fix the detection of structures with ref-pointers or pointers in 64-bit code.
2008-12-31 12:35:49 +01:00
Rob Shearman
c6e7609b01
widl: Don't add NULL pointer checks in generated code for user types.
2008-12-31 12:30:40 +01:00
Rob Shearman
6b955b514d
widl: Generate header files from the parse tree instead of using hooks in the parser.
2008-12-29 14:54:34 +01:00
Rob Shearman
bf5a9cb61e
widl: Write the local stubs file based on the parsed list of statements, rather than using hooks in the parser code.
2008-12-29 14:47:03 +01:00
Rob Shearman
7d7dd182c1
widl: Write the generated file containing IID, DIID, CLSID and LIBID data based on the parsed list of statements instead of using hooks in the parser code.
2008-12-29 14:46:41 +01:00
Rob Shearman
5223d04a7c
widl: Write the typelib based on the statement list generated in the typelib_t object instead of using hooks in the parser code.
2008-12-29 14:46:27 +01:00
Rob Shearman
1a71479fbd
widl: Create a separate type_t object for each structure declaration or defintion.
...
Set the details of the structure to the previously defined version if
available, or add it to a list of incomplete types otherwise. Only set
the defined flag when the structure is actually defined in the IDL
file so that the type is written out in the exact order that it is
mentioned in the file.
2008-12-29 14:46:02 +01:00
Rob Shearman
efdd020514
widl: Don't create a temporary variable in the t_ident rule.
...
The identifier doesn't have any properties of a variable and we only
use it for holding the name before it is freed.
Use get_type instead of get_typev in the type_new_* functions and get
rid of get_typev.
2008-12-29 14:45:28 +01:00
Rob Shearman
213f32744f
widl: Store the type-specific information in a union in the type_t structure.
...
Use pointers for the information for structures, enumerations,
functions and interfaces so that we can determine whether or not the
type has been defined yet and to enable more information to be stored.
2008-12-29 14:45:16 +01:00
Rob Shearman
04a22cc412
widl: Hide the details of where arguments, fields, values and cases are stored in the type_t structure for functions, structures, enums and unions.
2008-12-29 14:42:47 +01:00
Rob Shearman
fbffe4a229
widl: Follow aliases in check_remoting_fields so that the fields for the type are correctly enumerated.
2008-12-29 14:42:18 +01:00
Rob Shearman
2e0aefc1fd
widl: Structures and arrays with pointers should be complex when generating code for 64-bit platforms.
...
The non-complex variants depend on the wire size of the
structure/array matching the buffer size, but this no longer applies
when pointers are 8 bytes instead of 4.
2008-12-27 20:23:19 +01:00
Alexandre Julliard
53626dbd93
widl: Add support for generating 32-bit and/or 64-bit code for proxies/clients/servers.
2008-12-26 17:22:25 +01:00
Alexandre Julliard
b1ab7d88b3
widl: Add --win32/--win64 options to select the type of code generated.
2008-12-26 17:21:12 +01:00
Alexandre Julliard
9ca1382eae
widl: Store the size of a pointer in a variable instead of hardcoding the value of the host compiler.
2008-12-26 17:20:53 +01:00
Alexandre Julliard
a011f0cd5b
widl: Move determination of the exact type of structures and array to the code generation phase.
...
The exact type can depend on the size of the type in memory, and that
can vary depending on whether we are generating 32-bit or 64-bit code.
2008-12-26 17:16:06 +01:00
Alexandre Julliard
34613835a7
widl: Use ULONG_PTR instead of unsigned long for pointer casts in generated code.
2008-12-15 20:08:39 +01:00
Alexandre Julliard
014dcb81e8
widl: Use local functions where possible instead of STUB_FORWARDING_FUNCTION in stub vtables.
2008-12-08 16:05:38 +01:00
Andrew Talbot
d7f9d92b47
widl: Remove unneeded address-of operators from function names.
2008-12-08 11:27:53 +01:00
Andrew Talbot
e05b8aa301
widl: Remove unneeded address-of operators from array names.
2008-12-08 11:27:50 +01:00