Commit Graph

232 Commits

Author SHA1 Message Date
Francois Gouget b4df2417c4 Review and fix regular expressions of the form /^foo|bar$/.
Replace regular expressions with simple string comparisons where
possible.
Use '(?:subregexp)' instead of '(subregexp)' wherever possible.
'dlls/gdi' does not have a win16drv subdirectory anymore so simplify
regular expressions accordingly.
2004-10-22 19:55:42 +00:00
Francois Gouget aabbbc0c5b Standardize on '%long --pointer'.
Update it to match the latest source. Fixes many winapi_check
warnings.
2004-10-21 22:28:28 +00:00
Francois Gouget 85ae255f96 Fix some issues reported by winapi_check:
Add mscat.h and wintrust.h; update wincrypt.h.
Fix the CryptCATAdminAcquireContext() and WinVerifyTrust() prototypes
so they use the proper types.
Update the wintrust section of win32.api.
2004-10-21 21:00:29 +00:00
Francois Gouget 9c3246803b Fix the declaration of SymEnumSymbols() in dbghelp.spec.
Use PVOID instead of void* for consistency.
Update the dbghelp section in win32.api.
2004-10-21 19:57:56 +00:00
Steven Edwards c7545d2b1c Correctly define WINVER, _WIN32_WINNT and _WIN32_IE versions in all
cases.
2004-10-11 19:51:43 +00:00
Vincent Béron c165496f01 Update types checked by winapi_check. 2004-10-08 21:02:09 +00:00
Francois Gouget 370f220744 Don't import parse_comma_list() unless necessary.
winapi_check_options.pm: Fix typo in the parse_comma_list()
reference.
2004-10-07 04:20:41 +00:00
Martin Fuchs c35c48b983 Fix generation of config.h. 2004-10-06 18:52:15 +00:00
Martin Fuchs c7e467486f Fix msvcmaker imports. 2004-10-06 00:04:54 +00:00
Francois Gouget d8c96b08f3 Identify comm.drv as a 16bit dll. 2004-10-05 18:14:02 +00:00
Francois Gouget bac042c256 Limit the length of progress messages to less than $COLUMNS || 80
characters so they don't wrap (which would cause them to be badly
erased).
Make good use of the 'x', the perl string multiplication operator.
Add function prototypes.
2004-10-05 18:08:57 +00:00
Francois Gouget c2f2b990e0 Add function prototypes. 2004-10-05 18:08:40 +00:00
Francois Gouget d0882ef46d Handle the static libraries linked to using EXTRALIBS. 2004-10-04 19:14:49 +00:00
Steven Edwards d2acb8cf8b Define _WIN32_WINNT and _WIN32_IE versions for MS_VC Build. 2004-09-23 04:26:54 +00:00
Francois Gouget 02236f06a8 Fix and unify parsing of calling conventions.
Hack handling of 'struct { } *NDR_SCONTEXT;' so we don't cause a parse
error as this is a valid C construct.
Generate type tests for rpcrt4.
Remove PRPC_BINDING_VECTOR and PUUID_VECTOR, they don't exist on
Windows.
Fix the MIDL_STUB_MESSAGE, MIDL_SERVER_INFO and
MIDL_STUBLESS_PROXY_INFO structs.
Add NDR_ALLOC_ALL_NODES_CONTEXT, NDR_POINTER_QUEUE_STATE and
CS_STUB_INFO.
2004-09-08 01:27:24 +00:00
Francois Gouget c13638ee85 Fix c_parser.pm so it handles 'const' preceeding a '*'.
Add missing #pragma pack directives for the new shlobj.h types.
Fix some field names in CSFV and QCMINFO.
Update the generated tests to also check shtypes.h and test some more
types.
2004-09-07 22:46:26 +00:00
Francois Gouget 5d54c7ba7c Test some more gdi types. 2004-09-07 20:27:34 +00:00
Francois Gouget 7e848dc47e Test some more urlmon types. 2004-09-07 19:33:36 +00:00
Francois Gouget ab1866be52 Test some more ntdll types.
tests.dat: Remove types that don't exist, whether in the Windows or
Wine headers.
2004-09-06 21:26:57 +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
Alexandre Julliard 2ceb42dd43 Moved all files from the controls/ directory to dlls/user. 2004-08-31 01:10:08 +00:00
Francois Gouget 20b8b56d5f Enable the disabled tests in tests.data or add a comment describing
why the type cannot be tested.
Update the generated files, they compile and run successfully both on
Windows (with the Windows headers) and in Wine.
2004-08-25 00:42:50 +00:00
Francois Gouget 2e360b3ee4 Fix alignment issues for MEMORYSTATUSEX, WIN32_STREAM_ID and
IO_COUNTERS. The corresponding tests now succeed both when compiled
with the Windows headers and when compiled with the Wine headers.
2004-08-24 20:16:25 +00:00
Francois Gouget 6b1e83281b Update FPO_DATA and IMAGE_LOAD_CONFIG_DIRECTORY to match the latest
platform SDK. This helps compile the ntdll tests on Windows.
2004-08-22 22:28:53 +00:00
Francois Gouget 493cf88bb6 Remove these Wine-only types:
EnumICMProfilesProcCallback
  PEXCEPTION_REGISTRATION_RECORD
