Commit graph

34300 commits

Author SHA1 Message Date
Stefan Ginsberg d2bf1c5f4f - Silence ext2 FSD warnings. Also fix some bugs where the return status wasn't properly set.
- 'allowwarnings=true' -- not anymore

svn path=/trunk/; revision=38302
2008-12-23 17:43:25 +00:00
Aleksey Bragin f0ad8ee641 - Get back to using deprecated functions (because of linux...).
- Disable warning 4996.

svn path=/trunk/; revision=38301
2008-12-23 14:35:23 +00:00
Aleksey Bragin 9a27812344 - Replace all deprecated functions with underscored names.
- Add _CRT_SECURE_NO_DEPRECATE to VC project file to suppress security warnings.

svn path=/trunk/; revision=38300
2008-12-23 14:19:19 +00:00
James Tabor edc3ce63d5 - More updates to global server information structure.
svn path=/trunk/; revision=38296
2008-12-23 04:51:03 +00:00
KJK::Hyperion f72b85bdf7 modified include/reactos/libs/pseh/pseh2.h
modified   lib/pseh/framebased-gcchack.c
modified   lib/pseh/i386/framebased-gcchack.S
   (Re)added arguments to _SEH2_EXCEPT nested routines, so that using _SEH2_GetExceptionCode and _SEH2_GetExceptionInformation in exception filters doesn't force the creation of function trampolines (and related horrid inline code)
   Reimplemented some internal library routines in C

svn path=/trunk/; revision=38295
2008-12-23 02:45:25 +00:00
Timo Kreuzer 4750c0b942 For some unknown reason wmc likes to include string.h from the wine folder and we cannot link it on linux hosts. This hack should hopefully resolve the issue.
svn path=/trunk/; revision=38294
2008-12-23 02:36:25 +00:00
Timo Kreuzer c8ad8b0005 sorry forgot this file, another wine compatibility header
svn path=/trunk/; revision=38293
2008-12-23 02:22:44 +00:00
Timo Kreuzer d7b6e7cdad CRT header compatibility update.
asser.h:
- prototypes for _assert and _wassert, add wassert macro, TODO: reenable assert macro
conio.h:
- Add deprecation macros and some cleanup
crtdbg.h:
- Add _ASSERT_WRN, ASSERTE_WRN, ASSERT_EXPR_WRN
ctype.h:
- cleaup and fix _pctype and __pctype_func
- add _CRTIMP where needed
- add deprecation macros
dos.h:
- enable _enable and _disable
io.h:
- enable use of _INTEGRAL_MAX_BITS
- remove some defines, other cleanup
math.h:
- remove system_header
- rename include guard to _INC_MATH
- fix definition of _HUGE
- add _CRTIMP where needed
stdio.h:
- fix _iob[] and stdstram defines
- add _CRTIMP where needed
- enable non-conforming swprintf defines
- remove some mingw specific stuff
string.h:
- add _CRTIMP and deprecation macros
sys/stat.h:
- some cleanup
sys/timeb.h:
- add struct timeb
- remove #defines
- add deprecation macros
sys/utime.h:
- remove unneeded inline functions, cleanup
time.h:
- remove #defines
- add _CRTIMP and deprecation macros
wchar.h:
- fix _iob[], stdstream, _pctype and __pctype_func
- add _wfinddate_t, _wfinddatai64_t and _stat
- add _CRTIMP where needed
- remove defines

svn path=/trunk/; revision=38292
2008-12-23 02:15:24 +00:00
Timo Kreuzer f6eb8adfb6 Replace all deprecate functions like wcsicmp with the new ones, like _wcsicmp in our own code. Define __WINESRC__ or _CRT_NONSTDC_NO_DEPRECATE where neccessary in 3rd party code to silence warnings about deprecated functions, that the upcoming crt header update will create. Remove allowwarnings="true" from telnet.
svn path=/trunk/; revision=38291
2008-12-23 01:23:25 +00:00
Timo Kreuzer 565970f956 Replace deprecated stricmp with _stricmp
svn path=/trunk/; revision=38290
2008-12-23 01:22:36 +00:00
Jeffrey Morlan 8bb3a3af67 - cmd_mkdir: Give an error message if the directory already exists (Bug 3961)
- Also, allow multiple directories to be created by one invocation

svn path=/trunk/; revision=38289
2008-12-22 23:50:53 +00:00
Timo Kreuzer a3bf2399ff kjk_hyperion: "underscores solve all issues"
replace wcsicmp with _wcsicmp

