Commit graph

441 commits

Author SHA1 Message Date
Amine Khaldi
864fd70bcc [CRT/STARTUP]
* Sync startup code to recent mingw-w64. RosBE 2.0 here we come !

svn path=/trunk/; revision=52111
2011-06-06 10:01:14 +00:00
Amine Khaldi
b6d8950a07 [CMAKE]
* chkstk is already part of msvcrtex. Just update it.

svn path=/trunk/; revision=52099
2011-06-05 20:57:13 +00:00
Amine Khaldi
fbe0668c94 [CMAKE]
* Fix msvcrtex unix build.

svn path=/trunk/; revision=52096
2011-06-05 19:44:33 +00:00
Amine Khaldi
0e21352b22 [CMAKE]
* Link msvcrtex to chkstk.

svn path=/trunk/; revision=52095
2011-06-05 18:56:29 +00:00
Amine Khaldi
0a457d3246 [CMAKE]
* Add chkstk library and link crt against it.
* Add chkstk_ms.s to libcntpr source files.

svn path=/trunk/; revision=52094
2011-06-05 18:42:09 +00:00
Jérôme Gardou
989c121257 [CMAKE]
fix pch support, with proper dependancies.
  Use cmake built-in functions instead of doing weird "magic" with tabs and spaces.
  According to gcc doc, if header.h is precompiled, the output should be named "header.h.gch" and not anything else.

svn path=/trunk/; revision=52058
2011-06-02 12:18:22 +00:00
Timo Kreuzer
29a7aa1288 [CRT]
in _flsbuf, always reset _cnt to 0 and don't allocate/use a buffer when _IONBUF is set. Fixes a regression in msvcrt_winetest file.

See issue #5829 for more details.

svn path=/trunk/; revision=52040
2011-06-01 12:08:02 +00:00
Timo Kreuzer
aebc59bf83 fix build
svn path=/trunk/; revision=52024
2011-05-31 17:50:55 +00:00
Timo Kreuzer
94ce2dcf66 [CRT]
Rewrite _splitpath.
See issue #6244 for more details.

svn path=/trunk/; revision=52023
2011-05-31 17:29:49 +00:00
Amine Khaldi
374a063487 [CMAKE]
* Add missing dependency.

svn path=/trunk/; revision=51990
2011-05-29 09:55:23 +00:00
Timo Kreuzer
597107fc28 [CMAKE]
- Remove last traces of mingw_common
- adopt msvcrtex on msvc builds
- Fix MSVC warnings in crtexe.c, already pushed upstream

svn path=/trunk/; revision=51868
2011-05-23 18:27:16 +00:00
Timo Kreuzer
49988a5137 [CRT]
Fix a bug in amd64 version of __chkstk_ms, noticed by Stefan

svn path=/trunk/; revision=51861
2011-05-23 17:13:38 +00:00
Timo Kreuzer
6243472331 [CMAKE]
- Create a new library msvcrtex, which will be automatically linked, when msvcrt is linked. This is yet a minimal version which replaces the different mingw libs.
- Use proper unicode entrypoints
- remove unneeded libcoldname.a

svn path=/trunk/; revision=51860
2011-05-23 15:50:03 +00:00
Timo Kreuzer
fae2044a23 [CMAKE]
Integrate cmake stuff into trunk
Only files added.

svn path=/trunk/; revision=51783
2011-05-16 13:12:07 +00:00
Timo Kreuzer
c016e5d41e [CRT]
- Implement __chkstk_ms for x86 and amd64
- amd64 code is based on code by Kai Tietz and Richard Henderson
- x86 code is based on old __chkstk implementation and code by Kai Tietz and Richard Henderson
- Function is required by newer gcc versions

svn path=/trunk/; revision=51747
2011-05-14 19:12:09 +00:00
Timo Kreuzer
fb553406c9 [CRT]
Merge r51273 from cmake branch:
The crt library must provide a and w version of the functions and not rely to _UNICODE being set or not

