Huw Davies
81b2c9eb85
widl: Add support for the lcid parameter attribute.
2009-06-08 15:39:14 +02:00
Rob Shearman
12b23fa220
widl: Check the attributes applied to function declarations.
2009-03-23 14:22:23 +01:00
Rob Shearman
728a738a82
widl: Move type_basic_get_fc to typegen.c and rename it to get_basic_fc.
...
Move to using type_basic_get_type in other files where appropriate.
2009-03-09 12:14:35 +01:00
Rob Shearman
23673ca373
widl: Determine pointer fc at generation time instead of at parse time.
...
Avoid changing the details of a pointer once created.
Properly determine the pointer type for arrays.
2009-03-09 12:09:39 +01:00
Rob Shearman
13c3967522
widl: Move type_new_enum, type_new_struct, type_new_encapsulated_union and type_new_unencapsulated_union to typetree.c.
2009-03-05 18:39:02 +01:00
Rob Shearman
7c711d0736
widl: Allow enum and union tags to be used without being defined.
2009-03-05 18:39:02 +01:00
Rob Shearman
4866026d7f
widl: Move the pointer referent, array element, function return type and interface inheritance properties from type_t to details structures for the appropriate types.
2009-03-05 18:39:02 +01:00
Rob Shearman
277e0617d5
widl: Store the abstract identifier of the type in type object instead of an NDR format character.
2009-03-05 18:39:02 +01:00
Rob Shearman
b7dd838136
widl: Remove the single keyword and type.
...
It isn't valid in MIDL or the FreeDCE IDL compiler, nor does it appear
in the DCE/RPC or C99 specs.
2009-03-05 18:39:02 +01:00
Rob Shearman
319a7a102e
widl: Implement a more abstract way of representing basic types.
2009-03-05 18:38:45 +01:00
Rob Shearman
7e08ff27c2
widl: Move declarray property to array_details.
...
Invert the property since an array being declared as a pointer is more
surprising than an array being declared as an array.
Provide an accessor, type_array_is_decl_as_ptr.
2009-03-05 16:34:00 +01:00
Rob Shearman
f27261e525
widl: Only classify top-level pointers as ref pointers if they don't have any other pointer attributes.
2009-02-25 11:54:31 +01:00
Rob Shearman
a93f531c21
widl: Ignore pointer attributes applied to interface pointers.
...
Print a warning if a pointer attribute is specified since the
generated code won't do what the developer expects.
2009-02-25 11:54:26 +01:00
Rob Shearman
2c6e611c8a
widl: Add typegen_detect_type and use it.
...
Add typegen_detect_type for detecting types useful during
client/server/proxy code generation.
2009-02-23 15:25:57 +01:00
Rob Shearman
0f7f7922ba
widl: Use type_get_type to determine the types of types during parsing and checking.
2009-02-23 15:25:44 +01:00
Rob Shearman
fb934347b4
widl: Use type_get_type to determine the types during statement enumeration.
2009-02-23 15:25:20 +01:00
Rob Shearman
8f87eddd39
widl: Only duplicate a type if absolutely necessary.
...
Document how much of hack duplicating a type in order to change its
pointer type is.
2009-02-16 15:35:14 +01:00
Michael Stefaniuc
2b066327ec
tools: Remove unused alloca.h include.
2009-02-13 13:00:02 +01:00
Alexandre Julliard
ef6971da40
widl: Replace unsigned long and size_t by unsigned int where appropriate.
2009-02-06 14:54:03 +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
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
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
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
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
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
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
b4b8a342d7
widl: Add support for attributes on enum, struct and union definitions.
2008-10-10 12:54:05 +02:00
Dan Hipschman
790e6dcd29
widl: Honor typedef pointer attributes.
2008-08-18 14:34:10 +02:00
Rob Shearman
90d633cdd1
widl: Remove some unnecessary calls to duptype.
2008-07-07 12:11:23 +02:00
Rob Shearman
ed0c013849
widl: Rename find_type_helper, find_type and find_type2 to find_type, find_type_error and find_type_error2 respectively.
2008-07-07 12:11:23 +02:00
Dan Hipschman
d87bc0520f
widl: Factor a small part of the grammar.
2008-07-02 11:41:31 +02:00
Dan Hipschman
6725c5d756
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.
2008-07-02 11:40:50 +02:00