svn path=/trunk/; revision=38288
2008-12-22 23:49:02 +00:00
Dmitry Gorbachev d284aa7851 Fix spurious warning/error reported by GCC 4.4.0.
svn path=/trunk/; revision=38287
2008-12-22 23:46:23 +00:00
Dmitry Gorbachev 95e0371f4f Do not pop and push the same reg.
svn path=/trunk/; revision=38286
2008-12-22 23:44:15 +00:00
Dmitry Gorbachev 898f34d2de Define __MINGW_MSC_PREREQ() macro,
build failed with GCC 4.4.0 without it.

svn path=/trunk/; revision=38285
2008-12-22 23:43:10 +00:00
Timo Kreuzer 1be3ebb61b don't define strcasecmp to strcmp, use _stricmp, and define strcasecmp to _strnicmp.
svn path=/trunk/; revision=38284
2008-12-22 23:35:35 +00:00
Timo Kreuzer da70a17936 Replace deprectaed function (unlink, stricmp) with new ones (_unlink, _stricmp)
svn path=/trunk/; revision=38283
2008-12-22 23:24:18 +00:00
Timo Kreuzer a0f2421f8e use _str(n)icmp instead of non-standard str(n)casecmp
svn path=/trunk/; revision=38282
2008-12-22 23:11:21 +00:00
Timo Kreuzer 1fc586e88c Use _getch instead of deprecated getch
svn path=/trunk/; revision=38281
2008-12-22 22:58:41 +00:00
Jeffrey Morlan 781ae61f03 - Make IF command a special form; necessary to make nested multi-line IF blocks work properly
- Implement IF /I option, IF CMDEXTVERSION, and generic comparisons (EQU etc)
- Make IF ERRORLEVEL return true if the errorlevel is greater than the number
- Remove hacked support for multi-line IF blocks from batch.c

svn path=/trunk/; revision=38280
2008-12-22 22:34:51 +00:00
Timo Kreuzer 940dd12ea9 Remove all stuff that is either already defined in crtdefs.h or doesn't belong in the header, based on what ms defines.
svn path=/trunk/; revision=38279
2008-12-22 20:59:56 +00:00
Timo Kreuzer 6da76aad1d Don't use wine's headers and wintrnl.h for exception handling in crt. Instead include ndk and add the few definitions we need to cppexcept.h
svn path=/trunk/; revision=38278
2008-12-22 20:32:47 +00:00
Timo Kreuzer 53c3a69e0c - Add reactos/wine/sys/types.h compatibility header
- winspool: add reactos/wine to include folders

svn path=/trunk/; revision=38277
2008-12-22 20:28:26 +00:00
Timo Kreuzer 79f756b317 Add ssize_t to rosdhcp.h, as ms crt headers (and so our future crt headers) don't define it.
svn path=/trunk/; revision=38276
2008-12-22 20:25:44 +00:00
Stefan Ginsberg 5a52daeb1b - Less hack, more assert
svn path=/trunk/; revision=38275
2008-12-22 19:55:23 +00:00
Timo Kreuzer 695eb19e19 Build MP kernel/hal by default
svn path=/trunk/; revision=38274
2008-12-22 19:22:23 +00:00
Stefan Ginsberg 9775c57652 - Re-enable some Winetests now that Cm sucks less
- Add missing ROS-HACK tag

svn path=/trunk/; revision=38273
2008-12-22 18:48:06 +00:00
Aleksey Bragin 4054e57321 - Fix registry lock leakages in CmpDoOpen in failure cases.
- Add support for a special case of opening existing (cached) KCBs by CmpDoOpen.
- Specify a flag for that case in one specific case inside CmpParseKey, which allows us to get rid of the "\\REGISTRY" hack inside the code, fixes the 'Kcb->RefCount == 1' assertion failure, and certainly fixes registry-related regression tests. There might be some side effects in theory, but since this hack only applied to the root key, they shouldn't happen. Thanks to Stefan for helping in debugging and a testcase.

svn path=/trunk/; revision=38272
2008-12-22 18:47:38 +00:00
Aleksey Bragin 35fab756b4 - Add control flags for CmpDoOpen, CmpCreateKey and CmpUnloadKey.
- Add CmUnloadKey prototype.

svn path=/trunk/; revision=38271
2008-12-22 18:17:23 +00:00
Timo Kreuzer 1f9c4940d2 Introduce new config flag BUILD_MP. Compile MP kernel and hal only when this is set to 1 to save us some time and space.
svn path=/trunk/; revision=38270
2008-12-22 15:23:08 +00:00
Aleksey Bragin c8d9e123b7 - Fix KCB ref leaks in Cm parse routine (thanks Stefan).
svn path=/trunk/; revision=38269
2008-12-22 13:35:08 +00:00
Timo Kreuzer fce144efaa fix another instance of _STATIC_ASSERT
svn path=/trunk/; revision=38267
2008-12-22 06:37:53 +00:00
Timo Kreuzer 1cfe56ee4b Move all stuff from _mingw.h to crtdefs.h that belongs there. Get rid off MINGW_IMPORT
svn path=/trunk/; revision=38266
2008-12-22 05:55:21 +00:00
Timo Kreuzer a4e64ebf0e If ETO_PDY is specified, Dx is a pair of INTs, make sure we access the correct index.
based on aspotashev's patch. Should fix bug #3958
See issue #3958 for more details.

