Victor Perevertkin
0c64aed86a
[REACTOS] Introduce .clang-format file
...
And set up a Travis job for checking formatting on PRs
2019-12-28 01:23:49 +02:00
Mark Jansen
9f6a1c9164
[SDK] Add usage / help to gen_baseaddress.py
2019-12-27 19:51:20 +01:00
Katayama Hirofumi MZ
12c683a846
[UNICODE] Re-trial to fix Travis build
2019-12-23 17:05:38 +09:00
Katayama Hirofumi MZ
1ec0e9f6c3
[UNICODE] Trial to fix Travis build
2019-12-23 16:47:01 +09:00
Amine Khaldi
1a472d9453
[UNICODE] Sync with Wine Staging 4.18. CORE-16441
2019-12-23 00:58:51 +01:00
Mark Jansen
c519650009
[SDK] Update the gen_baseaddress script
...
- Remove some debug leftovers
- Automatically write the correct file
2019-12-22 15:38:36 +01:00
Mark Jansen
0e7ab51875
[GEN_BASEADDRESS] Fix the script for python 3 and update *_pe.dll entries,
...
as hinted by hermes
2019-12-22 15:38:30 +01:00
Eric Kohl
d2540090d3
[WIDL] Fix type offset calculation for toplevel pointers to non-basetypes.
...
WIDL used the wrong type information when a pointer to a non-basetype is used as a functions parameter. For example, a 'wchar_t**' would be treated as a 'wchar_t*'.
This patch will be sent upstream.
2019-12-15 18:21:11 +01:00
Serge Gautherie
f5b10b4d0d
[CABMAN] Fix 2 handle leaks, in case of error ( #2044 )
...
CORE-11090
2019-11-27 01:49:08 +01:00
Jérôme Gardou
493ceb7ade
[CMAKE] Fix host tools build on x86-64 mingw
...
Dynamically check for sys/types.h and pid_t in wine config.h
Use TARGET_xxx defines instead of _X86_ as this is undefined by GCC
Add some sense in include directories management by using interface
libraries
2019-11-15 16:22:06 +01:00
Eric Kohl
af7456a1e4
[CABMAN] Third addendum to 7afc888: Also use the the old code in the Trucate() method on Linux
2019-09-19 15:36:18 +02:00
Eric Kohl
0e4dd0fcbc
[CABMAN] Second addendum to 7afc888: Use the old code to make Linux happy.
...
Sorry for the noise, but I do not have a Linux machine to test the build. :-/
2019-09-19 15:25:23 +02:00
Eric Kohl
2949b2f08b
[CABMAN] Addendum to 7afc8882: Use PATH_MAX instead of MAX_PATH
2019-09-19 15:07:57 +02:00
Eric Kohl
7afc888279
[CABMAN] Do not use tmpfile() because it does not work well on Windows XP
...
- Use tempnam() and fopen() instead.
- Prevent the use of file names with a leading slash or backslash.
- Also prevent the use of file names with a trailing dot.
- Remove temporary files after use.
2019-09-19 14:56:50 +02:00
Timo Kreuzer
e8ab2736e7
[SPEC2DEF] Refactor to avoid parsing multiple times
2019-09-15 14:12:42 +02:00
Timo Kreuzer
9cff65970f
[SPEC2DEF] Fix decorated exports on non-x86
2019-09-15 14:12:42 +02:00
Timo Kreuzer
824e08c710
[SPEC2DEF] Handle auto-naming of "@()" functions during output
...
This allows to do the parsing and output separately, since the generated name is no longer stored on the stack during parsing.
2019-09-15 14:12:42 +02:00
Timo Kreuzer
80c0b083d8
[SPEC2DEF] Use const properly
2019-09-15 12:06:47 +02:00
Timo Kreuzer
c95b5e6f9b
[SPEC2DEF] Improve error output
2019-09-15 12:06:47 +02:00
Timo Kreuzer
43c93faa16
Revert "[CABMAN] Fix a problem with creating temp files on some Windows system"
...
This reverts commit bcb0d7c6c9
.
2019-09-01 16:26:01 +02:00
Andrew Cook
ce531a28ec
Rework host tools
...
Now configured at the same time as reactos and only
one list of targets to maintain
Correctly rebuilds when a tool changes (tested widl)
2019-08-17 17:39:31 +02:00
Thomas Faber
e51f4db7d0
[RSYM] When determining the current function, always prefer COFF symbols if they're closer.
2019-08-17 10:22:36 +02:00
Hermès Bélusca-Maïto
2becb000c8
[SPEC2DEF] Check whether OLE-specific exports do not have assigned ordinals, as they should be.
...
The check is done at the same time as when we check also that these
exports are marked PRIVATE or not.
This permits us to check for the same conditions as MS' LINK.EXE, but
here on GCC builds as well.
See the following pages for more details:
https://docs.microsoft.com/en-us/cpp/error-messages/tool-errors/linker-tools-warning-lnk4104
https://docs.microsoft.com/en-us/cpp/error-messages/tool-errors/linker-tools-warning-lnk4222
In this last page (LNK4222), the specified list of exports is incomplete.
Manual tests showed that the very same list as for LNK4104 is checked.
2019-07-28 15:50:30 +02:00
Timo Kreuzer
9efeefd506
[GEN_BASEADDRESS] Add framebuf.dll and framebuf_new.dll to exclude ist in gen_baseaddress.py
2019-07-20 13:56:18 +02:00
Timo Kreuzer
599843ac8e
[TOOLS] Make gen_baseaddress.py python 3 compatible
2019-07-20 13:56:18 +02:00
Colin Finck
2c11c41115
Add a shared "port" directory for POSIX functions needed by multiple host tools (getopt/mkstemps) and import the one and only getopt from glibc.
...
This finally fixes our duplicated getopt functions from different sources and gives us an up to date and the most compatible implementation.
isohybrid actually relies on a glibc-specific getopt behavior that we previously hacked into the reactos_support_code.c implementation derived from BSD/mingw-w64.
widl also needs getopt and previously used an even older BSD-derived code.
2019-04-28 23:23:06 +02:00
Colin Finck
c02257ef57
[ISOHYBRID] Fix the remaining warnings properly.
...
I will send these changes upstream (minus the REACTOS_ISOHYBRID_EFI_MAC_SUPPORT ifdefs).
2019-04-28 23:22:53 +02:00
Timo Kreuzer
f47f45dbdd
[TOOLS] Fix/suppress all MSVC/x64 warnings ( #1525 )
2019-04-28 23:21:48 +02:00
Serge Gautherie
1631f37404
Merge pull request #1253 from SergeGautherie/SergeGautherie/PRonly_Log2Lines_handle_escape_cmd_Path-LineOut
...
[LOG2LINES] handle_escape_cmd(): Remove 2 unused parameters
2019-03-16 11:23:27 +01:00
Serge Gautherie
29c9e92c9e
[LOG2LINES] Add a TODO, Use a snprintf()
...
Addendum to c5d8d8d
.
2019-03-16 11:22:58 +01:00
Timo Kreuzer
6ddf034ab4
[MKISOFS] Silence MSVC warnings
2019-03-04 21:58:42 +01:00
Timo Kreuzer
73c776c744
[WIDL] Fix non-x86 builds
2019-03-04 21:58:42 +01:00
Amine Khaldi
22c8b4bf12
[WIDL] Sync with Wine Staging 4.0. CORE-15682
2019-01-29 13:18:09 +01:00
Serge Gautherie
c5d8d8d289
[LOG2LINES] Use translate_line() for command line input too
...
NB: Last step would be to re-use translate_files()...
2019-01-05 13:39:02 +01:00
Mark Jansen
1692ab3fe3
[APPCOMPAT] Move sdbtagid.h and sdbtypes.h to a shared location
2019-01-05 13:11:35 +01:00
Timo Kreuzer
bcb0d7c6c9
[CABMAN] Fix a problem with creating temp files on some Windows system
2018-12-29 21:37:42 +01:00
Serge Gautherie
5c77cd9050
[LOG2LINES] Partially sync output format from command line input ( #1109 )
2018-12-21 00:27:01 +01:00
Mark Jansen
1e568ce62d
[SDK] Update gen_baseaddress.
...
* Speed up the script by using the fallback by default
* Suggest what cmake file to edit
* Add support for x64 modules (addresses not updated yet)
CORE-14923
2018-12-12 00:41:07 +01:00
Serge Gautherie
b92f1f4cdf
[LOG2LINES] Free all memory on exit.
2018-12-08 17:38:24 +01:00
Serge Gautherie
ca2bb9ee28
[LOG2LINES] Optimize malloc() calls.
2018-12-08 17:38:16 +01:00
Hermès Bélusca-Maïto
dbaa875f05
[LOG2LINES] Fix indentation.
2018-12-08 17:38:03 +01:00
Serge Gautherie
f5f515c17c
[LOG2LINES] Replace overkill malloc() usage.
...
NOTE: Since the 'cache_name' and 'tmp_name' pointers move inside the
corresponding cached strings, separate cache buffers are needed.
2018-12-08 17:34:18 +01:00
Hermès Bélusca-Maïto
aef566c19e
[MKHIVE] Minor code rearrangement.
2018-10-20 19:52:07 +02:00
Hermès Bélusca-Maïto
da019b0fc5
[MKHIVE] Fix some compilation warnings.
2018-10-19 00:25:19 +02:00
Hermès Bélusca-Maïto
e723b9f4b4
[MKHIVE] Fix cases where 'rc' was used without being initialized.
...
Fixes crashes when the tool is compiled with Run-Time Checks enabled.
And thus should fix the MSVC buildbots!
Thanks to Pierre for having brought this issue to me.
CORE-15201
2018-10-18 23:11:55 +02:00
Hermès Bélusca-Maïto
473ca91166
[MKHIVE] Fix compilation warnings.
2018-10-15 00:37:08 +02:00
Hermès Bélusca-Maïto
fc35f6eb4b
[MKHIVE] Return win32-like error codes for functions that expect to do so. Fix and comment out some unused ERROR_xxx/STATUS_xxx defines.
2018-10-14 17:10:04 +02:00
Hermès Bélusca-Maïto
8f82b00fa6
[MKHIVE] Minor code formatting.
2018-10-14 16:28:13 +02:00
Hermès Bélusca-Maïto
d91a47826e
[MKHIVE] Implement RegDeleteKeyW() and RegDeleteValueW().
2018-10-14 15:59:57 +02:00
Hermès Bélusca-Maïto
6a44c10d5d
[MKHIVE] Minor improvements.
...
- Fix a bug in RegpCreateOrOpenKey() when we attempt to open an
non-existing (sub-)key.
- Check failure of RegCreateKeyExW() in CreateSymLink().
- Remove unneeded includes.
- Update few comments.
2018-10-14 15:59:54 +02:00
Hermès Bélusca-Maïto
ec3c61c233
[MKHIVE] Simplify CmiAddValueKey() by using CmpAddValueToList().
2018-10-14 15:59:50 +02:00
Hermès Bélusca-Maïto
a965cf6e04
[MKHIVE] Sync a bit more of reginf.c with the corresponding setupapi code.
2018-10-14 15:59:46 +02:00
Hermès Bélusca-Maïto
81d435a181
[MKHIVE] Implement and use RegCloseKey().
2018-10-14 15:59:41 +02:00
Hermès Bélusca-Maïto
4caf391324
[NTOS][MKHIVE] Minor code formatting.
2018-10-14 15:59:34 +02:00
Mark Jansen
d564c7c8e3
[SPEC2DEF] Fix support for different OS versions.
2018-10-12 19:30:35 +02:00
Hermès Bélusca-Maïto
4e6fc201a0
[MKHIVE] Fixes for the previous fixes.
...
- Fix parsing of the options.
- Only uppercase the file name part and NOT the full path!
And do it in a way GCC-Linux correctly understands, aka.:
*ptr = toupper(*ptr); ++ptr;
but NOT!:
*ptr++ = toupper(*ptr);
(that last one worked on GCC-Win and MSVC).
[CMAKE] Let's keep SETUPREG.HIV and BCD hive file names in uppercase
(use the '-u' switch) while keeping the other ones in lowercase.
Should definitively fix GCCLin builder!
2018-10-09 01:33:10 +02:00
Hermès Bélusca-Maïto
f37dd1e10a
[MKHIVE] Remove support for '/' options, this does not behave well under Linux.
2018-10-09 00:25:01 +02:00
Hermès Bélusca-Maïto
efbe071e02
[MKHIVE] Minor additional functionality.
...
- Add support for '/' switch characters.
- Add '-?' switch.
TEMPORARY:
- Add a '-u' switch to generate hive file names in uppercase (by default
we keep these in lowercase). Should help in fixing GCCLin builder.
[CMAKE] Fix expected file name case. Should help in fixing GCCLin builder.
2018-10-09 00:15:14 +02:00
Hermès Bélusca-Maïto
c069ca1797
[MKHIVE] Improve dprint output (delimiting where strings start & end: is useful for empty strings).
...
svn path=/branches/setup_improvements/; revision=74768
2018-10-08 21:23:39 +02:00
Hermès Bélusca-Maïto
84d2264d9b
[MKHIVE][CMAKE] Make mkhive a bit more flexible, so that it can generate only specific hives on-demand (and not all of them always at once).
...
This commit is needed for building a single bootcd registry hive. It will also enable 1-st stage setup to have a proper registry present as done on Windows.
CORE-13347
[CMAKE]
Note that the mkhive commands should really depend on the generated UTF16 INF files since the latter are those that are actually used as input for mkhive.
Otherwise, the mkhive calls & the UTF16 INF file conversion is not serialized and we can generate "corrupted" hives due to the fact that mkhive is using
INF files that are in the process of being (and therefore, only partially) generated.
svn path=/branches/setup_improvements/; revision=74741
svn path=/branches/setup_improvements/; revision=74749
2018-10-08 21:23:38 +02:00
Thomas Faber
5e6810d5d2
[SDK] Make gen_baseaddress.py compatible with Python 3.
2018-09-08 11:11:08 +02:00
Serge Gautherie
8283a9ece2
[LOG2LINES] Enforce "Iso" type when unpacking the Iso file
...
Work around some "7z" dealing with files not named "*.iso" as "Cab" type.
Issue at least with "7-Zip [64] 9.20" on "Ubuntu 16.04".
CORE-14734
2018-08-19 17:39:15 +02:00
Serge Gautherie
97d3b3ce33
[REACTOS] RtlAssert(): use "%lu" as LineNumber format.
2018-08-08 21:24:07 +02:00
Timo Kreuzer
cf77354dce
[REACTOS] Fix 64 bit issues
2018-08-04 19:19:34 +02:00
Mark Jansen
6b92dd7323
[SDK] Update gen_baseaddress.py for reserved base addresses.
...
CORE-11382
2018-07-12 21:55:21 +02:00
Mark Jansen
5a9dc5e791
[SDK] Add gen_baseaddress.py
...
This tool was already used to calculate the last baseaddress update.
It is based on baseaddress.sh that has been floating around.
CORE-11382
2018-07-01 20:17:46 +02:00
Serge Gautherie
4f1a29e1b1
[LOG2LINES] translate_line(): Let 'offset' be an 'unsigned int', instead of a 'size_t' ( #624 )
...
Avoids half-uninitialized value on, i.e., Linux 64-bit (with ReactOS 32-bit).
CORE-14737
2018-06-21 14:05:35 +02:00
Mark Jansen
3551953c84
[XML2SDB] Add support for TAG_LINK_DATE and TAG_LINKER_VERSION.
2018-04-22 18:51:53 +02:00
Timo Kreuzer
01df9a410c
[SPEC2DEF] Implement support for different OS versions
2018-04-21 18:31:27 +02:00
Mark Jansen
767fc4a6ad
[XML2SDB] Add support for DATA in Layers.
2018-04-12 18:49:12 +02:00
Amine Khaldi
8296d6c1ef
[WIDL] Sync with Wine Staging 3.3. CORE-14434
2018-04-11 12:29:04 +01:00
Amine Khaldi
6cbd6bd3ce
[UNICODE] Sync with Wine Staging 3.3. CORE-14434
2018-04-11 12:25:43 +01:00
Mark Jansen
1d0e7bddea
[XML2SDB] Parse Flags.
2018-01-27 15:12:24 +01:00
Dmitry Bagdanov
991d33c5d1
[CABMAN] Move CCFDATAStorage class to a separate file
2018-01-27 10:42:05 +01:00
Dmitry Bagdanov
ae391dd609
[CABMAN] Remove _WIN32 ifdef's
2018-01-27 10:42:05 +01:00
Amine Khaldi
891d81e058
[WIDL] Sync with Wine Staging 2.16. CORE-13762
...
b42a155 widl: Handle C++ aggregate returns in a MSVC compatible way.
084fa63 widl: Only generate Proxy Stubs when functions have the call_as attribute.
fbdf119 widl: Try to find imported typelib using .tlb extension if it wasn't specified.
2017-10-08 13:41:50 +01:00
Colin Finck
c2c66aff7d
Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys.
2017-10-03 07:45:34 +00:00