Rob Shearman
4f8f89e6bb
widl: Add support for "inline" on function definitions.
...
Fix applying calling convention to function type.
2008-04-30 11:31:21 +02:00
Rob Shearman
146ef11b77
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.
2008-04-30 11:30:55 +02:00
Rob Shearman
0cb73cef0b
widl: Accept integer constant suffixes in the lexer.
2008-04-28 13:28:16 +02:00
Rob Shearman
62a6475593
widl: Support hex digits that use an uppercase 0X prefix.
2008-04-28 13:28:16 +02:00
Rob Shearman
80be9df3a7
widl: Add typedefs to typelibs which have the public or uuid attributes, not any other attribute.
2008-04-28 13:28:16 +02:00
Rob Shearman
242a8a02f5
widl: Move the func_declarator rule entirely into direct_declarator.
2008-04-25 12:10:42 +02:00
Rob Shearman
66fa9a714e
widl: Create a statement object for import statements.
...
Move the writing of include directives into the generated header into
header.c.
2008-04-25 12:10:34 +02:00
Rob Shearman
33c891e694
widl: Add support for string literals and wide-string literals in expressions.
2008-04-25 12:10:24 +02:00
Rob Shearman
957dd4b160
widl: Add support for declaring multiple fields of a structure in one statement.
2008-04-25 12:10:15 +02:00
Rob Shearman
14dd441c5b
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.
2008-04-25 12:10:04 +02:00
Rob Shearman
21cd6865c8
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.
2008-04-25 12:09:56 +02:00
Rob Shearman
2f381f30a6
widl: Consolidate most of the inner loop of reg_typedefs into set_type.
2008-04-25 12:09:46 +02:00
Rob Shearman
1fcc2084e8
widl: Add typedef statements to the statement lists.
2008-04-24 22:32:47 +02:00
Rob Shearman
df0e38c067
widl: Create a list of statements in the whole IDL file, instead of just a list of interfaces.
2008-04-24 22:32:20 +02:00
Rob Shearman
58be89230e
widl: Allow NULL to be used in expressions.
2008-04-24 22:31:47 +02:00
Rob Shearman
ec81a78f01
widl: Construct the pointer chain while parsing pointers, rather than storing a ptr_level.
...
This method is more flexible and somewhat simpler.
2008-04-24 22:31:37 +02:00
Rob Shearman
02f5412a53
widl: Implement lcid property on library declarations.
2008-04-24 22:31:20 +02:00
Rob Shearman
1a0d28bf02
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.
2008-04-22 13:05:18 +02:00
Rob Shearman
39a1fa672a
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.
2008-04-22 13:05:04 +02:00
Rob Shearman
80ab2a7c6d
widl: Move expression functions to a new file, expr.c.
2008-04-22 13:04:58 +02:00
Rob Shearman
6244565df3
widl: Check that expressions resolve so that expressions in generated code will compile.
...
Also check that expressions return the correct type for the attribute.
2008-04-22 13:04:45 +02:00
Rob Shearman
b88d82a14b
widl: Pass the actual type into check_remoting_fields and check_field_common instead of the type name.
2008-04-22 13:04:31 +02:00
Rob Shearman
b81904b8ee
widl: Don't free input_name in pop_import as we keep pointers to it in the var_t type now.
2008-04-22 13:04:24 +02:00
Rob Shearman
95ac84e20b
widl: Remove EXPR_MEMBERPTR and implement it using EXPR_PPTR and EXPR_MEMBER instead.
2008-04-22 13:04:19 +02:00
Rob Shearman
cc3682cf12
widl: Add support for comparison, exclusive or, logical not and positive operators in expressions.
2008-04-22 13:04:03 +02:00
Rob Shearman
6f9020290b
widl: Require a constant expression for case statements.
2008-04-22 13:03:39 +02:00
Rob Shearman
b599d2596b
widl: Fix operator precedence in expressions.
2008-04-22 13:03:34 +02:00
Rob Shearman
ea9932557a
widl: Add support for '%' operator in expressions.
2008-04-21 13:36:19 +02:00
Rob Shearman
d27c7601e5
widl: Add support for arrays in expressions.
2008-04-21 13:36:19 +02:00
Rob Shearman
03d5017416
widl: Add support for "->" and "." operators in expressions.
2008-04-21 13:36:19 +02:00
Rob Shearman
efd10742ec
widl: Issue an error instead of crashing for dividing by zero in a constant expression.
2008-04-21 13:36:19 +02:00
Rob Shearman
c46fcfb356
widl: Automatically add "handle_t IDL_handle" parameter to functions with no explicit handle specified whose containing interface has the explicit_handle attribute.
2008-04-21 13:36:19 +02:00
Rob Shearman
c4ca32bbda
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.)
2008-04-21 13:36:19 +02:00
Rob Shearman
15612e60fd
widl: Check that fields in structures and unions referenced by non-local functions can be marshalled and that their attributes are consistent.
2008-04-21 13:36:19 +02:00
Rob Shearman
6e27e7840f
widl: Stop looping in check_remoting_args when a context_handle or wire_marshal type is found as they are in effect fundamental types.
2008-04-21 13:36:19 +02:00
Rob Shearman
4b56ff7238
widl: Change alls calls to error in the parser to error_loc so that line number information is printed.
2008-04-16 14:07:35 +02:00
Rob Shearman
2ac495c85d
widl: Add checking to arguments of non-local functions.
...
Check that out arguments have enough levels of indirection and that they
don't derive from void * or a function pointer.
2008-04-14 13:39:47 +02:00
Rob Shearman
0053599688
widl: Add functions to print an error or warning message using location information to enable these to be printed accurately when a check is done after an element is parsed.
...
Add location information to variable automatically, since this is will
be useful for type checking of arguments.
2008-04-14 13:39:42 +02:00
Rob Shearman
f728fe168b
widl: Write out TYPEFLAG, FUNCFLAG and VARFLAG flags for all attribute we currently parse.
...
Add FIXMEs for the remaining ones and remove the warning for
unimplemented attribute types since we now support all the attributes
that we parse.
2008-04-14 13:39:35 +02:00
Rob Shearman
56e2553eff
widl: Add support for the broadcast and idempotent operation attributes.
2008-04-14 13:39:28 +02:00
Rob Shearman
66b8574d8d
widl: Output a warning if duplicate attributes are specified.
2008-04-14 13:39:21 +02:00
Rob Shearman
aa20221771
widl: Check that attributes are applicable for libraries, modules, dispinterfaces and coclasses and otherwise issue an error.
2008-04-14 13:39:16 +02:00
Rob Shearman
fcc8a028d8
widl: The odl attribute is valid for dispinterfaces.
2008-04-14 13:39:08 +02:00
Rob Shearman
abdc08e013
widl: Make the attrs parameter passed to start_typelib const.
2008-04-14 13:39:02 +02:00
Rob Shearman
e9afe272be
widl: Check that attributes applied to typedefs and fields are applicable and issue an error otherwise.
2008-04-14 13:38:56 +02:00
Rob Shearman
5f39b41526
widl: Check that attributes applied to interfaces, functions and arguments are applicable and issue an error if not.
2008-04-14 13:38:48 +02:00
Rob Shearman
e4b0266b27
widl: Support non-default calling conventions for non-object functions.
2008-04-11 12:14:55 +02:00
Rob Shearman
5483ea9e87
widl: Support non-default calling conventions for object methods.
2008-04-11 12:14:52 +02:00
Dan Hipschman
976f570f61
widl: Fix a mistake in an ordered list (keywords).
2008-04-03 11:30:08 +02:00
Rob Shearman
f7f31150ee
widl: Turn on verbose errors, which gives a little more information in the case of a syntax error.
2008-04-02 19:54:08 +02:00
Rob Shearman
bfde2c2e79
widl: Fix the writing out of function pointers with more than one level of indirection.
2008-04-02 19:54:01 +02:00
Rob Shearman
5a378905be
widl: Add a newline between function prototypes for non-object interfaces.
2008-04-02 19:53:50 +02:00
Rob Shearman
35ba23bd48
widl: Support __fastcall and __pascal calling conventions.
...
Support the synonyms for these and existing calling conventions.
2008-04-02 19:53:42 +02:00
Rob Shearman
d97f3205ba
widl: Support parsing calling conventions for function identifiers.
...
Support automatically setting the calling convention to
STDMETHODCALLTYPE if it is part of an object interface.
Write out the calling convention in write_type_v.
2008-04-02 19:53:23 +02:00
Rob Shearman
6a0c5a4fe9
widl: Store function and function pointer types completely within type_t type.
2008-04-02 19:53:09 +02:00
Rob Shearman
a04b150839
widl: Add a function to get the return type of a parsed function.
...
This clarifies its use in code and makes it simpler to change the way
functions are parsed into types.
2008-04-02 19:52:49 +02:00
Rob Shearman
772f3af9f0
widl: Be more strict about where semicolons can appear in IDL files.
...
In particular, don't allow them after cpp_quote and without a statement.
Update the rules for importlib, library definition, dispinterface
definition, interface definition, coclass definition and module
definition to optionally allow a semicolon postfix.
Call pop_import from the parser instead of the lexer to ensure that
pop_import is only called after the last statement in the imported file
has been parsed.
2008-04-01 19:10:43 +02:00
Rob Shearman
a110cffd95
widl: Parse typedefs of function pointers.
2008-04-01 11:29:23 +02:00
Rob Shearman
f8ea9ec163
widl: Make sure that string types are always written out by write_string_tfs and not write_simple_pointer.
...
This is because write_string_tfs has support for the full range of
string types, write_simple_pointer doesn't have access to the var
attributes which are needed to properly detect strings, and
write_string_tfs sets the typestring offset to after the pointer is
written and write_remoting_arg depends on this.
2008-03-27 17:33:09 +01:00
Rob Shearman
f4a9619364
widl: Fix detection of non-pointer context handles.
...
is_ptr cannot be used because it follows the chain of types into the
type which has the context_handle attribute, which is typically "void *"
and so causes these context handles to be incorrectly detected as
context handles. Instead, we can use is_aliaschain_ptr to follow the
chain of aliases without following pointers and the absence of the
context_handle attribute indicates that it must be present on a type
after following a pointer.
2008-03-27 17:33:06 +01:00
Rob Shearman
59556de0c1
widl: Add support for generic binding handles.
2008-03-27 17:33:02 +01:00
Rob Shearman
8a0cb2b5c5
widl: Use is_string_type for detecting strings in write_typeformatstring_var to make it consistent with write_remoting_arg.
...
Fix the is_string_type function used for detecting strings by only
examining aliases instead of both aliases and pointers. This is due to
the requirement that pointers to strings be handled as pointers and so
not detected as strings.
2008-03-27 17:32:58 +01:00
Rob Shearman
4194daf108
widl: Support using context handles as the binding handle in client functions.
2008-03-27 11:42:36 +01:00
Dan Hipschman
2fa83d94c8
widl: Make structures with FC_ENUM16 fields complex.
...
Structures containing enum fields without the v1_enum attribute must be
treated as complex because of the range check and memory/wire size
differences. This includes a test which didn't pass before and now
passes on Wine and Windows.
2008-03-21 11:24:28 +01:00
Dan Hipschman
d37b1a4969
widl: Ignore libraries in imported IDL files.
2008-03-19 11:22:56 +01:00
Michael Stefaniuc
5c9d1223db
widl: Remove local variable shadowing in add_func_desc().
2008-03-12 11:59:12 +01:00
Alexandre Julliard
1dca65607b
widl: Avoid getopt constants that may not be defined.
2008-03-04 12:14:46 +01:00
Gerald Pfeifer
92015ee4ed
widl: Include <unistd.h> for prototype of unlink().
2008-02-25 11:54:16 +01:00
Dan Hipschman
2d7b1f18b1
widl: Allow is_string_type to work for typedef'd types.
2008-02-22 12:04:26 +01:00
Alexandre Julliard
41fbacefa1
Avoid the nounistd option that doesn't exist on older flex, define YY_NO_UNISTD_H instead.
2008-02-19 15:42:49 +01:00
Rob Shearman
878ea5d2e2
Add the nounistd option to all lex source files.
2008-02-19 13:39:25 +01:00
Rob Shearman
a5886607d0
widl: Guard the inclusion of unistd.h.
2008-02-15 11:06:25 +01:00
Rob Shearman
c233ba105e
widl: Remove unused headers.
2008-02-15 11:06:21 +01:00
Colin Finck
318e61535c
widl: Write the TLB file in binary mode, so the line endings won't be changed.
2008-02-08 11:01:09 +01:00
Colin Finck
0fae921727
widl: Support Windows paths in dup_basename and make_token.
2008-02-08 11:00:55 +01:00
Rob Shearman
661b01f922
widl: Output code for initialising and freeing full pointer translation tables.
2008-02-04 11:49:13 +01:00
Rob Shearman
454e489c2f
widl: Don't search for a import file name with a path in the include directories for compatibility with MIDL.
2008-02-04 11:49:07 +01:00
Jacek Caban
2118aeca16
widl: Ignore ATTR_LOCAL in create_msft_typeinfo.
2008-02-04 11:30:30 +01:00
Francois Gouget
d0794c4aeb
Assorted spelling fixes.
2008-01-23 21:16:22 +01:00
Rob Shearman
5af6012fba
widl: Write out code for initialising out-only client context handles.
2008-01-21 11:39:13 +01:00
Austin English
90f89fa74d
tools: Spelling fixes.
2008-01-18 12:52:09 +01:00
Alexandre Julliard
ba5336175c
widl: Use the real argument names in the C method macros.
2008-01-18 12:03:22 +01:00
Rob Shearman
a3040cea58
widl: Use symbolic names for some of the context handle attributes.
2008-01-07 21:33:53 +01:00
Rob Shearman
06ed169bc5
widl: Fix context handle "cannot be null" detection.
...
The "cannot be null" attibute is applied to a parameter if and only if
it is in-only.
2008-01-07 21:33:50 +01:00
Rob Shearman
e998892a23
widl: Fix the conditions under which array freeing code is output.
...
It doesn't matter whether or not the array is declared as a pointer or
is declared using array subscripts - the array is still allocated by the
unmarshalling function and so needs to be freed.
Fix a typo that caused varying arrays never to be freed.
Fix another typo with the check for conformant arrays being performed
twice, redundantly.
2008-01-07 12:37:08 +01:00
Rob Shearman
15af19c6ec
widl: Add support for strict context handles.
2008-01-07 12:32:21 +01:00
Rob Shearman
807001441d
widl: Output calls for the new versions of the marshalling and unmarshalling routines for server context handles.
...
This needs to be done to match the call to NdrContextHandleInitialize
and because we default to using strict context handles.
2008-01-07 12:32:00 +01:00
Rob Shearman
13f9c71960
widl: Make the offset of conformant string types point to the start of the conformant string format chars, not the pointer type.
...
Otherwise, writing a type at top-level could cause the pointer format
string to be used in non-top-level places which may cause memory
corruption during freeing.
2008-01-07 12:02:57 +01:00
Rob Shearman
9aaff94fb7
widl: Check that the buffer has enough space before unmarshalling base types in generated code.
2007-12-31 17:13:46 +01:00
Rob Shearman
6e7dcde26e
widl: Add support for generating code for out-only context handles by calling NdrContextHandleInitialize.
2007-12-26 13:27:06 +01:00
Rob Shearman
3e5f7457f6
widl: Fix pointer detection in structures and arrays.
...
write_embedded_types doesn't descend into all types contained by the
array or structure, so create a new function, type_has_pointers, for the
purpose of descending into all types and returning whether or not
pointers are present.
2007-12-26 13:26:02 +01:00
Rob Shearman
7f3abe7757
widl: Fix the generation of temporary variables for declared arrays.
...
These need to include their array part so use var->type instead of
var->ref->type.
2007-12-24 13:30:33 +01:00
Rob Shearman
b57a322b02
widl: Tweak the rules for when to call pfnFree for arrays.
...
Varying arrays that aren't unmarshalled shouldn't be freed, but
conformant arrays that aren't unmarshalled should.
2007-12-21 12:43:18 +01:00
Rob Shearman
37c8d8ecac
widl: Fix the length used when clearing alignment space in generated files.
...
Only do the clearing when marshalling a base type.
2007-12-19 19:34:47 +01:00
Rob Shearman
57947d9f9c
widl: The detection of types is highly dependent on the ordering of the various type detection functions.
...
Therefore, needs_freeing would have to duplicate a lot of
write_remoting_arg in order to get the detection right. Because of
this, it is easier and will cause less problems in the future to
simply move the logic of needs_freeing into write_remoting_arg in the
appropriate handling code for the detected type.
2007-12-19 18:32:13 +01:00
Rob Shearman
b81f4c24db
widl: Only base types or reference pointers to base types don't need to be freed.
...
There are other cases where calls to Free functions can be omitted (such
as types always unmarshalled using buffer memory with no embedded
pointers), but these are easier dealt with inside the relevent case in
write_remoting_arg.
2007-12-17 11:57:25 +01:00
Rob Shearman
45d6a959fb
widl: Return types shouldn't be freed.
2007-12-17 11:57:16 +01:00
Rob Shearman
32cf944e9c
widl: Clear padding in the buffer due to alignment.
2007-12-17 11:57:10 +01:00
Rob Shearman
9896938fab
widl: Don't write redundant FC_RP type format out for conformant strings, unless it is a top level variable.
2007-12-14 12:23:33 +01:00
Rob Shearman
00db711c6f
widl: Swap the version packing order back to what typelibs expect.
2007-12-13 14:30:40 +01:00
Rob Shearman
9741751962
widl: Remove some confusion in how version numbers are packed into an attribute by defining some macros for this purpose.
...
Remove unneeded includes.
2007-12-12 16:03:35 +01:00
Rob Shearman
d458a599eb
widl: Add support for non-basetype return types.
2007-12-11 18:07:05 +01:00
Rob Shearman
85e87ae829
widl: iid_is should take expressions, not just identifiers.
2007-12-10 14:40:37 +01:00
Rob Shearman
72d9569cc4
widl: Support the address-of operator in expressions.
2007-12-10 14:40:29 +01:00
Rob Shearman
8ead7fe797
widl: Make sure to generate freeing calls for all non-simple structures with pointers and pointers to user marshalled types.
2007-12-10 14:40:14 +01:00
Rob Shearman
e6f2329676
widl: Arrays should have freeing code generated on the server side, even if they are [in] parameters.
2007-12-10 14:40:10 +01:00
Rob Shearman
701a25c4b2
widl: Always write a freeing function for arrays in generated code.
...
Fix the conditions under which pfnFree is called to only include arrays
that will have been allocated, instead of being pointed to the buffer.
2007-12-10 14:40:07 +01:00
Alexandre Julliard
b0585bf10f
Make.rules: Added rules for building the dlldata.c file.
2007-12-10 14:26:13 +01:00
Rob Shearman
a513ff4926
widl: Don't override the pointer type in top-level arrays.
2007-12-08 19:57:25 +01:00
Michael Stefaniuc
7f5757f683
tools: Remove duplicate includes.
2007-11-19 13:54:52 +01:00
Francois Gouget
81a5701ca9
Assorted spelling fixes.
2007-11-09 13:07:12 +01:00
Dan Hipschman
a0ac63961d
widl: Don't rely on type_memsize to return 0 for all conformant arrays.
2007-11-06 13:02:56 +01:00
Dan Hipschman
b0bc8e58de
widl: Don't output a void conformance for NdrClearOutParameters.
2007-11-05 13:24:37 +01:00
Dan Hipschman
8d15820f79
widl: Handle pointers to conformant arrays (e.g., "[size_is(, n)] int **p; ").
2007-11-05 13:24:37 +01:00
Dan Hipschman
ea7ab4da66
widl: Add a --local-stubs option.
2007-10-31 12:39:54 +01:00
Paul Millar
17e934669e
widl: Add support for overriding recorded time, allowing binary-identical compilation.
2007-10-29 12:08:10 +01:00
Dan Hipschman
70e12b31b8
widl: Fix ExprEvalRoutines output.
2007-10-29 12:03:26 +01:00
Dan Hipschman
9825ac7a1a
widl: Fix a crash in compare_expr.
2007-10-25 12:54:57 +02:00
Dan Hipschman
f974facf5a
widl: Allow void pointers with iid_is attributes.
2007-10-25 12:54:52 +02:00
Dan Hipschman
1aab1072c1
widl: Use error_loc instead of yyerror.
2007-10-24 13:51:58 +02:00
Dan Hipschman
9051918976
widl: parser_error must append a newline, so write a new function, error_loc.
2007-10-24 13:51:48 +02:00
Dan Hipschman
fd6a276f4c
widl: Update the manpage.
2007-10-22 13:48:03 +02:00
Dan Hipschman
ff8930f2bf
widl: Fix problems with variable-size user types.
2007-10-22 13:47:56 +02:00
Francois Gouget
4152085af1
widl: Modify generic_msg() to behave like all the other Wine tracing methods, that is to not append a '\n' to the message.
2007-10-19 11:46:01 +02:00
Francois Gouget
599c74296c
widl: Add the trailing '\n' to an error message.
2007-10-19 11:45:52 +02:00
Francois Gouget
490841ee06
widl: Remove internal_error() as it is unused.
2007-10-19 11:45:47 +02:00
Dan Hipschman
1d0f9378bc
widl: Detect conformant arrays of user types correctly.
2007-10-18 12:09:23 +02:00
Dan Hipschman
4fb7a0e40e
widl: Remove printf format strings that aren't really format strings.
2007-10-18 12:09:14 +02:00
Dan Hipschman
40e90aae25
widl: Generate dlldata files.
2007-10-18 12:09:02 +02:00
Dan Hipschman
67c634c203
widl: Improve file cleanup when errors occur.
2007-10-18 12:07:30 +02:00
Dan Hipschman
ebfbec6e5c
widl: Output the correct value for TableSize in ProxyFileInfo.
2007-10-16 12:48:17 +02:00
Dan Hipschman
f173addbef
widl: Use new functions need_proxy and need_stub to clean up code and avoid generating unnecessary files.
2007-10-16 11:03:49 +02:00
Gerald Pfeifer
a7c6a27696
widl: Fix build failure in parser.y.
2007-10-15 12:05:06 +02:00
Dan Hipschman
acfde97b9e
rpcrt4, widl: Make pointer layouts compatible with windows; fix conformant array tests.
2007-10-11 16:24:28 +02:00
Dan Hipschman
2226ddcadf
widl: Keep track of every allocated type_t to simplify set_all_tfswrite.
2007-10-09 17:52:45 +02:00
Dan Hipschman
24ce74e96a
widl: Implement pointer_default functionality.
2007-10-09 17:52:45 +02:00
Dan Hipschman
cfa5457270
widl: Allow quoted UUIDs.
2007-10-09 17:52:45 +02:00
Dan Hipschman
d00ff2ed58
widl: Make structs containing user types bogus; fix square_test_us test failure.
2007-10-09 11:39:26 +02:00
Dan Hipschman
9650cf9bdb
widl: Correct default pointers.
2007-10-03 10:09:56 +02:00
Dan Hipschman
304852f97e
widl: Write types in the format string comments.
2007-10-03 10:09:43 +02:00
Dan Hipschman
32a2477ef5
widl: Add a declonly argument to write_type_left.
2007-10-03 10:09:31 +02:00
Dan Hipschman
4c8c425f42
widl: Add newlines to error messages that are missing them.
2007-10-03 10:08:47 +02:00
Rob Shearman
2055e636ae
widl: Generate client and server code for using context handles.
2007-09-28 10:59:49 +02:00
Rob Shearman
a2fedc3769
widl: Write prototypes for context handle rundown rountines into generated header files.
2007-09-28 10:59:32 +02:00
Dan Hipschman
cbd75d3ace
widl: Fix array alignment bug.
2007-09-27 11:07:15 +02:00
Dan Hipschman
723c8bacfa
widl: Fix string codes in pointer descriptions.
2007-09-27 10:09:38 +02:00
Dan Hipschman
347f2a2da2
widl: Fix top-level conformant arrays with pointer attributes.
2007-09-27 10:09:32 +02:00
Dan Hipschman
bb3275ce97
widl: Clean up write_conf_or_var_desc with string_of_type.
2007-09-25 11:40:29 +02:00
Dan Hipschman
767a1f26f6
widl: Handle top-level conformance for complex arrays.
2007-09-20 14:27:29 +02:00
Dan Hipschman
dbfabf68a2
widl: Respect pointer attributes better.
2007-09-20 14:27:25 +02:00
Dan Hipschman
33da66d6c8
widl: Set the pointer description offset to zero if there are no pointers.
2007-09-20 14:27:22 +02:00
Dan Hipschman
132f06cd48
widl: Implement complex arrays.
2007-09-19 11:39:09 +02:00
Dan Hipschman
6eb07cb100
widl: Handle all buffer sizes.
2007-09-19 11:38:53 +02:00
Dan Hipschman
8df79f0c99
widl: Implement pointer descriptions for complex structures.
2007-09-19 11:38:28 +02:00
Dan Hipschman
b16de39417
widl: Fix alignment comments.
2007-09-19 11:38:16 +02:00
Rob Shearman
aa649542e2
widl: None of the non-fixed arrays have fixed sizes, so don't set the alignment to anything and return a size of 0 from get_required_buffer_size_type.
2007-09-18 10:48:06 +02:00
Rob Shearman
cf983bf15d
widl: Missing size_is or length_is attributes should generate 0xffffffff for the correlation description.
2007-09-18 10:47:58 +02:00
Rob Shearman
9a28119dd8
widl: Fix write_string_tfs for strings declared as arrays.
...
The immediate type will be FC_*ARRAY, so rtype needs to use the referred
type to get the base type.
Also update the typeformat-string offset of the type.
2007-09-17 12:57:08 +02:00
Rob Shearman
f7fbfc7da5
widl: Add support for strings embedded in structures.
2007-09-17 12:57:06 +02:00
Rob Shearman
b7618f91d7
widl: Fix detection of complex arrays.
2007-09-17 12:57:03 +02:00
Rob Shearman
de7220e82d
widl: Initialise cval in make_expr.
2007-09-17 12:57:00 +02:00
Dan Hipschman
5e84eb9a47
widl: Add padding to the end of complex structures.
2007-09-14 14:43:13 +02:00
Dan Hipschman
ce4055c573
widl: Fix an unused parameter warning on write_conf_or_var_desc.
2007-09-13 12:44:18 +02:00
Dan Hipschman
177346f1b6
widl: Add calls to NdrFooFree for more types in server stubs.
2007-09-13 12:44:12 +02:00
Dan Hipschman
7deb62505c
widl: Use the correct functions for interface pointers in stubs.
2007-09-13 12:44:07 +02:00
Dan Hipschman
9d2c6e78f2
widl: Output UUID files compatible with older Visual C++ and MinGW.
2007-09-11 11:49:23 +02:00
Dan Hipschman
ba54c455fb
widl: Allow size_is on strings.
2007-09-10 15:29:46 +02:00
Dan Hipschman
62fb623e14
widl: Implement NDR for struct field alignment.
2007-09-10 15:29:46 +02:00
Dan Hipschman
3d036da6d3
widl: Fix top-level and callback conformances.
2007-09-10 15:29:46 +02:00
Dmitry Timoshkov
c6747d57ed
widl: Constify some data.
2007-08-30 11:48:42 +02:00
Dan Hipschman
7d73123dbc
widl: Handle the size_is attribute on pointers.
2007-08-30 11:47:38 +02:00
Dan Hipschman
d82b384859
widl: Handle LPSTR in typelibs.
2007-08-28 11:56:30 +02:00
Jacek Caban
ae0beb224b
widl: Reorder switch cases to keep alphabetical order.
2007-07-30 14:12:45 +02:00
Jacek Caban
8fd9716985
widl: Added displaybind attribute handling.
2007-07-30 14:12:45 +02:00
Jacek Caban
1ad39a38e5
widl: Added nonbrowsable attribute handling.
2007-07-30 14:12:45 +02:00
Jacek Caban
4413e8c6f8
widl: Use correct bytes in write_value.
2007-07-30 14:12:45 +02:00
Alexandre Julliard
40dda77c52
widl: Added support for floating-point constants.
2007-07-17 14:12:18 +02:00
Dan Hipschman
46222aee6e
widl: Allow enums as union switch types.
2007-06-26 11:59:53 +02:00
Dan Hipschman
704f2868ed
widl: Fix crash dealing with anonymous unions.
2007-06-26 11:59:15 +02:00
Dan Hipschman
512c36cae6
widl: Get simple enums working.
2007-06-26 11:59:02 +02:00
Dan Hipschman
ab22b4b3d4
widl: Check for user types when calculating buffer size.
2007-06-26 11:58:48 +02:00
Dan Hipschman
fcebe48cad
widl: Check for interface pointers in pointer handling.
2007-06-26 11:58:22 +02:00
Dan Hipschman
bf5e46a60a
widl: Fix warnings about unused function parameters.
2007-06-21 13:11:03 +02:00
Dan Hipschman
4e8c8d03e5
widl: Add tests for arrays of pointers.
2007-06-21 13:10:46 +02:00
Rob Shearman
4050c5f035
widl: Always write out pointers if the structure is a pointer structure. Pointer are optional for conformant varying structures.
2007-06-20 13:08:26 +02:00
Rob Shearman
4292776b83
widl: Write out embedded pointers for the element type when writing out arrays.
2007-06-20 13:08:22 +02:00
Rob Shearman
be4cdefbf3
widl: Fix detection of structures with non-conformant strings.
2007-06-20 13:07:16 +02:00
Rob Shearman
6ad13f3ed1
widl: Implement pointer descriptions for all embedded pointer types.
2007-06-20 13:07:07 +02:00
Dan Hipschman
58dea5c9a8
widl: Fix a write_parameters_init bug.
2007-06-15 12:02:58 +02:00
Dan Hipschman
e36981e116
widl: Factor the output functions.
2007-06-15 12:02:18 +02:00
Dan Hipschman
e4679b0c13
widl: Handle encapsulated unions.
2007-06-15 11:57:53 +02:00
Dan Hipschman
8709a06028
widl: Handle embedded interface pointers.
2007-06-15 11:56:17 +02:00
Alexandre Julliard
9821acf5d2
widl: Add typecasts for user marshalling routines to avoid compiler warnings.
2007-06-14 12:10:45 +02:00
Dan Hipschman
3325020636
widl: Handle wire_marshal pointer attributes.
2007-06-14 11:36:05 +02:00
Dan Hipschman
c0982b42c5
widl: Handle wire_marshal types.
2007-06-14 11:35:44 +02:00
Dan Hipschman
88c8128704
widl: Simplify correlation descriptor code.
2007-06-12 11:13:30 +02:00
Dan Hipschman
4e22899e13
widl: Fix incomplete struct/union typedef bug.
2007-06-08 11:57:15 +02:00
Dan Hipschman
b186c4dd0e
widl: Check for NULL in set_tfswrite.
2007-06-08 11:57:05 +02:00
Alexandre Julliard
56c6dbee9b
widl: Get rid of the SIGSEGV handler, this only makes things harder to debug.
2007-06-07 13:00:09 +02:00
Misha Koshelev
21fcb00af8
widl: Add support for vararg attribute.
2007-06-07 13:00:09 +02:00
Dan Hipschman
8f689ee023
widl: Implement conformant structure handling.
2007-06-06 12:13:35 +02:00
Dan Hipschman
978b4d4f4e
widl: Represent arrays with type_t.
2007-06-06 12:13:16 +02:00
Dan Hipschman
f5baddf88a
widl: Replace get_name with a field reference.
2007-06-06 12:12:36 +02:00
Rob Shearman
5ca386755e
widl: Set current_structure when writing out structure members to
...
ensure the conformance/variance calculation function can find the
necessary fields in the structures.
2007-05-31 12:25:18 +02:00
Rob Shearman
36fd85f4cc
widl: RPC_FC_BIND_PRIMITIVE is a base type so reverse an if statement
...
that caused string_of_type to fail and the RPC_FC_BIND_PRIMITIVE code
not to be executed.
2007-05-31 12:25:09 +02:00
Rob Shearman
f198dcf09b
widl: A structure with variance, but without conformance should be a complex struct instead of a conformant, varying struct.
2007-05-31 12:25:03 +02:00
Dan Hipschman
8f7a5d63ec
widl: Allow types that reference themselves.
2007-05-25 19:36:12 +02:00
Dan Hipschman
9c30da77ba
widl: Shrink type_t structure.
2007-05-25 19:35:49 +02:00
Dan Hipschman
00ce411231
widl: Handle pointers in unions.
...
Unify write_pointers with write_embedded_types, and handle pointers in
unions. Includes tests.
2007-05-25 19:35:29 +02:00
Dmitry Timoshkov
4d0d9fcb69
widl: Fix compilation warnings in 64-bit mode.
2007-05-23 13:05:04 +02:00
Dmitry Timoshkov
ccac7d1f11
widl: Fix compilation warnings in 64-bit mode.
2007-05-21 15:55:33 +02:00
Dan Hipschman
c5aaadc4c8
widl: Lay framework for unions with simple unions working.
2007-05-21 12:40:58 +02:00
Dan Hipschman
18724eaeb8
widl: Replace erroneously removed current_func assignment.
...
This accidentally came out and should not have. Thanks to Eric Kohl
for pointing this out to me.
2007-05-21 12:39:23 +02:00
Dan Hipschman
52ca3ebada
widl: Write some structures to the type format string on the fly.
2007-05-16 13:33:17 +02:00
Dan Hipschman
217fc9c0f3
widl: Improve handling of offsets in the type format string.
2007-05-16 13:33:17 +02:00
Dan Hipschman
d9c120490f
widl: Handle pointers fields that point to structures.
2007-05-14 14:24:16 +02:00
Dan Hipschman
faf5071549
widl: Remove an unnecessary assignment in write_pointers.
2007-05-14 14:24:06 +02:00
Dan Hipschman
ef433e2792
widl: Remove var_t's ptr_level field and start write_pointers.
2007-05-11 12:33:27 +02:00
Dan Hipschman
234855f059
widl: Remove dead code in write_msft.c.
2007-05-10 12:57:06 +02:00
Dan Hipschman
541dddfde3
widl: Simplify make_safearray.
2007-05-10 12:55:33 +02:00
Dan Hipschman
e7495555a0
widl: Remove redundant get_var_vt function.
2007-05-10 12:54:01 +02:00
Dan Hipschman
933ca7b126
widl: Add string_of_type function, prettify code.
2007-05-10 12:53:45 +02:00
Alexandre Julliard
7ca4e025e7
widl: Don't declare a global binding handle when using an implicit handle.
2007-05-03 14:25:58 +02:00
Dan Hipschman
d676d3be5f
widl: Get rid of the tname field of var_t, simplify code.
2007-05-01 12:37:18 +02:00
Dan Hipschman
1ecbb01617
widl: Get rid of the typeref_t structure, simplify code.
2007-05-01 12:37:08 +02:00
Dan Hipschman
a67c37f871
widl: Declare fixed-size array args as pointers to arrays.
2007-04-26 16:12:15 +02:00
Dan Hipschman
e714c89d2f
widl: Add --prefix-* options (take 3).
2007-04-26 15:47:37 +02:00
Stefan Huehner
4d1d01f266
Mark several functions as static.
2007-03-13 13:35:12 +01:00
Alexandre Julliard
4091627cd7
configure: Get rid of lex compatibility support, we require flex anyway.
2007-03-08 13:19:50 +01:00
Rob Shearman
1c2a717b59
widl: Implement writing of SAFEARRAY type descriptions in typelibs.
2007-03-07 20:10:32 +01:00
Alexandre Julliard
defc1d873e
widl: Add missing '\n' on error message.
2007-02-28 20:44:24 +01:00
Rob Shearman
94a0a90165
widl: Print EXPR_NUM expresssions as unsigned to avoid printing an extra negative sign when lval is large.
2007-02-26 17:33:40 +01:00
Alexandre Julliard
77292a8c82
widl: 'control' is an attribute not a keyword.
2007-02-19 16:40:34 +01:00
Alexandre Julliard
6b808bafe0
widl: Rename parser states to uppercase to avoid conflicts.
2007-02-08 11:55:35 +01:00
Alexandre Julliard
94ee8e8fac
widl: Output endpoint information in client and server files.
2007-02-07 17:55:09 +01:00
Alexandre Julliard
cc9a07f194
widl: Add a string list type and use it for the endpoint attribute.
2007-02-07 17:54:33 +01:00
Alexandre Julliard
24ded9e69a
widl: Only recognize attribute keywords inside an attribute list.
2007-02-07 17:50:17 +01:00
Alexandre Julliard
82b7eecf6c
widl: Use the correct type offset when freeing proxy variables.
2007-02-06 18:01:43 +01:00
Alexandre Julliard
936455edd7
widl: Added support for iid_is conformance descriptors.
2007-02-06 16:00:41 +01:00
Alexandre Julliard
3c2a9f5df8
widl: size_is and length_is are expression lists now.
2007-02-06 15:59:24 +01:00
Alexandre Julliard
3bfa88dc49
widl: Take array dimensions into account when computing buffer size.
2007-02-06 15:55:49 +01:00
Alexandre Julliard
3fa891bfee
widl: Add support for arrays of simple types in format strings.
2007-02-06 15:55:29 +01:00
Alexandre Julliard
732b3dc8c7
widl: Output correct alignments in type format strings.
2007-02-06 15:54:58 +01:00
Mike McCormack
609cd30277
widl: Implement dispinterfaces derived from an interface.
2007-02-06 13:20:46 +01:00
Mike McCormack
7d1e21e2c1
widl: Handle TKIND_DISPATCH when generating MSFT typelibs.
2007-01-26 14:29:18 +01:00
Huw Davies
305e4949ee
widl: Don't restrict the number of params of [prop*] functions.
2007-01-26 12:22:40 +01:00
Huw Davies
f994c35a3e
widl: Add VT_DATE support to typelib generation.
2007-01-26 12:22:38 +01:00
Alexandre Julliard
2eee874382
widl: Make some generated variables static and/or const.
2007-01-26 12:09:25 +01:00
Alexandre Julliard
2b9c01eed2
widl: Avoid dependency on COBJMACROS in generated code.
2007-01-26 12:09:14 +01:00
Alexandre Julliard
9505b50ccf
widl: Define __midl_proxy in the generated proxy code.
2007-01-26 12:09:03 +01:00
Alexandre Julliard
1a25936ca9
widl: Add a few more fields in the stub descriptor.
2007-01-26 12:08:51 +01:00
Alexandre Julliard
6c559cafab
widl: Rename a couple of variables to make the code closer to what midl generates.
2007-01-26 12:04:40 +01:00
Alexandre Julliard
7e4a985269
widl: Initialize local variables in stub functions.
2007-01-26 12:03:02 +01:00
Alexandre Julliard
9e6acf818f
widl: Use the typegen function for marshalling/unmarshalling in proxies.
2007-01-26 12:00:42 +01:00
Alexandre Julliard
9f1e9ad326
widl: Copy the UserMarshal support into the generic code.
2007-01-26 11:59:58 +01:00
Alexandre Julliard
8d50f9d054
widl: Add support for some simple pointer types.
2007-01-24 20:10:57 +01:00
Alexandre Julliard
d885244148
widl: Store the interface id in _StubMsg.MaxCount for iid_is pointers.
2007-01-24 20:10:07 +01:00
Alexandre Julliard
4f106ca398
widl: Fix alignment check for struct members format string.
2007-01-24 20:08:50 +01:00
Alexandre Julliard
8996c79d83
widl: Fix possible crash in write_array_tfs.
2007-01-24 20:08:06 +01:00
Alexandre Julliard
8e3c5c9ab9
widl: Skip local functions when building format strings.
2007-01-24 20:06:51 +01:00
Alexandre Julliard
6dd5afd723
widl: Export a function to compute the proc format string size for a function.
2007-01-24 20:05:22 +01:00
Alexandre Julliard
6655071a3f
widl: Move initialization of the stub buffer size into write_remoting_arguments().
2007-01-24 20:02:05 +01:00
Alexandre Julliard
85ed9ca31a
widl: Move support for stub arguments to typegen.c to make it usable for proxies too.
2007-01-24 19:59:16 +01:00
Alexandre Julliard
43ac6ed995
widl: Convert expression lists to standard Wine lists.
...
Add a specific type for array dimensions.
2007-01-22 14:31:40 +01:00
Alexandre Julliard
eed74e4e4a
widl: Convert variable lists to standard Wine lists.
2007-01-22 14:26:12 +01:00
Alexandre Julliard
58827d026b
widl: Convert function lists to standard Wine lists.
2007-01-22 14:23:08 +01:00
Alexandre Julliard
e262933bdf
widl: Convert interface lists to standard Wine lists.
2007-01-22 14:21:56 +01:00
Alexandre Julliard
e998590557
widl: Convert attribute lists to standard Wine lists.
2007-01-22 14:20:36 +01:00
Alexandre Julliard
5b0bf5dc76
widl: Convert typelib lists to standard Wine lists.
2007-01-22 14:10:30 +01:00
Alexandre Julliard
5aba7b0c67
widl: Use existing functions to retrieve attributes for typelibs.
2007-01-22 14:09:46 +01:00
Alexandre Julliard
75c2184f87
widl: Include objbase.h so that generated proxy file compiles on Wine.
2007-01-19 13:17:17 +01:00
Alexandre Julliard
0edfacdb6a
widl: Generate proxy/client/server files when requested explicitly even if they are empty.
2007-01-19 12:46:19 +01:00
Andrew Talbot
d3972880c0
widl: Fix memory leaks.
2007-01-04 21:14:14 +01:00
Alexandre Julliard
7035aa5041
make_makefiles: Generate the top-level .gitignore file.
...
Add a PROGRAMS variable in some makefiles to make things easier.
2006-12-27 21:23:36 +01:00
Francois Gouget
bb8e625b5b
Assorted spelling fixes.
2006-12-05 10:31:47 +01:00
Michael Stefaniuc
cc234847d0
widl: Use ULONG instead of unsigned long when generating declarations for *_UserFree() functions. This is needed for Win64 compatibility.
2006-11-09 10:43:23 +01:00
Michael Stefaniuc
6f95047034
widl: Use ULONG instead of unsigned long when generating declarations for *_UserUnMarshal() functions. This is needed for Win64 compatibility.
2006-11-09 10:43:20 +01:00
Michael Stefaniuc
05b1aac100
widl: Use ULONG instead of unsigned long when generating declarations for *_UserMarshal() functions. This is needed for Win64 compatibility.
2006-11-09 10:43:16 +01:00
Michael Stefaniuc
177aaf6738
widl: Use ULONG instead of unsigned long when generating declarations for *_UserSize() functions. This is needed for Win64 compatibility.
2006-11-09 10:43:12 +01:00
Michael Stefaniuc
15765dd953
The Data1 member of the GUID struct needs to be an unsigned int too for Win64 compatibility.
2006-10-16 10:53:04 +02:00
Francois Gouget
58162f87fd
Assorted spelling fixes.
2006-10-13 11:55:04 +02:00
Andrew Talbot
9c6c8b178a
widl: Cast-qual warning fix.
2006-10-10 19:33:06 +02:00
Michael Stefaniuc
0fb444b58c
tools: Remove redundant NULL checks before free() (found by Smatch).
2006-10-10 12:56:20 +02:00
Francois Gouget
4b2d7e9321
widl: Use CONST_VTBL to declare lpVtbl.
2006-09-29 17:51:45 +02:00
Michael Stefaniuc
41dd56cb7f
"One liners" printf format warning fixes for the migration of DWORD/LONG/ULONG from long to int.
2006-09-29 16:09:24 +02:00
Dan Hipschman
3ad3f8de42
widl: Don't compare result of read() to unsigned type.
2006-09-14 11:39:37 +02:00
Dan Hipschman
bd7e690c1f
widl: Remove unused parameter in create_msft_typeinfo.
2006-09-14 11:39:37 +02:00
Dan Hipschman
48006f60a7
widl: Remove unused parameter in ctl2_encode_name.
2006-09-14 11:39:37 +02:00
Dan Hipschman
954c592a6c
widl: Replace a #if by if for better compiler checking.
2006-09-14 11:39:37 +02:00
Dan Hipschman
6e7389ada8
widl: Remove unused parameter in write_ip_tfs.
2006-09-14 11:39:37 +02:00
Dan Hipschman
53a2819286
widl: Fix warning about unused structure field in lexer.
2006-09-14 11:39:37 +02:00
Dan Hipschman
a472c83f91
widl: Add -u and -U options to man page.
2006-09-14 11:39:37 +02:00
Alexandre Julliard
32ab895e46
makefiles: Generate the dependencies line to avoid some code duplication.
2006-09-14 09:38:16 +02:00
Dan Hipschman
6f4b83bce0
widl: Replace a loop with a simple computation.
2006-09-12 11:01:12 +02:00
Alexandre Julliard
86bb809e5b
widl: Change the prefix on bison-generated names to avoid the name-prefix directive.
2006-09-12 09:05:07 +02:00
Alexandre Julliard
bcdc5fb55f
Make.rules: Set the default prefix for bison files from the file basename.
2006-09-11 21:47:49 +02:00
Alexandre Julliard
145a0ba508
makefiles: List bison dependencies explicitly for parallel makes, since older bisons don't support --defines.
2006-09-11 21:43:11 +02:00
Alexandre Julliard
9c085cba0a
makefiles: Add global rules for bison and lex files.
...
Also build the .c and .h files separately to allow parallel makes.
2006-09-09 13:16:22 +02:00
Alexandre Julliard
aded30dad7
widl: Allow building without debug support in the parser.
2006-09-09 11:26:20 +02:00
Dan Hipschman
6ff8ae327f
widl: Add more complete pointer handling to write_typeformatstring_var.
2006-09-08 11:05:02 +02:00