svn path=/trunk/; revision=38262
2008-12-22 04:26:51 +00:00
Timo Kreuzer 766c25b7e3 Some people were thinking they could use NtGdiExtTextOut from within Win32k and get away with it. Since MmCopyFromCaller is broken, it was actually working. Implement NtGdiExtTextOutW as a wrapper around the real function, that is now called GreExtTextOutW, using the naming style that ms also uses to get some more stucture in here. Also get rid of 2 pool allocations and use only one if a local buffer is not sufficient. Should get us more TextOut performance.
svn path=/trunk/; revision=38261
2008-12-22 03:58:04 +00:00
James Tabor 955a660368 - Start populating server information structure. This fixes the icon issues with other languages.
svn path=/trunk/; revision=38258
2008-12-22 02:52:47 +00:00
Stefan Ginsberg e48fb0b04c - More hack
svn path=/trunk/; revision=38256
2008-12-21 23:42:08 +00:00
Timo Kreuzer ff489f9473 Include crtdefs.h instead of _mingw.h in the crt headers (like ms does), so only one header left (crtdefs.h) that includes a non-standard header
svn path=/trunk/; revision=38255
2008-12-21 23:33:19 +00:00
Stefan Ginsberg 31733a5f8a - Disable shell32 execute tests
- Add missing ole32 diff

svn path=/trunk/; revision=38254
2008-12-21 23:16:59 +00:00
Stefan Ginsberg 3f4562d5c7 - Skip a buck load of ole32 tests too
svn path=/trunk/; revision=38253
2008-12-21 22:58:10 +00:00
Timo Kreuzer ebd5a724c6 Update excpt.h, fcntl.h, float.h, math.c, mbctype.h, setjmp.h, share.h, stddef.h, stdio.h, stdlib.h, string.h, wchar.h from ming64
- fix __p__mbctype()
- add some stuff to wine/exception.h that was formerly in except.h, but doesn't belong there
- inlcude intrin.h from _mingw.h

svn path=/trunk/; revision=38252
2008-12-21 22:43:46 +00:00
Stefan Ginsberg fec3246837 - Skip port tests due to missing kernel support
svn path=/trunk/; revision=38251
2008-12-21 22:34:32 +00:00
Stefan Ginsberg 504c9127d3 - Hack away a whole load of msi tests, because Cm sucks
svn path=/trunk/; revision=38250
2008-12-21 22:19:03 +00:00
Stefan Ginsberg 2d59827e7e - Hack away kernel32 pipe tests -- ros' npfs is in a sad, sorry state
- Also skip process console tests (what's that you say? I am a lazy, hacky person? Couldn't agree more)

svn path=/trunk/; revision=38249
2008-12-21 21:52:28 +00:00
Stefan Ginsberg 4bd273ce6c - Use the specified timeout when reading from a mailslot
svn path=/trunk/; revision=38248
2008-12-21 20:52:31 +00:00
Stefan Ginsberg 8270c55829 - Revert 38233 as it kills dhcp.exe
svn path=/trunk/; revision=38247
2008-12-21 20:35:19 +00:00
KJK::Hyperion b4bf27864c modified include/reactos/libs/pseh/pseh2.h
The return_twice and always_inline attributes don't mix: dump _SEH2PretendSetjmp, mark _SEH2EnterFrame as returns_twice (i.e. setjmp-like) instead, piggybacking the pretend-setjmp annotation on a function that's always called anyway. This ACTUALLY ensures GCC won't put variables in registers that might be clobbered by a SEH catch - at nearly no cost in binary code size and complexity

svn path=/trunk/; revision=38246
2008-12-21 19:51:09 +00:00
Stefan Ginsberg 9b32d1a358 - Missed PCACTIVATION_CONTEXT_BASIC_INFORMATION in last commit
svn path=/trunk/; revision=38245
2008-12-21 19:42:23 +00:00
Stefan Ginsberg af117a341f - Add missing ACTIVATION_CONTEXT_BASIC_INFORMATION and WRITE_WATCH_FLAG_RESET
svn path=/trunk/; revision=38244
2008-12-21 19:37:18 +00:00
KJK::Hyperion 21ec6bc780 Remove superfluous dependencies on msvcrt
svn path=/trunk/; revision=38243
2008-12-21 18:21:56 +00:00