ReactOS.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
List overview
Download
Ros-diffs
January 2011
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
ros-diffs@reactos.org
20 participants
336 discussions
Start a n
N
ew thread
[tkreuzer] 50494: [CRT] On MSVC mark abs, labs and strcmp as intrinsics (needed when compiling with /O2+) and disable a warning that they are not intrinsics (when compiled with /O1)
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Tue Jan 25 20:48:56 2011 New Revision: 50494 URL:
http://svn.reactos.org/svn/reactos?rev=50494&view=rev
Log: [CRT] On MSVC mark abs, labs and strcmp as intrinsics (needed when compiling with /O2+) and disable a warning that they are not intrinsics (when compiled with /O1) Modified: branches/cmake-bringup/lib/sdk/crt/math/abs.c branches/cmake-bringup/lib/sdk/crt/math/labs.c branches/cmake-bringup/lib/sdk/crt/mem/memcmp.c branches/cmake-bringup/lib/sdk/crt/string/scanf.h branches/cmake-bringup/lib/sdk/crt/string/strset.c Modified: branches/cmake-bringup/lib/sdk/crt/math/abs.c URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/lib/sdk/crt/math/…
============================================================================== --- branches/cmake-bringup/lib/sdk/crt/math/abs.c [iso-8859-1] (original) +++ branches/cmake-bringup/lib/sdk/crt/math/abs.c [iso-8859-1] Tue Jan 25 20:48:56 2011 @@ -1,4 +1,9 @@ /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */ + +#ifdef _MSC_VER +#pragma warning(disable: 4164) +#pragma function(abs) +#endif /* * @implemented Modified: branches/cmake-bringup/lib/sdk/crt/math/labs.c URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/lib/sdk/crt/math/…
============================================================================== --- branches/cmake-bringup/lib/sdk/crt/math/labs.c [iso-8859-1] (original) +++ branches/cmake-bringup/lib/sdk/crt/math/labs.c [iso-8859-1] Tue Jan 25 20:48:56 2011 @@ -1,4 +1,9 @@ /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */ + +#ifdef _MSC_VER +#pragma warning(disable: 4164) +#pragma function(abs) +#endif /* * @implemented Modified: branches/cmake-bringup/lib/sdk/crt/mem/memcmp.c URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/lib/sdk/crt/mem/m…
============================================================================== --- branches/cmake-bringup/lib/sdk/crt/mem/memcmp.c [iso-8859-1] (original) +++ branches/cmake-bringup/lib/sdk/crt/mem/memcmp.c [iso-8859-1] Tue Jan 25 20:48:56 2011 @@ -3,6 +3,11 @@ */ #include <string.h> + +#ifdef _MSC_VER +#pragma warning(disable: 4164) +#pragma function(memcmp) +#endif int memcmp(const void *s1, const void *s2, size_t n) { Modified: branches/cmake-bringup/lib/sdk/crt/string/scanf.h URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/lib/sdk/crt/strin…
============================================================================== --- branches/cmake-bringup/lib/sdk/crt/string/scanf.h [iso-8859-1] (original) +++ branches/cmake-bringup/lib/sdk/crt/string/scanf.h [iso-8859-1] Tue Jan 25 20:48:56 2011 @@ -460,7 +460,7 @@ if ((*(format - 1)) < *(format + 1)) RtlSetBits(&bitMask, *(format - 1) +1 , *(format + 1) - *(format - 1)); else - RtlSetBits(&bitMask, *(format + 1) , *(format - 1) - *(format + 1)); + RtlSetBits(&bitMask, *(format + 1) , *(format - 1) - *(format + 1)); format++; } else RtlSetBits(&bitMask, *format, 1); Modified: branches/cmake-bringup/lib/sdk/crt/string/strset.c URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/lib/sdk/crt/strin…
============================================================================== --- branches/cmake-bringup/lib/sdk/crt/string/strset.c [iso-8859-1] (original) +++ branches/cmake-bringup/lib/sdk/crt/string/strset.c [iso-8859-1] Tue Jan 25 20:48:56 2011 @@ -11,6 +11,7 @@ #if defined(__GNUC__) && !defined(__clang__) #define __int64 long long #elif defined(_MSC_VER) +#pragma warning(disable: 4164) #pragma function(_strset) #endif
13 years, 11 months
1
0
0
0
[tkreuzer] 50493: [CMAKE] Link smss to msvcsup on MSVC builds
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Tue Jan 25 19:19:02 2011 New Revision: 50493 URL:
http://svn.reactos.org/svn/reactos?rev=50493&view=rev
Log: [CMAKE] Link smss to msvcsup on MSVC builds Modified: branches/cmake-bringup/base/system/smss/CMakeLists.txt Modified: branches/cmake-bringup/base/system/smss/CMakeLists.txt URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/base/system/smss/…
============================================================================== --- branches/cmake-bringup/base/system/smss/CMakeLists.txt [iso-8859-1] (original) +++ branches/cmake-bringup/base/system/smss/CMakeLists.txt [iso-8859-1] Tue Jan 25 19:19:02 2011 @@ -26,6 +26,9 @@ add_executable(smss WIN32 ${CMAKE_CURRENT_BINARY_DIR}/smss_smss.h.gch ${SOURCE}) target_link_libraries(smss mingw_common nt smlib) +if(MSVC) + target_link_libraries(smss msvcsup) +endif() add_pch(smss ${CMAKE_CURRENT_SOURCE_DIR}/smss.h ${SOURCE})
13 years, 11 months
1
0
0
0
[tkreuzer] 50492: [PSDK] Include pseh.h not only for gcc
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Tue Jan 25 18:58:21 2011 New Revision: 50492 URL:
http://svn.reactos.org/svn/reactos?rev=50492&view=rev
Log: [PSDK] Include pseh.h not only for gcc Modified: branches/cmake-bringup/include/psdk/rpc.h Modified: branches/cmake-bringup/include/psdk/rpc.h URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/include/psdk/rpc.…
============================================================================== --- branches/cmake-bringup/include/psdk/rpc.h [iso-8859-1] (original) +++ branches/cmake-bringup/include/psdk/rpc.h [iso-8859-1] Tue Jan 25 18:58:21 2011 @@ -11,10 +11,8 @@ #endif #endif -#ifdef __GNUC__ #ifndef RC_INVOKED #include <pseh/pseh2.h> -#endif #endif #ifndef __RPC_H__
13 years, 11 months
1
0
0
0
[tkreuzer] 50491: [RTL] Add InterlockedBitTestAndSet* defines
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Tue Jan 25 18:48:26 2011 New Revision: 50491 URL:
http://svn.reactos.org/svn/reactos?rev=50491&view=rev
Log: [RTL] Add InterlockedBitTestAndSet* defines Modified: branches/cmake-bringup/lib/rtl/rtl.h Modified: branches/cmake-bringup/lib/rtl/rtl.h URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/lib/rtl/rtl.h?rev…
============================================================================== --- branches/cmake-bringup/lib/rtl/rtl.h [iso-8859-1] (original) +++ branches/cmake-bringup/lib/rtl/rtl.h [iso-8859-1] Tue Jan 25 18:48:26 2011 @@ -39,6 +39,8 @@ #define InterlockedDecrement _InterlockedDecrement #define InterlockedExchangeAdd _InterlockedExchangeAdd #define InterlockedExchange _InterlockedExchange +#define InterlockedBitTestAndSet _interlockedbittestandset +#define InterlockedBitTestAndSet64 _interlockedbittestandset64 #endif #endif /* RTL_H */
13 years, 11 months
1
0
0
0
[tkreuzer] 50490: [CMAKE] - Fix mc command - temporary disable optimization settings to prevent warning
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Tue Jan 25 18:09:29 2011 New Revision: 50490 URL:
http://svn.reactos.org/svn/reactos?rev=50490&view=rev
Log: [CMAKE] - Fix mc command - temporary disable optimization settings to prevent warning Modified: branches/cmake-bringup/msc.cmake Modified: branches/cmake-bringup/msc.cmake URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/msc.cmake?rev=504…
============================================================================== --- branches/cmake-bringup/msc.cmake [iso-8859-1] (original) +++ branches/cmake-bringup/msc.cmake [iso-8859-1] Tue Jan 25 18:09:29 2011 @@ -1,4 +1,5 @@ +if(0) # Fixme redefinition warning if(OPTIMIZE STREQUAL "1") add_definitions(/O1) elseif(OPTIMIZE STREQUAL "2") @@ -9,6 +10,7 @@ add_definitions(/Os /Ox /GS-) elseif(OPTIMIZE STREQUAL "5") add_definitions(/GF /Gy /Ob2 /Os /Ox /GS-) +endif() endif() add_definitions(/GS- /Zl /Zi) @@ -189,7 +191,7 @@ endmacro() macro(macro_mc FILE) - set(COMMAND_MC mc -r ${REACTOS_BINARY_DIR}/include/reactos -h ${REACTOS_BINARY_DIR}/include/reactos ${REACTOS_SOURCE_DIR}/include/reactos/mc/${FILE}.mc) + set(COMMAND_MC mc -r ${REACTOS_BINARY_DIR}/include/reactos -h ${REACTOS_BINARY_DIR}/include/reactos ${CMAKE_CURRENT_SOURCE_DIR}/${FILE}.mc) endmacro() file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/importlibs)
13 years, 11 months
1
0
0
0
[tkreuzer] 50489: [CMAKE] Don't include resources twice in findstr, remove rbuild file
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Tue Jan 25 17:00:43 2011 New Revision: 50489 URL:
http://svn.reactos.org/svn/reactos?rev=50489&view=rev
Log: [CMAKE] Don't include resources twice in findstr, remove rbuild file Removed: branches/cmake-bringup/base/applications/findstr/findstr.rbuild Modified: branches/cmake-bringup/base/applications/findstr/CMakeLists.txt Modified: branches/cmake-bringup/base/applications/findstr/CMakeLists.txt URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/base/applications…
============================================================================== --- branches/cmake-bringup/base/applications/findstr/CMakeLists.txt [iso-8859-1] (original) +++ branches/cmake-bringup/base/applications/findstr/CMakeLists.txt [iso-8859-1] Tue Jan 25 17:00:43 2011 @@ -3,8 +3,7 @@ add_executable(findstr findstr.c - findstr.rc - rsrc.rc) + findstr.rc) set_module_type(findstr win32cui) add_importlibs(findstr user32 msvcrt kernel32) Removed: branches/cmake-bringup/base/applications/findstr/findstr.rbuild URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/base/applications…
============================================================================== --- branches/cmake-bringup/base/applications/findstr/findstr.rbuild [iso-8859-1] (original) +++ branches/cmake-bringup/base/applications/findstr/findstr.rbuild (removed) @@ -1,8 +1,0 @@ -<?xml version="1.0"?> -<!DOCTYPE module SYSTEM "../../../../tools/rbuild/project.dtd"> -<module name="findstr" type="win32cui" installbase="system32" installname="findstr.exe"> - <library>user32</library> - <file>findstr.c</file> - <file>findstr.rc</file> - <file>rsrc.rc</file> -</module>
13 years, 11 months
1
0
0
0
[tkreuzer] 50488: [CMAKE] msc.cmake: fix spec2def invocation, add pseh library, remove set_export_spec
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Tue Jan 25 16:31:04 2011 New Revision: 50488 URL:
http://svn.reactos.org/svn/reactos?rev=50488&view=rev
Log: [CMAKE] msc.cmake: fix spec2def invocation, add pseh library, remove set_export_spec Modified: branches/cmake-bringup/msc.cmake Modified: branches/cmake-bringup/msc.cmake URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/msc.cmake?rev=504…
============================================================================== --- branches/cmake-bringup/msc.cmake [iso-8859-1] (original) +++ branches/cmake-bringup/msc.cmake [iso-8859-1] Tue Jan 25 16:31:04 2011 @@ -140,7 +140,7 @@ # Generate the asm stub file and the export def file add_custom_command( OUTPUT ${CMAKE_BINARY_DIR}/importlibs/lib${_name}_stubs.asm ${CMAKE_BINARY_DIR}/importlibs/lib${_name}_exp.def - COMMAND native-spec2def --kill-at -r -d=${CMAKE_BINARY_DIR}/importlibs/lib${_name}_exp.def -l=${CMAKE_BINARY_DIR}/importlibs/lib${_name}_stubs.asm ${CMAKE_CURRENT_SOURCE_DIR}/${_exports_file} + COMMAND native-spec2def --ms --kill-at -r -d=${CMAKE_BINARY_DIR}/importlibs/lib${_name}_exp.def -l=${CMAKE_BINARY_DIR}/importlibs/lib${_name}_stubs.asm ${CMAKE_CURRENT_SOURCE_DIR}/${_exports_file} DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${_exports_file}) # Assemble the stub file @@ -181,22 +181,11 @@ get_filename_component(_file ${_spec_file} NAME_WE) add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${_file}.def ${CMAKE_CURRENT_BINARY_DIR}/${_file}_stubs.c - COMMAND native-spec2def --kill-at -n=${_dllname} -d=${CMAKE_CURRENT_BINARY_DIR}/${_file}.def -s=${CMAKE_CURRENT_BINARY_DIR}/${_file}_stubs.c ${CMAKE_CURRENT_SOURCE_DIR}/${_spec_file} + COMMAND native-spec2def --ms --kill-at -n=${_dllname} -d=${CMAKE_CURRENT_BINARY_DIR}/${_file}.def -s=${CMAKE_CURRENT_BINARY_DIR}/${_file}_stubs.c ${CMAKE_CURRENT_SOURCE_DIR}/${_spec_file} DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${_spec_file}) set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/${_file}.def ${CMAKE_CURRENT_BINARY_DIR}/${_file}_stubs.c PROPERTIES GENERATED TRUE) list(APPEND SOURCE ${CMAKE_CURRENT_BINARY_DIR}/${_file}_stubs.c) -endmacro() - -# Optional 3rd parameter: dllname -macro(set_export_spec _module _spec_file) - get_filename_component(_file ${_spec_file} NAME_WE) - if (${ARGC} GREATER 2) - set(_dllname ${ARGV2}) - else() - set(_dllname ${_file}.dll) - endif() - spec2def(${_dllname} ${_spec_file}) endmacro() macro(macro_mc FILE) @@ -206,5 +195,5 @@ file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/importlibs) #pseh workaround -set(PSEH_LIB "") +set(PSEH_LIB "pseh")
13 years, 11 months
1
0
0
0
[tkreuzer] 50487: [CMAKE] Fix spec2def on MSVC builds (added --ms flag)
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Tue Jan 25 16:28:54 2011 New Revision: 50487 URL:
http://svn.reactos.org/svn/reactos?rev=50487&view=rev
Log: [CMAKE] Fix spec2def on MSVC builds (added --ms flag) Modified: branches/cmake-bringup/tools/spec2def/spec2def.c Modified: branches/cmake-bringup/tools/spec2def/spec2def.c URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/tools/spec2def/sp…
============================================================================== --- branches/cmake-bringup/tools/spec2def/spec2def.c [iso-8859-1] (original) +++ branches/cmake-bringup/tools/spec2def/spec2def.c [iso-8859-1] Tue Jan 25 16:28:54 2011 @@ -24,6 +24,7 @@ typedef int (*PFNOUTLINE)(FILE *, EXPORT *); int gbKillAt = 0; int gbUseDeco = 0; +int gbMSComp = 0; int no_redirections = 0; char *pszArchString = "i386"; char *pszArchString2; @@ -305,9 +306,9 @@ int fDeco = (gbUseDeco && !ScanToken(pexp->pcRedirection, '.')); fprintf(fileDest, "="); - PrintName(fileDest, pexp, 1, fDeco); - } - else if (gbUseDeco && gbKillAt && + PrintName(fileDest, pexp, 1, fDeco && !gbMSComp); + } + else if (gbUseDeco && gbKillAt && !gbMSComp && (pexp->nCallingConvention == CC_STDCALL || pexp->nCallingConvention == CC_FASTCALL)) { @@ -624,6 +625,7 @@ " -l=<file> generates an asm lib stub\n" " -d=<file> generates a def file\n" " -s=<file> generates a stub file\n" + " --ms msvc compatibility\n" " -n=<name> name of the dll\n" " --kill-at removes @xx decorations from exports\n" " -r removes redirections from def file\n" @@ -673,6 +675,10 @@ { gbKillAt = 1; } + else if ((strcasecmp(argv[i], "--ms") == 0)) + { + gbMSComp = 1; + } else if ((strcasecmp(argv[i], "-r") == 0)) { no_redirections = 1;
13 years, 11 months
1
0
0
0
[tkreuzer] 50486: [CMAKE] On MSVC builds, compile native SEH support into PSEH library. This should be part of the crt, but our crt is too disorganized to handle that. The empty C file is for cmake...
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Tue Jan 25 16:26:54 2011 New Revision: 50486 URL:
http://svn.reactos.org/svn/reactos?rev=50486&view=rev
Log: [CMAKE] On MSVC builds, compile native SEH support into PSEH library. This should be part of the crt, but our crt is too disorganized to handle that. The empty C file is for cmake to get the library right. Added: branches/cmake-bringup/lib/pseh/dummy.c (with props) branches/cmake-bringup/lib/pseh/i386/seh.s (with props) branches/cmake-bringup/lib/pseh/i386/seh_prolog.s (with props) Modified: branches/cmake-bringup/lib/pseh/CMakeLists.txt Modified: branches/cmake-bringup/lib/pseh/CMakeLists.txt URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/lib/pseh/CMakeLis…
============================================================================== --- branches/cmake-bringup/lib/pseh/CMakeLists.txt [iso-8859-1] (original) +++ branches/cmake-bringup/lib/pseh/CMakeLists.txt [iso-8859-1] Tue Jan 25 16:26:54 2011 @@ -16,4 +16,14 @@ add_library(pseh ${SOURCE}) add_dependencies(pseh psdk) +else() + + list(APPEND SOURCE + dummy.c + i386/seh.s + i386/seh_prolog.s) + + add_library(pseh ${SOURCE}) + add_dependencies(pseh asm) + endif() Added: branches/cmake-bringup/lib/pseh/dummy.c URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/lib/pseh/dummy.c?…
============================================================================== --- branches/cmake-bringup/lib/pseh/dummy.c (added) +++ branches/cmake-bringup/lib/pseh/dummy.c [iso-8859-1] Tue Jan 25 16:26:54 2011 @@ -1,0 +1,2 @@ + /* intentionally empty file */ + Propchange: branches/cmake-bringup/lib/pseh/dummy.c ------------------------------------------------------------------------------ svn:eol-style = native Added: branches/cmake-bringup/lib/pseh/i386/seh.s URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/lib/pseh/i386/seh…
============================================================================== --- branches/cmake-bringup/lib/pseh/i386/seh.s (added) +++ branches/cmake-bringup/lib/pseh/i386/seh.s [iso-8859-1] Tue Jan 25 16:26:54 2011 @@ -1,0 +1,441 @@ +/* + * COPYRIGHT: See COPYING in the top level directory + * PROJECT: ReactOS CRT + * FILE: lib/crt/misc/i386/seh.S + * PURPOSE: SEH Support for the CRT + * PROGRAMMERS: Alex Ionescu (alex.ionescu(a)reactos.org) + */ + +/* INCLUDES ******************************************************************/ + +#include <asm.inc> + +#define DISPOSITION_DISMISS 0 +#define DISPOSITION_CONTINUE_SEARCH 1 +#define DISPOSITION_COLLIDED_UNWIND 3 + +#define EXCEPTION_EXIT_UNWIND 4 +#define EXCEPTION_UNWINDING 2 + + +EXTERN _RtlUnwind@16:PROC + +/* GLOBALS *******************************************************************/ + +PUBLIC __global_unwind2 +PUBLIC __local_unwind2 +PUBLIC __abnormal_termination +PUBLIC __except_handler2 +PUBLIC __except_handler3 + +/* FUNCTIONS *****************************************************************/ + +.code +_unwind_handler: + + /* Check if we were unwinding and continue search if not */ + mov ecx, [esp+4] + test dword ptr [ecx+4], EXCEPTION_EXIT_UNWIND + EXCEPTION_UNWINDING + mov eax, DISPOSITION_CONTINUE_SEARCH + jz unwind_handler_return + + /* We have a collision, do a local unwind */ + mov eax, [esp+20] + push ebp + mov ebp, [eax+16] + mov edx, [eax+40] + push edx + mov edx, [eax+36] + push edx + call __local_unwind2 + add esp, 8 + pop ebp + + /* Set new try level */ + mov eax, [esp+8] + mov edx, [esp+16] + mov [edx], eax + + /* Return collided unwind */ + mov eax, DISPOSITION_COLLIDED_UNWIND + +unwind_handler_return: + ret + + +__global_unwind2: + + /* Create stack and save all registers */ + push ebp + mov ebp, esp + push ebx + push esi + push edi + push ebp + + /* Call unwind */ + push 0 + push 0 + push glu_return + push [ebp+8] + call _RtlUnwind@16 + +glu_return: + /* Restore registers and return */ + pop ebp + pop edi + pop esi + pop ebx + mov esp, ebp + pop ebp + ret + + +__abnormal_termination: + + /* Assume false */ + xor eax, eax + + /* Check if the handler is the unwind handler */ + mov ecx, fs:0 + cmp dword ptr [ecx+4], offset _unwind_handler + jne short ab_return + + /* Get the try level */ + mov edx, [ecx+12] + mov edx, [edx+12] + + /* Compare it */ + cmp [ecx+8], edx + jne ab_return + + /* Return true */ + mov eax, 1 + + /* Return */ +ab_return: + ret + + +__local_unwind2: + + /* Save volatiles */ + push ebx + push esi + push edi + + /* Get the exception registration */ + mov eax, [esp+16] + + /* Setup SEH to protect the unwind */ + push ebp + push eax + push -2 + push offset _unwind_handler + push fs:0 + mov fs:0, esp + +unwind_loop: + /* Get the exception registration and try level */ + mov eax, [esp+36] + mov ebx, [eax+8] + mov esi, [eax+12] + + /* Validate the unwind */ + cmp esi, -1 + je unwind_return + cmp dword ptr [esp+40], -1 + je unwind_ok + cmp esi, [esp+40] + jbe unwind_return + +unwind_ok: + /* Get the new enclosing level and save it */ + lea esi, [esi+esi*2] + mov ecx, [ebx+esi*4] + mov [esp+8], ecx + mov [eax+12], ecx + + /* Check the filter type */ + cmp dword ptr [ebx+esi*4+4], 0 + jnz __NLG_Return2 + + /* FIXME: NLG Notification */ + + /* Call the handler */ + call dword ptr [ebx+esi*4+8] + +__NLG_Return2: + /* Unwind again */ + jmp unwind_loop + +unwind_return: + /* Cleanup SEH */ + pop fs:0 + add esp, 16 + pop edi + pop esi + pop ebx + ret + + +__except_handler2: + + /* Setup stack and save volatiles */ + push ebp + mov ebp, esp + sub esp, 8 + push ebx + push esi + push edi + push ebp + + /* Clear direction flag */ + cld + + /* Get exception registration and record */ + mov ebx, [ebp+12] + mov eax, [ebp+8] + + /* Check if this is an unwind */ + test dword ptr [eax+4], EXCEPTION_EXIT_UNWIND + EXCEPTION_UNWINDING + jnz except_unwind2 + + /* Save exception pointers structure */ + mov [ebp-8], eax + mov eax, [ebp+16] + mov [ebp-4], eax + lea eax, [ebp-8] + mov [ebx+20], eax + + /* Get the try level and scope table */ + mov esi, [ebx+12] + mov edi, [ebx+8] + +except_loop2: + /* Validate try level */ + cmp esi, -1 + je except_search2 + + /* Check if this is the termination handler */ + lea ecx, [esi+esi*2] + cmp dword ptr [edi+ecx*4+4], 0 + jz except_continue2 + + /* Save registers and call filter, then restore them */ + push esi + push ebp + mov ebp, [ebx+16] + call dword ptr [edi+ecx*4+4] + pop ebp + pop esi + + /* Restore ebx and check the result */ + mov ebx, [ebp+12] + or eax, eax + jz except_continue2 + js except_dismiss2 + + /* So this is an accept, call the termination handlers */ + mov edi, [ebx+8] + push ebx + call __global_unwind2 + add esp, 4 + + /* Restore ebp */ + mov ebp, [ebx+16] + + /* Do local unwind */ + push esi + push ebx + call __local_unwind2 + add esp, 8 + + /* Set new try level */ + lea ecx, [esi+esi*2] + mov eax, [edi+ecx*4] + mov [ebx+12], eax + + /* Call except handler */ + call dword ptr [edi+ecx*4+8] + +except_continue2: + /* Reload try level and except again */ + mov edi, [ebx+8] + lea ecx, [esi+esi*2] + mov esi, [edi+ecx*4] + jmp except_loop2 + +except_dismiss2: + /* Dismiss it */ + mov eax, DISPOSITION_DISMISS + jmp except_return2 + +except_search2: + /* Continue searching */ + mov eax, DISPOSITION_CONTINUE_SEARCH + jmp except_return2 + + /* Do local unwind */ +except_unwind2: + push ebp + mov ebp, [ebx+16] + push -1 + push ebx + call __local_unwind2 + add esp, 8 + + /* Retore EBP and set return disposition */ + pop ebp + mov eax, DISPOSITION_CONTINUE_SEARCH + +except_return2: + /* Restore registers and stack */ + pop ebp + pop edi + pop esi + pop ebx + mov esp, ebp + pop ebp + ret + + +__except_handler3: + + /* Setup stack and save volatiles */ + push ebp + mov ebp, esp + sub esp, 8 + push ebx + push esi + push edi + push ebp + + /* Clear direction flag */ + cld + + /* Get exception registration and record */ + mov ebx, [ebp+12] + mov eax, [ebp+8] + + /* Check if this is an unwind */ + test dword ptr [eax+4], EXCEPTION_EXIT_UNWIND + EXCEPTION_UNWINDING + jnz except_unwind3 + + /* Save exception pointers structure */ + mov [ebp-8], eax + mov eax, [ebp+16] + mov [ebp-4], eax + lea eax, [ebp-8] + mov [ebx-4], eax + + /* Get the try level and scope table */ + mov esi, [ebx+12] + mov edi, [ebx+8] + + /* FIXME: Validate the SEH exception */ + +except_loop3: + /* Validate try level */ + cmp esi, -1 + je except_search3 + + /* Check if this is the termination handler */ + lea ecx, [esi+esi*2] + mov eax, [edi+ecx*4+4] + or eax, eax + jz except_continue3 + + /* Save registers clear them all */ + push esi + push ebp + lea ebp, [ebx+16] + xor ebx, ebx + xor ecx, ecx + xor edx, edx + xor esi, esi + xor edi, edi + + /* Call the filter and restore our registers */ + call eax + pop ebp + pop esi + + /* Restore ebx and check the result */ + mov ebx, [ebp+12] + or eax, eax + jz except_continue3 + js except_dismiss3 + + /* So this is an accept, call the termination handlers */ + mov edi, [ebx+8] + push ebx + call __global_unwind2 + add esp, 4 + + /* Restore ebp */ + lea ebp, [ebx+16] + + /* Do local unwind */ + push esi + push ebx + call __local_unwind2 + add esp, 8 + + /* FIXME: Do NLG Notification */ + + /* Set new try level */ + lea ecx, [esi+esi*2] + mov eax, [edi+ecx*4] + mov [ebx+12], eax + + /* Clear registers and call except handler */ + mov eax, [edi+ecx*4+8] + xor ebx, ebx + xor ecx, ecx + xor edx, edx + xor esi, esi + xor edi, edi + call eax + +except_continue3: + /* Reload try level and except again */ + mov edi, [ebx+8] + lea ecx, [esi+esi*2] + mov esi, [edi+ecx*4] + jmp except_loop3 + +except_dismiss3: + /* Dismiss it */ + mov eax, DISPOSITION_DISMISS + jmp except_return3 + +except_search3: + /* Continue searching */ + mov eax, DISPOSITION_CONTINUE_SEARCH + jmp except_return3 + + /* Do local unwind */ +except_unwind3: + push ebp + mov ebp, [ebx+16] + push -1 + push ebx + call __local_unwind2 + add esp, 8 + + /* Retore EBP and set return disposition */ + pop ebp + mov eax, DISPOSITION_CONTINUE_SEARCH + +except_return3: + /* Restore registers and stack */ + pop ebp + pop edi + pop esi + pop ebx + mov esp, ebp + pop ebp + ret + +END Propchange: branches/cmake-bringup/lib/pseh/i386/seh.s ------------------------------------------------------------------------------ svn:eol-style = native Added: branches/cmake-bringup/lib/pseh/i386/seh_prolog.s URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/lib/pseh/i386/seh…
============================================================================== --- branches/cmake-bringup/lib/pseh/i386/seh_prolog.s (added) +++ branches/cmake-bringup/lib/pseh/i386/seh_prolog.s [iso-8859-1] Tue Jan 25 16:26:54 2011 @@ -1,0 +1,152 @@ +/* + * COPYRIGHT: GNU GPL, see COPYING in the top level directory + * PROJECT: ReactOS CRT + * FILE: lib/crt/misc/i386/seh_prolog.S + * PURPOSE: SEH Support for MSVC + * PROGRAMMERS: Timo Kreuzer + */ + +/* INCLUDES ******************************************************************/ + +#include <asm.inc> + +EXTERN __except_handler3:PROC + +/* The very first thing a function compiled with MSVC containing SEH + * will do is call __SEH_prolog like this: + * + * push <Number of stackbytes> + * push <Address of exception handler> + * call __SEH_prolog + * + * When entering the function the stack layout is like this: + * + * esp + 08: OLDFRAME.StackBytes + * esp + 04: OLDFRAME.SEHTable + * esp + 00: OLDFRAME.ReturnAddress + * + * __SEH_prolog will now setup the stack to the following layout: + * + * esp + N + 24: SEH_FRAME.OriginalEbp OLDFRAME.StackBytes + * esp + N + 20: SEH_FRAME.Disable OLDFRAME.SEHTable + * esp + N + 1C: SEH_FRAME.SEHTable OLDFRAME.ReturnAddress + * esp + N + 18: SEH_FRAME.Handler + * esp + N + 14: SEH_FRAME.PreviousRecord + * esp + N + 10: SEH_FRAME.unused + * esp + N + 0c: SEH_FRAME.NewEsp + * + * N bytes local variables + * ... + * esp + 08: SAFE_AREA.Ebx + * esp + 04: SAFE_AREA.Esi + * esp + 00: SAFE_AREA.Edi + * + * all this is documented here (with some minor errors): + *
http://reactos-blog.blogspot.com/2009/08/inside-mind-of-reactos-developer.h…
+ */ + +OLDFRAME_ReturnAddress = 0 /* 0x00 */ +OLDFRAME_SEHTable = 4 /* 0x04 */ +OLDFRAME_StackBytes = 8 /* 0x08 */ +OLDFRAME_Size = 12 /* 0x0c */ + +SEH_FRAME_NewEsp = 0 /* 0x00 */ +SEH_FRAME_unused = 4 /* 0x04 */ +SEH_FRAME_PreviousRecord = 8 /* 0x08 */ +SEH_FRAME_Handler = 12 /* 0x0c */ +SEH_FRAME_SEHTable = 16 /* 0x10 */ +SEH_FRAME_Disable = 20 /* 0x14 */ +SEH_FRAME_OriginalEbp = 24 /* 0x18 */ +SEH_FRAME_Size = 28 /* 0x1c */ + +SAFE_AREA_Edi = 0 /* 0x00 */ +SAFE_AREA_Esi = 4 /* 0x04 */ +SAFE_AREA_Ebx = 8 /* 0x08 */ +SAFE_AREA_Size = 12 /* 0x0c */ + + +.code + +PUBLIC __SEH_prolog +__SEH_prolog: + + /* Get the number of stack bytes to reserve */ + mov eax, [esp + OLDFRAME_StackBytes] + + /* Push address of __except_handler3 on the stack */ + push offset __except_handler3 + + /* Push the old exception record on the stack */ + push dword ptr fs:0 + + /* Adjust stack allocation, add size of the stack frame minus 2 pushes */ + add eax, SEH_FRAME_Size + SAFE_AREA_Size - OLDFRAME_Size - 8 + + /* Save old ebp, overwriting OLDFRAME.StackBytes */ + mov [esp + 8 + OLDFRAME_StackBytes], ebp + + /* Load new ebp, pointing to OLDFRAME.StackBytes */ + lea ebp, [esp + 8 + OLDFRAME_StackBytes] + + /* Allocate stack space */ + sub esp, eax + + /* Push the return address on the stack */ + push dword ptr [ebp - OLDFRAME_StackBytes + OLDFRAME_ReturnAddress] + + /* Get address of the SEH table */ + mov eax, [ebp + OLDFRAME_SEHTable] + + /* Save new esp */ + mov [ebp - SEH_FRAME_OriginalEbp + SEH_FRAME_NewEsp], esp + + /* Safe SEH table, overwriting OLDFRAME.ReturnAddress */ + mov [ebp - SEH_FRAME_OriginalEbp + SEH_FRAME_SEHTable], eax + + /* Safe the disable value, overwriting OLDFRAME.SEHTable */ + mov dword ptr [ebp - SEH_FRAME_OriginalEbp + SEH_FRAME_Disable], -1 + + /* Load the address of the new registration record */ + lea eax, [ebp - SEH_FRAME_OriginalEbp + SEH_FRAME_PreviousRecord] + + /* Save registers */ + mov [esp + SAFE_AREA_Edi], edi + mov [esp + SAFE_AREA_Esi], esi + mov [esp + SAFE_AREA_Ebx], ebx + + /* Enqueue the new record */ + mov fs:[0], eax + + /* Return to the caller */ + ret + + +PUBLIC __SEH_epilog +__SEH_epilog: + + /* Restore the previous exception registration record */ + mov ecx, [ebp - SEH_FRAME_OriginalEbp + SEH_FRAME_PreviousRecord] + mov fs:[0], ecx + + /* Restore saved registers */ + mov edi, [esp + 4 + SAFE_AREA_Edi] + mov esi, [esp + 4 + SAFE_AREA_Esi] + mov ebx, [esp + 4 + SAFE_AREA_Ebx] + + /* Get the return address */ + mov ecx, [esp] + + /* Clean up stack */ + mov esp, ebp + + /* Get previous ebp */ + mov ebp, [esp] + + /* Save return address */ + mov [esp], ecx + + /* Return to the caller */ + ret + + +END Propchange: branches/cmake-bringup/lib/pseh/i386/seh_prolog.s ------------------------------------------------------------------------------ svn:eol-style = native
13 years, 11 months
1
0
0
0
[tkreuzer] 50485: [KERNEL32] Escape some characters in nls files for MSVC compatibility
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Tue Jan 25 14:40:32 2011 New Revision: 50485 URL:
http://svn.reactos.org/svn/reactos?rev=50485&view=rev
Log: [KERNEL32] Escape some characters in nls files for MSVC compatibility Modified: branches/cmake-bringup/dll/win32/kernel32/nls/azl.nls branches/cmake-bringup/dll/win32/kernel32/nls/far.nls branches/cmake-bringup/dll/win32/kernel32/nls/fos.nls Modified: branches/cmake-bringup/dll/win32/kernel32/nls/azl.nls URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/dll/win32/kernel3…
============================================================================== --- branches/cmake-bringup/dll/win32/kernel32/nls/azl.nls [iso-8859-1] (original) +++ branches/cmake-bringup/dll/win32/kernel32/nls/azl.nls [iso-8859-1] Tue Jan 25 14:40:32 2011 @@ -68,7 +68,7 @@ LOCALE_SABBREVDAYNAME3 "\x00c7" LOCALE_SABBREVDAYNAME4 "Ca" LOCALE_SABBREVDAYNAME5 "C" - LOCALE_SABBREVDAYNAME6 "Þ" + LOCALE_SABBREVDAYNAME6 "\x00de" LOCALE_SABBREVDAYNAME7 "B" LOCALE_SABBREVLANGNAME "AZE" LOCALE_SABBREVMONTHNAME1 "Yan" @@ -112,8 +112,8 @@ LOCALE_SMONTHNAME3 "Mart" LOCALE_SMONTHNAME4 "Aprel" LOCALE_SMONTHNAME5 "May" - LOCALE_SMONTHNAME6 "Ýyun" - LOCALE_SMONTHNAME7 "Ýyul" + LOCALE_SMONTHNAME6 "\x00ddyun" + LOCALE_SMONTHNAME7 "\x00ddyul" LOCALE_SMONTHNAME8 "Avgust" LOCALE_SMONTHNAME9 "Sentyabr" LOCALE_SMONTHNAME10 "Oktyabr" Modified: branches/cmake-bringup/dll/win32/kernel32/nls/far.nls URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/dll/win32/kernel3…
============================================================================== --- branches/cmake-bringup/dll/win32/kernel32/nls/far.nls [iso-8859-1] (original) +++ branches/cmake-bringup/dll/win32/kernel32/nls/far.nls [iso-8859-1] Tue Jan 25 14:40:32 2011 @@ -60,8 +60,8 @@ LOCALE_ITIME "0" LOCALE_ITIMEMARKPOSN "0" LOCALE_ITLZERO "1" - LOCALE_S1159 "\x00DE.Ù" - LOCALE_S2359 "\x00C8.Ù" + LOCALE_S1159 "\x00DE.\x00D9" + LOCALE_S2359 "\x00C8.\x00D9" LOCALE_SABBREVCTRYNAME "IRN" LOCALE_SABBREVDAYNAME1 "\x00CF\x00E6\x00D4\x00E4\x00C8\x00E5" LOCALE_SABBREVDAYNAME2 "\x00D3\x00E5\x00A0\x00D4\x00E4\x00C8\x00E5" Modified: branches/cmake-bringup/dll/win32/kernel32/nls/fos.nls URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/dll/win32/kernel3…
============================================================================== --- branches/cmake-bringup/dll/win32/kernel32/nls/fos.nls [iso-8859-1] (original) +++ branches/cmake-bringup/dll/win32/kernel32/nls/fos.nls [iso-8859-1] Tue Jan 25 14:40:32 2011 @@ -110,7 +110,7 @@ LOCALE_SMONTHNAME1 "januar" LOCALE_SMONTHNAME2 "februar" LOCALE_SMONTHNAME3 "mars" - LOCALE_SMONTHNAME4 "apríl" + LOCALE_SMONTHNAME4 "apr\x00EDl" LOCALE_SMONTHNAME5 "mai" LOCALE_SMONTHNAME6 "juni" LOCALE_SMONTHNAME7 "juli" @@ -148,7 +148,7 @@ LGRPID_SIMPLIFIED_CHINESE+LGRPID_RES_BASE "Simplified Chinese" LGRPID_THAI+LGRPID_RES_BASE "Thai" LGRPID_HEBREW+LGRPID_RES_BASE "Hebrew" - LGRPID_ARABIC+LGRPID_RES_BASE "Arabic" + LGRPID_ARABIC+LGRPID_RES_BASE "Arabic" LGRPID_VIETNAMESE+LGRPID_RES_BASE "Vietnamese" LGRPID_INDIC+LGRPID_RES_BASE "Indic" LGRPID_GEORGIAN+LGRPID_RES_BASE "Georgian"
13 years, 11 months
1
0
0
0
← Newer
1
...
7
8
9
10
11
12
13
...
34
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Results per page:
10
25
50
100
200