svn path=/trunk/; revision=51713
2011-05-13 20:21:58 +00:00
Timo Kreuzer
1034d441f3 [CRT]
Merge r50693 from cmake banch:
_CxxThrowException is stdcall, not cdecl.

svn path=/trunk/; revision=51707
2011-05-13 19:37:49 +00:00
Timo Kreuzer
3b11a6bdbc [CRT]
Fix a typo in a comment

svn path=/trunk/; revision=51418
2011-04-21 21:49:46 +00:00
Matthias Kupfer
7ce75cdf13 fix accidentally set property svn:executable
svn path=/trunk/; revision=51374
2011-04-17 09:50:07 +00:00
Colin Finck
7ffb757e8b [CRT]
- Revert 38185 which synced fputwc to the Wine version for the sake of fixing Winetests.
  This removed the implicit ANSI conversion, which was honestly checking the wrong flags. The new version correctly checks for WX_TEXT and only does the conversion in this case. This way we also don't fail any additional Winetests.
- Simplify streamout_char in the new printf implementation and use _fputtc instead of _flsbuf.
  This way, we correctly do an implicit ANSI conversion when required.
- Fix fgetwc declaration.

Thanks to Timo for many hints and assistance. Most of this code is actually his idea :-)
Thanks to Olaf for providing a build server to speed up my code tests.

See issue #6007 for more details.

svn path=/trunk/; revision=51058
2011-03-15 23:45:38 +00:00
Timo Kreuzer
031e55222a [CRT]
Patch by Thomas Faber: Fix nt version of mbstowcs.

See issue #5983 for more details.

svn path=/trunk/; revision=51003
2011-03-09 15:29:13 +00:00
Timo Kreuzer
e9b58620aa [CRT]
Fix special behaviour of wsprintf: when used with # flag, the "0x" prefix does not count into the field width, so we have to add additional 2 characters here. Fixes Opera installer.
See issue #5900 for more details.

svn path=/trunk/; revision=50866
2011-02-22 17:29:32 +00:00
Timo Kreuzer
39a0c140c2 [CRT]
Improve _getdrive and _tchdir. Patch by devpao (devotip at tiscali dot it), small formatting change by me.
See issue #5848 for more details.

svn path=/trunk/; revision=50861
2011-02-21 23:11:53 +00:00
Timo Kreuzer
f24d76dc84 Merge CRT changes from cmake branch (mainly MSVC compilation fixes)
svn path=/trunk/; revision=50647
2011-02-10 11:35:05 +00:00
Timo Kreuzer
fee844b6ff Merge all amd64 related changes from cmake branch
svn path=/trunk/; revision=50640
2011-02-10 10:30:43 +00:00
Timo Kreuzer
7cf49f4328 [CRT]
- Replace isinf with !_finite and isnan with _isnan

svn path=/trunk/; revision=50499
2011-01-26 16:28:34 +00:00
Timo Kreuzer
97b0bc9cd2 [CRT]
Fix uninitialized warning

svn path=/trunk/; revision=50387
2011-01-15 11:18:01 +00:00
Timo Kreuzer
3d2338dcfb [CRT]
Fix miscalculation of number of decimal points to shift for %f format. Should fix shlwapi:string tests and bug 5818.

svn path=/trunk/; revision=50385
2011-01-14 20:00:10 +00:00
Timo Kreuzer
85a33b9385 [CRT]
- Add user32_wsprintf library, with all the wsprintf functions, generated from the same codebase
- simplify handling of ll modifier in streamout

svn path=/trunk/; revision=50360
2011-01-11 19:09:48 +00:00
Timo Kreuzer
caa8ab6ac5 [CRT]
Remove deprecated <if>.

svn path=/trunk/; revision=50356
2011-01-11 15:17:35 +00:00
Timo Kreuzer
7397aa09ad [CRT]
Get rid of the old printf code and some unused functions. 3346 lines of code less.