Don't test these Wine-only types:
  EMRSETTEXTJUSTIFICATION
  EXCEPTION_REGISTRATION_RECORD
Remove EXCEPTION_FRAME, it doesn't exist at all.
2004-08-22 02:07:13 +00:00
Francois Gouget 07ba7f33e1 DECLARE_OLD_HANDLE is not used anymore. 2004-08-22 02:02:00 +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 68232c6c2f Remove types that don't exist from tests.dat.
Don't test types that have a platform dependent layout.
Don't test Wine-only types.
Helps get the generated tests compiling on Windows.
2004-08-19 20:34:42 +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
Francois Gouget a625761eb9 Avoid annoying 'macro redefinition' warnings by defining
WIN32_NO_STATUS at the right time.
Define _WIN32_WINNT otherwise we are missing some symbols with the
Windows headers.
2004-08-14 00:42:12 +00:00
Francois Gouget 870f55fefc Fix the PSID and PSECURITY_DESCRIPTOR types.
Add PISID and PISECURITY_DESCRIPTOR.
2004-08-13 23:55:43 +00:00
Francois Gouget 6f902f16fb The Windows headers don't define PEXCEPTION_REGISTRATION_RECORD.
Remove it.
2004-08-13 23:22:30 +00:00
Francois Gouget 0cc262c5bf Fix compilation of the wininet generated tests with the Windows
headers.
2004-08-13 23:19:37 +00:00
Francois Gouget 522217c0e2 Remove LPFILESYSTEMBINDDATA as it's not defined in the standard
Windows headers.
2004-08-11 20:52:37 +00:00
Francois Gouget 48ea250887 Don't define __WINE_USE_MSVCRT in the Visual C++ project. It is not
needed as it is defined by the Wine headers.
Use __WINE_USE_MSVCRT to detect whether we are being compiled with the
Wine MSVCRT headers or the Windows ones. In the latter case:
 - don't try to include the Wine-specific msvcrt headers
 - skip all the headers.c tests since there's no MSVCRT_* symbols to
   check
