Commit Graph

50 Commits

Author SHA1 Message Date
Jacek Caban fcf545f449 winapi: Use __alignof__ on clang.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-12-16 15:30:07 +01:00
Serge Gautherie 84458b1927 winapi_test: Minor $pointer_size check consistency tweak.
Signed-off-by: Serge Gautherie <winehq-git_serge_180711@gautherie.fr>
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-08-13 12:29:09 +02:00
Serge Gautherie 78e9192d07 winapi_test: '* long *' is 4 bytes, not pointer size, on Windows.
Signed-off-by: Serge Gautherie <winehq-git_serge_180711@gautherie.fr>
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-08-13 12:29:05 +02:00
Serge Gautherie 4cd1aa12b9 winapi_test: Escape parentheses in regexp, Allow spaces around them.
Signed-off-by: Serge Gautherie <winehq-git_serge_180711@gautherie.fr>
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-08-13 12:28:54 +02:00
Serge Gautherie 44df633d19 winapi_test: PshpackN.h can only be 1/2/4/8.
Signed-off-by: Serge Gautherie <winehq-git_serge_180711@gautherie.fr>
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-08-13 12:28:49 +02:00
Serge Gautherie 99c0ab2ea1 winapi_test: Restore horizontal alignment of macro defines.
Signed-off-by: Serge Gautherie <winehq-git_serge_180711@gautherie.fr>
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-08-10 21:26:15 +02:00
Serge Gautherie c26d7470cc winapi_test: Horizontally align TEST_TYPE_SIGNED() parameter.
Signed-off-by: Serge Gautherie <reactos-git_serge_171003@gautherie.fr>
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-08-10 21:25:56 +02:00
Serge Gautherie 866f672505 winapi: Update 'perl -w' to 'use warnings 'all''.
Signed-off-by: Serge Gautherie <winehq-git_serge_180711@gautherie.fr>
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-07-24 18:37:54 +02:00
Serge Gautherie 181a114d44 winapi_test: Fix a verifying loop on headers, which never finds any type name.
Signed-off-by: Serge Gautherie <winehq-git_serge_180711@gautherie.fr>
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-07-21 15:15:43 +02:00
Francois Gouget 8bd4bc4716 winapi_test: Add support for more base types.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-14 22:08:19 +02:00
Francois Gouget e5531732ae winapi_test: Clarify the error message regarding struct size and alignment.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-14 22:07:58 +02:00
Serge Gautherie aa384d3642 tools: Remove 0x0501 API versions forced by winapi_test.
Signed-off-by: Serge Gautherie <winehq-git_serge_180711@gautherie.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-13 20:10:44 +01:00
Andrey Turkin fc4d5393a5 ntdll/tests: Do not check signedness for char types. 2010-08-02 12:55:21 +02:00
Alexandre Julliard a8e86e35dd winapi: Generate the 64-bit variant of structure size/alignment tests. 2010-04-07 18:03:00 +02:00
Alexandre Julliard 6b11a3c3f8 winapi: Add some support for handling ifdefs, particularly ifdef _WIN64. 2010-04-07 17:27:14 +02:00
Francois Gouget d537476894 winapi_test: Simplify the code that builds the list of headers to process. 2009-05-18 12:32:20 +02:00
Alexandre Julliard b46be0be7d winapi: Handle types should be treated as pointers. 2009-05-06 13:44:54 +02:00
Francois Gouget 9bdde98ab6 winapi: Remove some dead code. 2009-04-20 15:26:07 +02:00
Francois Gouget 581e390115 winapi_test: The tests don't support WIN64 yet so disable them there. 2009-01-08 12:47:22 +01:00
Francois Gouget 411f5d22c0 winapi_test: The real tests are done at compile time so use C_ASSERT() instead of ok(). Do only one test per line so one can know exactly what went wrong. 2009-01-08 12:46:39 +01:00
Francois Gouget 9f62c9b7a8 winapi_test: Fix TEST_FIELD() so it correctly tests the field size. 2009-01-08 12:44:49 +01:00
Francois Gouget 43c18c1321 winapi_test: FIELD_ALIGNMENT() is redundant so remove it. 2009-01-08 12:43:15 +01:00
Francois Gouget 2e668d2572 winapi_test: Updated so the generated tests work. 2009-01-08 12:42:12 +01:00
Paul Vriens b79f37f8fd tools/winapi: Fix typo in the generated header. 2008-06-18 15:21:48 +02:00
Francois Gouget f6fab295f3 Fix spelling error in the generated conformance test files. 2008-01-16 12:46:18 +01:00
Ge van Geldorp d642e11438 winapi_test: Regenerate tests.
Remove structs from test list which have preprocessor directives in
their definitions (winapi_test can't handle that).
2006-10-11 12:12:21 +02:00
Colin Pitrat ab2cdead77 tools: Check for open return code in Perl scripts. 2006-08-10 11:30:37 +02:00
Jonathan Ernst 360a3f9142 Update the address of the Free Software Foundation. 2006-05-23 14:11:13 +02:00
Mike McCormack b8fc783be2 Avoid warnings in generated tests by casting sizeof(x) to an int. 2005-07-03 11:23:30 +00:00
Alexandre Julliard 1492028a96 Get rid of the winapi_check_dir config parameter. 2005-05-04 10:43:00 +00:00
Francois Gouget a8b09d11ca Add function prototypes.
Change the way functions are called and either alter their declaration
order or predeclare them so perl can check the prototypes.
2004-10-26 00:12:21 +00:00
Francois Gouget 5512ae2685 Disable MSVC warning 4116 to avoid the 'unnamed type definition in
parentheses' warning caused by TYPE_ALIGNMENT().
2004-09-06 20:29:53 +00:00
Francois Gouget 7421a7b560 Don't output the DECLSPEC_ALIGN() directives in the TYPE_FIELD tests. 2004-09-01 04:53:22 +00:00
Francois Gouget 09747e50e7 Fix packing bug in shlobj.h.
Fix the declaration of bitfields so their layout matches what MSVC
generates.
Modify winapi_test to compute the bitfields size/alignment like MSVC
does.
Update the impacted generated.c files.
2004-08-20 19:33:17 +00:00
Francois Gouget e69f38551e Add the CCHILDREN_TITLEBAR+1 and NUM_POINTS macros.
Add a couple base types that winapi_test does not know how to parse.
Fix a bug so that 'signed' and 'unsigned' are recognised as valid
types.
2004-08-16 19:46:09 +00:00
Hans Leidekker e2bf33437d - Assume 8 byte maximum alignment.
- Sync type testing data with the headers.
2004-05-04 00:38:27 +00:00
Francois Gouget b358b7ad4f Generate ok("...\n") calls. 2004-01-20 21:50:01 +00:00
Alexandre Julliard 2f31228dfe Specify include quotes in the tests.dat file. 2003-10-24 04:43:16 +00:00
Francois Gouget 56b63e85c3 Update tests.dat to include the various #include fixes.
gcc says that sizeof(long double)==12.
Fix the detection of pragma packs to detect #include <...>.
Generate ok("...\n") calls.
2003-10-21 23:48:13 +00:00
Daniel Marmier a613de2a22 Use #ifdef instead of #if for all feature tests.
Check that _MSC_VER is defined before using it.
2003-09-30 00:33:47 +00:00
Patrik Stridvall b3da4abc57 Added tests for a few new DLLs. 2002-11-12 01:05:17 +00:00
Patrik Stridvall aac9ff400c - Added code for detection of missing types.
- Added missing types.
- Added a function for each type test to improve compiling with -O2.
2002-11-06 21:58:50 +00:00
Patrik Stridvall 5554838292 Added tests for normal types (not just structures). 2002-11-04 22:40:13 +00:00
Patrik Stridvall 1a6898b8ef Added support for excluding optional fields. 2002-10-29 21:23:44 +00:00
Patrik Stridvall 3007bd437e Minor modifications and improvements. 2002-10-23 18:44:46 +00:00
Patrik Stridvall 90fb04604d Don't use a special header file for macros used in generated tests.
Have a copy in each generated file instead.
2002-10-15 01:24:03 +00:00
Patrik Stridvall 65442cd763 - Improved alignment and offset calculations.
- Reorganized and improved enum/union/struct parsing.
2002-10-11 17:53:13 +00:00
Patrik Stridvall 91a3686853 Reorganized the code for better support of data structures parsing. 2002-10-09 18:12:02 +00:00
Patrik Stridvall df6d37e0f2 - Minor improvements.
- Added tests for GDI and USER.
2002-10-02 19:54:14 +00:00
Patrik Stridvall a40a4f719e - Added a new tool winapi_test for generating tests.
- Added a data structure packing test to winapi_test.
- Reorganized and optimized a few things.
2002-10-01 18:10:54 +00:00