Commit graph

1460 commits

Author SHA1 Message Date
Fabian Maurer
dbf303b00b widl: In type_has_full_pointer recurse for pointer types as well. 2023-11-29 20:44:44 +01:00
Fabian Maurer
f59807c587 widl: Prevent infinite loop when structure contains array of itself.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55115
2023-11-29 20:44:42 +01:00
Alexandre Julliard
a426b6b4a9 widl: Make the alignment option generic instead of win32/win64-specific.
Support both --align and --packing for compatibility with midl.
2023-11-10 11:06:38 +01:00
Alexandre Julliard
c7a2aaf234 widl: Remove DECLSPEC_HIDDEN from generated files. 2023-11-08 10:11:17 +01:00
Alexandre Julliard
4e9f1a41b9 makefiles: Always use the global SOURCES variable for .man.in files. 2023-10-14 13:44:07 +02:00
Alexandre Julliard
c7fafe7eb2 widl: Use the IMAGE_FIRST_SECTION helper macro. 2023-09-25 13:02:09 +02:00
Rémi Bernon
3b7398b403 widl: Guard against re-import of the main input file. 2023-08-22 21:00:56 +02:00
Alexandre Julliard
20afe43832 Remove unused NONAMELESS defines. 2023-08-15 18:56:45 +02:00
Mohamad Al-Jaf
0b3b28c245 widl: Add support for default_overload attribute.
Needed for IDeviceInformationStatics.
2023-08-04 09:51:24 +09:00
Alistair Leslie-Hughes
f1b9150451 widl: Remove unnecessary null check (Coverity). 2023-07-11 18:34:17 +02:00
Bernhard Kölbl
711cd500e7 widl: Add basic support for the [deprecated] attribute.
Signed-off-by: Bernhard Kölbl <bkoelbl@codeweavers.com>
2023-07-05 19:54:57 +02:00
Fabian Maurer
0ce5584acc widl: Don't crash on nameless structs.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=49772
2023-06-26 15:00:58 +02:00
Alistair Leslie-Hughes
1aa6a900e8 widl: Suppress a coverity warning.
Knowning that frame->code will be set when the exception handler
is called.  Suppress this coverity issue.
2023-04-24 10:33:33 +02:00
Mohamad Al-Jaf
3b31e75395 widl: Add support for WinRT HANDLE parameter type.
Needed by windows.ui.composition.interop.idl.
2023-04-13 10:25:19 +02:00
Mohamad Al-Jaf
712f87ee8e widl: Add support for composable attribute.
Needed to build windows.ui.composition.idl.
2023-04-03 16:52:01 +02:00
Mohamad Al-Jaf
a7e1c707f1 widl: Add support for protected attribute. 2023-04-03 16:52:01 +02:00
Mohamad Al-Jaf
781b8b0e99 widl: Add support for inherited runtime classes.
Needed to build windows.ui.composition.idl.
2023-04-03 16:52:01 +02:00
Francois Gouget
99f77667bb widl: Error_loc() messages must have a trailing linefeed. 2023-03-27 17:43:18 +02:00
Rémi Bernon
78c5e3ab03 widl: Define PARSER_LTYPE instead of api.location.type.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54729
2023-03-27 11:05:34 +02:00
Rémi Bernon
bf9d15e3b1 widl: Use warning_at when reporting duplicate attributes. 2023-03-24 21:49:27 +01:00
Rémi Bernon
3d79c1f56d widl: Add source location information to attributes. 2023-03-24 21:49:27 +01:00
Rémi Bernon
a10740f319 widl: Remove custom attribute creation helper. 2023-03-24 21:49:27 +01:00
Rémi Bernon
7771a9ae79 widl: Simplify attribute creation with either int or ptr value. 2023-03-24 21:49:27 +01:00
Rémi Bernon
f36fbb3788 widl: Move attribute related functions to attribute.c. 2023-03-24 21:49:27 +01:00
Rémi Bernon
f79ae4a95c widl: Use spaces to indent attribute rules more consistently. 2023-03-24 21:49:26 +01:00
Rémi Bernon
3149d27220 widl: Print the import stack and context in messages. 2023-03-23 16:44:34 +01:00
Rémi Bernon
472b2ecad4 widl: Improve accuracy of error messages location. 2023-03-23 16:44:34 +01:00
Rémi Bernon
071b0a5532 widl: Enable bison locations option. 2023-03-23 16:44:34 +01:00
Rémi Bernon
2edd194a00 widl: Move diagnostic and location functions to parser.l. 2023-03-23 16:44:34 +01:00
Rémi Bernon
be1e308253 widl: Allow source location to span over multiple lines. 2023-03-23 16:44:34 +01:00
Rémi Bernon
edca5937fb widl: Rename (error|warning)_loc_info to (error|warning)_at. 2023-03-23 16:44:34 +01:00
Rémi Bernon
f869c8e7a3 widl: Lex calling convention variations toghether. 2023-03-20 21:03:32 +01:00
Rémi Bernon
53ae787d02 widl: Simplify reserved keywords lexing. 2023-03-20 21:03:32 +01:00
Rémi Bernon
858ec42a31 widl: Simplify preprocessor directive lexing. 2023-03-20 21:03:32 +01:00
Rémi Bernon
83f9f2cd3c widl: Remove unused lexer aliases. 2023-03-20 21:03:32 +01:00
Rémi Bernon
abbf6cefc5 widl: Simplify uuid literals lexing. 2023-03-20 21:03:32 +01:00
Alexandre Julliard
78dc4ce7a0 widl: Pass the correct parent name when opening an import file.
Fixed a regression from 9d537999e3.
2023-03-20 17:10:45 +01:00
Rémi Bernon
d359837fcc widl: Avoid freeing input_name in pop_import.
The pointers are used in loc_info input_name without copy.
2023-03-17 16:45:29 +01:00
Rémi Bernon
194c002c6e widl: Simplify string literals lexing. 2023-03-17 16:45:11 +01:00
Rémi Bernon
baa3680f2e widl: Introduce a new helper to produce num tokens. 2023-03-17 16:45:11 +01:00
Rémi Bernon
a46facfd8c widl: Group <ATTR> tokens together. 2023-03-17 16:45:11 +01:00
Rémi Bernon
832d6985c8 widl: Group <INITIAL> tokens together. 2023-03-17 16:45:11 +01:00
Rémi Bernon
2b3a910184 widl: Group <INITIAL,ATTR> tokens together. 2023-03-17 16:45:11 +01:00
Rémi Bernon
7ebf75f92d widl: Use open_input_file to open the main input. 2023-03-16 14:09:25 +01:00
Rémi Bernon
1a0a617850 widl: Respect -N flag for imported files preprocessing. 2023-03-16 14:09:25 +01:00
Rémi Bernon
39da052012 widl: Introduce new (open|close)_input_file helpers. 2023-03-16 14:09:25 +01:00
Rémi Bernon
a6ab03dcd5 widl: Handle preprocess-only case separately. 2023-03-16 14:09:25 +01:00
Rémi Bernon
9d537999e3 widl: Use a struct list for the import stack. 2023-03-16 14:09:25 +01:00
Rémi Bernon
5deda2de3f widl: Simplify handling of already parsed imports. 2023-03-16 14:09:25 +01:00
Rémi Bernon
9d1f1a3fb1 widl: Use a struct list to keep imported files. 2023-03-16 14:09:25 +01:00