svn path=/trunk/; revision=50355
2011-01-11 13:13:47 +00:00
Timo Kreuzer
0b68bdaf30 [CRT]
Improve code readability a bit

svn path=/trunk/; revision=50354
2011-01-11 12:17:46 +00:00
Timo Kreuzer
c413c22ddf [CRT]
Fix _flsbuf return value

svn path=/trunk/; revision=50314
2011-01-07 21:15:35 +00:00
Timo Kreuzer
2f04a69915 [CRT]
Fix build

svn path=/trunk/; revision=50291
2011-01-04 22:29:43 +00:00
Timo Kreuzer
79ec14277f [CRT]
- Rewrite broken _flsbuf and implement _flswbuf
- use _flswbuf in wstreamout
- Fixes broken text output in dwnl etc

svn path=/trunk/; revision=50290
2011-01-04 22:22:13 +00:00
Johannes Anderwald
00b94dd55a [CRT]
- Fix build

svn path=/trunk/; revision=50287
2011-01-04 17:52:34 +00:00
Johannes Anderwald
2a21adaff0 [CRT]
- Set errno when a overflow occurs in strtoull
- Fixes 2 wine tests failures in msvcrt:string

svn path=/trunk/; revision=50286
2011-01-04 17:29:10 +00:00
Timo Kreuzer
391de4dea7 fix build
svn path=/trunk/; revision=50279
2011-01-03 20:00:25 +00:00
Timo Kreuzer
316a3efbac [CRT]
Fix a number of errors in floating point output.

svn path=/trunk/; revision=50278
2011-01-03 19:39:17 +00:00
Timo Kreuzer
a457cc5898 [CRT]
Fix a bug in _ecvt that makes msvcrt_winetest::printf crash

svn path=/trunk/; revision=50275
2011-01-03 11:00:28 +00:00
Timo Kreuzer
6cdeeb6a1e [CRT]
Fix several bugs in new printf implementation.

svn path=/trunk/; revision=50274
2011-01-03 10:33:58 +00:00
Timo Kreuzer
92487266d8 [CRT]
Improve new printf implementation:
- remove duplicated code and implement a generic function for all (v)s(w)(n)printf
- don't call _flsbuf for string streams, while this works on windows, it doesn't work correctly on reactos (bug!)
- Fix return error codes

svn path=/trunk/; revision=50273
2011-01-03 01:07:54 +00:00
Timo Kreuzer
d50bc6057e [CRT]
Fix bugs in new printf implementation: use buffer size in _snprintf and check for the right failure return value of streamout_char.

svn path=/trunk/; revision=50251
2011-01-01 13:50:07 +00:00
Christoph von Wittich
fdea91b64c [CRT]
import strtoi64 from wine 1.3.10

svn path=/trunk/; revision=50159
2010-12-27 12:45:03 +00:00
Christoph von Wittich
7785b6ca52 [CRT]
import MSVCRT_I10_OUTPUT from wine

svn path=/trunk/; revision=50153
2010-12-27 09:07:27 +00:00
Timo Kreuzer
6e95cdc657 [CRT]
rename pow_asm.c to powl.c to reflect it's content.

svn path=/trunk/; revision=50069
2010-12-20 11:48:55 +00:00
Timo Kreuzer
bc5452aa10 [CRT]
Fix bugs in converted asm file. Fixes Firefox color issues.

svn path=/trunk/; revision=50068
2010-12-20 10:16:43 +00:00
Timo Kreuzer
205fe71c5d [CRT]
Fix another typo

svn path=/trunk/; revision=49836
2010-11-28 09:53:22 +00:00
Timo Kreuzer
af040adf50 [CRT]
Fix typos

svn path=/trunk/; revision=49830
2010-11-28 00:10:02 +00:00
Timo Kreuzer
1d70b8136a [ASM]
Merge asm related changes from cmake branch.

svn path=/trunk/; revision=49826
2010-11-27 22:12:15 +00:00