2004-08-11 19:36:17 +00:00
Francois Gouget ad7a4fb9ee Fix msvcmaker so the generated testlist.c files include stdarg.h.
Add comments pointing out the relation between msvcmaker and
make_ctests.
2004-07-16 19:14:43 +00:00
Patrik Stridvall ae9cf771de - API files update.
- Minor bug fixes.
2004-05-17 20:50:24 +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
Steven Edwards 0ea344e53a Remove reference to old graphics directory 2004-03-22 21:29:53 +00:00
Patrik Stridvall 446d6c0ea1 API files update. 2004-02-27 21:28:45 +00:00
Patrik Stridvall 9c39156efd - API files update.
- Minor bug fixes.
2004-02-20 19:57:42 +00:00
Hans Leidekker c9b4f601cb Fixed misuse of scalar reference variable. 2004-01-20 23:37:35 +00:00
Francois Gouget b358b7ad4f Generate ok("...\n") calls. 2004-01-20 21:50:01 +00:00
Martin Fuchs f74e715bab Fixed options for winebuild. 2003-12-15 19:50:42 +00:00
Alexandre Julliard 97657b1dcf Get rid of the msdos/ directory. 2003-11-14 21:12:03 +00:00
Alexandre Julliard 7999469e7d Moved memory/environ.c, memory/virtual.c and misc/cpu.c to
dlls/kernel.
Get rid of the memory/ directory.
2003-11-13 20:58:55 +00:00
Alexandre Julliard 357c7401b9 Re-use the loader directory for the main wine loader, and get rid of
the miscemu directory.
2003-11-06 01:17:56 +00:00
Francois Gouget f405629e8e Weekly spelling fixes. 2003-10-28 21:45:30 +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
Francois Gouget 7aa0f3c41d Update winapi and c2man so they know about -ret16. Remove support for
the obsolete pascal16 and -noimport.
Update modules.dat so winapi knows about the new dlls.
2003-09-29 20:15:24 +00:00
Jon Griffiths 33c069ae30 Added some needed config.h entries. 2003-09-23 22:51:11 +00:00
Alexandre Julliard ccc7570b84 Get rid of relay32 directory. 2003-09-19 04:36:54 +00:00
Alexandre Julliard 4e874ee0d7 The if1632 directory no longer exists. 2003-08-26 02:31:43 +00:00
Jon Griffiths 40085f8a8c ole/ directory doesn't exist anymore. 2003-08-18 19:48:14 +00:00
Patrik Stridvall c5f834ce6a - API files update.
- Minor bug fixes.
2003-08-08 21:04:17 +00:00
Jon Griffiths 0e8c8cb246 Handle long file names in pre-build step (quote them).
dlls/gdi/win16drv doesn't exist any more.
2003-07-18 22:53:33 +00:00
Francois Gouget 617cf92602 library/Makefile.in and unicode/Makefile.in don't exist anymore. 2003-05-13 00:29:09 +00:00
Hans Leidekker 0c3e654b1c Make winapi_check handle spec files where no handler is specified. 2003-04-07 23:19:43 +00:00
Jon Griffiths 272d240402 Output a dummy function for linking.
Define __WINE_USE_NATIVE_HEADERS for tests that need to care.
Change the debug information format to prevent winedbg from crashing.
2003-03-15 19:36:16 +00:00
Alexandre Julliard f8bac62769 Do not define __WINESRC__ when building tools and miscemu. 2003-01-09 01:57:15 +00:00
Francois Gouget dcfc25e982 Add support for .drv extension (for winspool.drv tests for instance). 2003-01-07 19:40:00 +00:00
Dimitrie O. Paun 8b36681bad Rename __WINE__ to __WINESRC__. 2003-01-04 00:52:18 +00:00
Patrik Stridvall b6077c6632 Added --include-quotes option that fixes #include to use the correct
of <> and "".
2003-01-03 03:05:41 +00:00
Patrik Stridvall 4715b802a7 - API files update.
- Minor improvement and bug fixes.
2003-01-02 19:26:11 +00:00
Francois Gouget 95217843d5 The link command specifies which version of the C library to link with
(see /M[TD]d? option). So we must not explicitly link with
'msvcrt.lib'. Fixes the msvcrt test crashes.
2002-12-18 02:22:12 +00:00
Patrik Stridvall fc46e46240 - Fixed bug caused by changes to Wine.
- Added support for running all the tests in batch.
2002-11-30 19:03:51 +00:00
Patrik Stridvall f2c2eafafb - API files update.
- Minor improvement and bug fixes.
2002-11-27 20:11:10 +00:00
Vincent Béron 1eb106b92f Removed some unused types. 2002-11-18 23:12:44 +00:00
Patrik Stridvall b3da4abc57 Added tests for a few new DLLs. 2002-11-12 01:05:17 +00:00
Patrik Stridvall 14fa65948b - API files update.
- Fixed options --cross-call-{unicode-ascii,win32-win16}.
- Minor reorganization of the global checks.
2002-11-11 19:55:11 +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 eb4db9471f API files update. 2002-11-06 19:58:02 +00:00
Patrik Stridvall 93cf466cba - Updated it to support changes in Wine.
- Added support for C++ compilation (off by default).
2002-11-04 22:41:00 +00:00
Patrik Stridvall 5554838292 Added tests for normal types (not just structures). 2002-11-04 22:40:13 +00:00
Patrik Stridvall ec50ab2a33 API file update. 2002-10-29 21:30:32 +00:00
Patrik Stridvall 011fc645a3 Add new options --wine and --winetest so workspace and project files
for Wine and Winetest might be generated independently.
2002-10-29 21:25:09 +00:00
Patrik Stridvall 1a6898b8ef Added support for excluding optional fields. 2002-10-29 21:23:44 +00:00
Patrik Stridvall ccfd32fbf6 - Added proper parsing of the Makefile.in's to find the tests.
- Added support for optionally using the Microsoft headers instead of
  the Wine headers.
