Nikolay Sivov
cbf55d8251
widl: Uuid attribute is allowed for 'struct'.
2014-01-28 10:52:09 +01:00
Alexandre Julliard
cc02e15220
widl: Add support for #pragma directives.
2013-11-04 17:41:11 +01:00
Jacek Caban
7e4462e28e
widl: Generate names for imported nameless typedefs.
2013-08-29 19:56:18 +02:00
Kai Tietz
f05853b28a
widl: Add async_uuid attribute base support in parser.
2013-08-19 12:53:19 +02:00
Kai Tietz
da282872ff
widl: Allow version-attribute on type and enum.
2013-08-19 12:53:18 +02:00
Kai Tietz
f58353ecb6
widl: Allow inputsync-attribute on functions.
2013-08-19 12:53:17 +02:00
Kai Tietz
94c94260ea
widl: Allow hidden-attribute on type.
2013-08-19 12:53:16 +02:00
Kai Tietz
0d4f6bf258
widl: Allow hexadecimal argument for version-attribute.
2013-08-19 12:53:15 +02:00
Kai Tietz
60beb40cb7
widl: Handle default value for public vs hidden attribute.
2013-08-19 12:53:14 +02:00
Kai Tietz
d8318121a2
widl: Allow attributes before and after typedef-keyword.
2013-08-19 12:53:13 +02:00
Kai Tietz
499f05433a
widl: Add RT's namespace keyword to scanner, and parser.
2013-08-19 12:53:12 +02:00
Alexandre Julliard
bda5a2ffb8
widl: Remove non-bison compatibility code.
2013-08-01 12:04:24 +02:00
Jacek Caban
ed50ce5efe
widl: Allow shadowing imported types with typedef.
2013-02-26 18:18:31 +01:00
Piotr Caban
3d9454bc8f
widl: Make it possible to set typelib resource id with id attribute.
2013-01-18 13:29:09 +01:00
Alexandre Julliard
756d33ddae
widl: Print large enum constants in hex.
2012-11-23 18:06:07 +01:00
Jacek Caban
5cb75c525f
widl: Fail with error on an attempt to inherit interface from itself.
2012-08-29 11:46:24 +02:00
Jacek Caban
76693d52c7
widl: Added support for nameless structs and unions.
2012-05-14 10:29:40 +02:00
Alexandre Julliard
c31948a775
widl: Make the function return value a variable.
2011-09-17 16:09:47 +02:00
Alexandre Julliard
b568287eef
widl: Add support for generating typelibs directly in resource format.
2011-08-01 21:38:56 +02:00
Jacek Caban
f8c517978b
widl: Use proper calling convention attributes.
2011-07-07 17:32:12 +02:00
Alexandre Julliard
bcca410733
widl: Allow unsized in,out string parameters.
2011-06-14 12:23:32 +02:00
Alexandre Julliard
0f8b64a57b
widl: Add a more generic way of determining the type of handle for a function.
2011-05-31 18:32:58 +02:00
Alexandre Julliard
21cbdaa1eb
widl: Support using custom handle types with the implicit_handle attribute.
2011-05-31 18:32:58 +02:00
Alexandre Julliard
968c8688c4
widl: Array dimensions have to be constants.
2011-05-28 13:39:18 +02:00
Alexandre Julliard
56e65b4534
widl: Allow using fixed size arrays as strings.
2011-05-25 19:34:26 +02:00
Henri Verbeet
7421bb0b61
widl: Support forward type declarations.
2011-01-28 11:59:04 +01:00
Alexandre Julliard
e5f65edfc9
widl: Allow specifying a version for a coclass independently of its typelib version.
2010-12-22 15:51:29 +01:00
Alexandre Julliard
3991b05746
widl: Add progid, threading and vi_progid attributes for coclasses.
...
This is a Wine extension, modelled after the corresponding attributes
supported by Visual C++.
2010-12-02 13:14:50 +01:00
Alexandre Julliard
ce3abe8c0c
widl: Add support for generating a .rgs registration script for the defined interfaces.
2010-11-27 13:29:13 +01:00
Alexandre Julliard
537773fbf4
widl: Add some more attribute keywords.
2010-10-21 21:23:36 +02:00
Alexandre Julliard
c6668089a4
widl: Set the default calling convention at header generation time, not at parsing time.
2010-08-27 13:52:09 +02:00
Alexandre Julliard
7d2869457f
widl: Fix parsing of function calling conventions.
2010-08-27 13:49:56 +02:00
Alexandre Julliard
cb6a225481
widl: Add a type_memsize_and_alignment function to make it explicit where the alignment is truly needed.
2010-04-05 20:06:22 +02:00
Alexandre Julliard
a83563aa40
widl: Long constants must be 32-bit on all platforms.
2010-03-26 11:42:28 +01:00
Rob Shearman
979bdf28b6
widl: Remove func_t type.
...
It was just a simple indirection to get to a var_t, so just replace
all uses of it with the latter.
2010-03-23 17:28:22 +01:00
Rob Shearman
a3f649f730
widl: Issue an error if an out parameter is a conformant string.
2010-03-23 17:28:14 +01:00
Rob Shearman
361a39fff3
widl: Issue an error if a context handle variable is declared outside of a function.
2010-03-23 17:28:02 +01:00
Rob Shearman
50534b87d0
widl: Fix crash when trying to declare a fixed size array with a size_is attribute.
...
In this case type_array_get_conformance will return NULL. The code
here is actually replacing an existing array with an EXPR_VOID
conformance with the specified conformance, so issue an error if
type_array_get_conformance returns NULL or the conformance has already
been defined.
2010-03-23 17:27:58 +01:00
Rob Shearman
df853f8ed2
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.
2010-03-16 11:36:41 +01:00
Gerald Pfeifer
844e22093e
widl: Avoid two warnings.
2010-03-01 14:28:49 +01:00
Rob Shearman
d9b83e8bb2
widl: Add support for character constants in expressions.
2010-01-19 12:43:31 +01:00
Rob Shearman
6ed98b16a1
widl: Detect interfaces that inherit from another interface as objects.
2009-11-29 16:37:07 +01:00
Francois Gouget
61d0d121d0
widl: Add a trailing '\n' to an error_loc() call.
2009-11-16 12:43:06 +01:00
Rob Shearman
0228008bb8
widl: Allow pointers, type-qualifiers and other more complicated constructions in sizeof and cast expressions.
2009-11-09 20:42:57 +01:00
Rob Shearman
97d5f3401d
widl: Add support for varargs functions.
2009-11-09 20:42:27 +01:00
Rob Shearman
cdec0fe485
widl: Add support for bit-fields in non-remote structures.
2009-11-09 20:42:00 +01:00
Rob Shearman
4339f9edfb
widl: Implement __int3264 keyword.
2009-11-09 20:36:19 +01:00
Rob Shearman
4383d47ef4
widl: Rename set_type to declare_var.
...
Make it return the var_t object rather than making the callers dig it
out, and make it take the attributes list so that callers don't have
to set it.
2009-11-09 20:35:56 +01:00
Rob Shearman
3885dd778a
widl: Check for [string] attribute being applied when the elements are ranged.
...
The range will not be verified in and misconception could turn into a
security problem.
Move [string] attribute validation from reg_typedefs to set_type.
2009-11-09 20:35:13 +01:00
Rob Shearman
2b3659f326
widl: Implement [range] attribute.
2009-11-09 20:34:17 +01:00
Rob Shearman
c367624534
widl: Enhance the IDL grammar to support unnamed arguments to functions.
2009-11-09 20:34:11 +01:00
Huw Davies
ab32b3df4d
widl: Add support for parsing the annotation attribute.
2009-10-26 14:05:29 +01:00
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