2002-10-23 20:16:12 +00:00
Patrik Stridvall 3007bd437e Minor modifications and improvements. 2002-10-23 18:44:46 +00:00
Patrik Stridvall 724c1a60ff - Better .dsp file generation for .exe outputs
- Added generation of winetest.dsw for building wine tests under
  Windows (currently very kludgy, but it works to some extent).
2002-10-18 00:20:58 +00:00
Patrik Stridvall cff905837f - Fixed broken winapi_extract options --{pseudo-,}stub-statistics.
- Added new winapi_extract options --{pseudo-,}implemented.
2002-10-15 02:15:35 +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 bd68e06896 - API file update.
- Minor bug fixes.
2002-10-02 01:23:55 +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
Patrik Stridvall de306f2e67 - Don't add standard headers for the dll separation hacks.
- API files update.
2002-09-24 18:27:47 +00:00
Patrik Stridvall d56fd1a72f - Added support for %struct16 (used by CLSID).
- API files update.
2002-09-24 03:07:38 +00:00
Patrik Stridvall 11f0359977 - Made the new C parser handle the current Wine source.
- Added a compabillity layer between the old and the new C parser.
- Added parsing of data structures.
2002-09-23 20:38:30 +00:00
Patrik Stridvall c6629293a8 Minor bug fixes and improvements. 2002-09-12 22:25:35 +00:00
Patrik Stridvall e298097640 - Made remove trailing whitespace a default off option.
- Add support for C++ to C comment conversion.
2002-09-12 20:42:44 +00:00
Patrik Stridvall 15e6c40a2f API files update. 2002-09-09 19:18:16 +00:00
Patrik Stridvall 175234c893 - Proper handling of GDI32 and USER32.
- Added PACKAGE_* for the config.h generation.
- Proper include path for the resource compiler.
- Minor bug fixes and improvements.
2002-08-30 00:01:55 +00:00
Patrik Stridvall d6b45453a0 API files update. 2002-08-30 00:01:19 +00:00
Patrik Stridvall 440b021592 New tool winapi_cleanup for doing simple automatic cleanups.
Currently it removes trailing white space from the .[ch] files.
2002-08-28 23:42:57 +00:00
Patrik Stridvall cea6df7787 Added Microsoft Visual Studio workspace and project file maker. 2002-08-27 00:29:36 +00:00
Patrik Stridvall 511cea7e50 API files update. 2002-08-20 00:06:18 +00:00
Patrik Stridvall 5694feeeb8 API file update. 2002-08-09 01:03:48 +00:00
Patrik Stridvall 5379c7901c - Report broken forwards.
- API files update.
2002-07-23 01:59:09 +00:00
Patrik Stridvall 1932045ec0 Handle forwarded functions properly (based on a patch by Francois
Gouget).
2002-07-22 20:37:30 +00:00
Patrik Stridvall 098883be33 Fixed winapi_extract. 2002-07-20 20:06:13 +00:00
Patrik Stridvall 0704650f64 Merged all API files into two files (Win16/Win32). 2002-07-19 00:31:05 +00:00
Alexandre Julliard f673b71ece Fixed make install target to work even when nothing has been compiled
yet.
Added install-lib and install-dev targets to allow partial
installations; moved winemaker.man and winelauncher.in to better fit
in the new install categories.
2002-06-14 23:48:27 +00:00
Alexandre Julliard 7cae558bdc Removed some more trailing whitespace. 2002-06-01 02:55:48 +00:00
Alexandre Julliard ce830a9c18 Added mkinstalldirs to create directories more portably. 2002-05-09 04:31:39 +00:00
Patrik Stridvall c56ed505f3 - API files update.
- Fixed parser to handle C/C++ comments in strings.
- Report if C++ comments are used.
2002-04-29 18:45:12 +00:00
Alexandre Julliard 0799c1a780 Added LGPL standard comment, and copyright notices where necessary.
Global replacement of debugtools.h by wine/debug.h.
2002-03-09 23:29:33 +00:00
Patrik Stridvall a44d9fca54 Minor API update. 2002-01-31 21:46:40 +00:00
Patrik Stridvall b6754d8313 Generate Perl modules defining prototypes for exported functions. 2002-01-21 17:36:35 +00:00
Patrik Stridvall d171a552bb - FreeBSD now supported.
- Much more work on the new C parser.
- API files update.
2001-09-10 23:16:05 +00:00
Patrik Stridvall aeb023f352 - Continued on the new C parser.
- More reorganizations and fixes.
- API files update.
2001-08-22 18:09:15 +00:00
Patrik Stridvall 4b33b1322d - Begun implementation of a C statements parser.
- More reorganizations and fixes.
2001-08-09 21:35:38 +00:00
Patrik Stridvall 647ac511a7 Made it possible to install the winapi tools. 2001-07-30 20:21:34 +00:00
Patrik Stridvall cec294e4f3 A few bug fixes. 2001-07-30 18:49:10 +00:00
Patrik Stridvall 5bc9a0b623 A few bug fixes. 2001-07-29 20:19:14 +00:00
Patrik Stridvall 67f0a70c33 - A few more bug fixes
- Reorganization continues
- New tool (make_filter) for filtering make output added
2001-07-26 21:42:12 +00:00
Patrik Stridvall 1c61b3babc Yet another major reorganization and a few new features. 2001-07-23 23:20:56 +00:00
Patrik Stridvall 027c7a1f9b Minor reorganisation and a few bug fixes. 2001-07-19 19:10:03 +00:00
Patrik Stridvall d07a646f0f Several additions and bug fixes. 2001-07-18 20:09:12 +00:00
Patrik Stridvall bda507405e Several additions and bug fixes. 2001-07-14 00:48:41 +00:00
Patrik Stridvall b59a9c7622 Several additions and bug fixes. 2001-07-12 22:22:05 +00:00
Patrik Stridvall c3e8ac32d9 Major reorganization and cleanup. 2001-07-11 17:27:45 +00:00
Patrik Stridvall 47a99e1a78 Several bug fixes and additions. 2001-07-08 20:33:20 +00:00
Patrik Stridvall 0e397febb0 Several bug fixes and additions. 2001-07-02 01:21:48 +00:00
Patrik Stridvall f20beca7e6 Several bug fixes and additions. 2001-06-28 18:01:39 +00:00
Patrik Stridvall 35a723b5bf Several bug fixes and additions. 2001-06-20 22:53:21 +00:00
Patrik Stridvall 163652b3f6 Several bug fixes and additions. 2001-06-19 03:34:39 +00:00
Patrik Stridvall 6a012e2502 - New common code for the winapi tools.
- New tool for extracting source code information.
- New tool for automatically modifying (fixing) the source code.
2001-06-13 19:38:29 +00:00