Skip to content

Commit ac86408

Browse files
committed
more
1 parent aea2eb1 commit ac86408

File tree

7 files changed

+3
-319
lines changed

7 files changed

+3
-319
lines changed

src/coreclr/pal/inc/mbusafecrt.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ typedef int errno_t;
3030
extern "C" {
3131
#endif
3232

33-
typedef void ( *tSafeCRT_AssertFuncPtr )( const char* inExpression, const char* inComment, const char* inFile, const unsigned long inLineNum );
34-
void MBUSafeCRTSetAssertFunc( tSafeCRT_AssertFuncPtr inAssertFuncPtr );
35-
3633
extern errno_t strcat_s( char* ioDest, size_t inDestBufferSize, const char* inSrc );
3734
extern errno_t wcscat_s( WCHAR* ioDest, size_t inDestBufferSize, const WCHAR* inSrc );
3835

@@ -44,15 +41,11 @@ extern errno_t wcscpy_s( WCHAR* outDest, size_t inDestBufferSize, const WCHAR* i
4441

4542
extern errno_t strncpy_s( char* outDest, size_t inDestBufferSize, const char* inSrc, size_t inCount );
4643
extern errno_t wcsncpy_s( WCHAR* outDest, size_t inDestBufferSize, const WCHAR* inSrc, size_t inCount );
47-
extern errno_t wcsncpy_s( WCHAR* outDest, size_t inDestBufferSize, const WCHAR* inSrc, size_t inCount );
4844

4945
extern size_t PAL_wcsnlen( const WCHAR* inString, size_t inMaxSize );
5046

51-
extern errno_t _makepath_s( char* outDest, size_t inDestBufferSize, const char* inDrive, const char* inDirectory, const char* inFilename, const char* inExtension );
5247
extern errno_t _wmakepath_s( WCHAR* outDest, size_t inDestBufferSize, const WCHAR* inDrive, const WCHAR* inDirectory, const WCHAR* inFilename, const WCHAR* inExtension );
5348

54-
extern errno_t _splitpath_s( const char* inPath, char* outDrive, size_t inDriveSize, char* outDirectory, size_t inDirectorySize, char* outFilename, size_t inFilenameSize, char* outExtension, size_t inExtensionSize );
55-
5649
extern int sprintf_s( char *string, size_t sizeInBytes, const char *format, ... );
5750

5851
extern int _snprintf_s( char *string, size_t sizeInBytes, size_t count, const char *format, ... );

src/coreclr/pal/src/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ set(SOURCES
181181
safecrt/mbusafecrt.cpp
182182
safecrt/safecrt_input_s.cpp
183183
safecrt/safecrt_winput_s.cpp
184-
safecrt/splitpath_s.cpp
185184
safecrt/sprintf_s.cpp
186185
safecrt/sscanf_s.cpp
187186
safecrt/strcat_s.cpp

src/coreclr/pal/src/safecrt/internal_securecrt.h

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -46,25 +46,9 @@
4646
#define _CrtGetCheckCount() ((int)0)
4747
#endif
4848

49-
/* Assert message and Invalid parameter */
50-
#ifdef _DEBUG
51-
#define _ASSERT_EXPR( val, exp ) \
52-
{ \
53-
if ( ( val ) == 0 ) \
54-
{ \
55-
if ( sMBUSafeCRTAssertFunc != NULL ) \
56-
{ \
57-
( *sMBUSafeCRTAssertFunc )( #exp, "SafeCRT assert failed", __FILE__, __LINE__ ); \
58-
} \
59-
} \
60-
}
61-
#define _INVALID_PARAMETER( exp ) _ASSERT_EXPR( 0, exp )
62-
#define _ASSERTE( exp ) _ASSERT_EXPR( exp, exp )
63-
#else
64-
#define _ASSERT_EXPR( val, expr )
65-
#define _INVALID_PARAMETER( exp )
66-
#define _ASSERTE( exp )
67-
#endif
49+
#define _ASSERT_EXPR( val, expr )
50+
#define _INVALID_PARAMETER( exp )
51+
#define _ASSERTE( exp )
6852

6953
/* _TRUNCATE */
7054
#if !defined (_TRUNCATE)

src/coreclr/pal/src/safecrt/mbusafecrt.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,6 @@
1616

1717
#include "mbusafecrt_internal.h"
1818

19-
/* global data */
20-
tSafeCRT_AssertFuncPtr sMBUSafeCRTAssertFunc = NULL;
21-
22-
/***
23-
* MBUSafeCRTSetAssertFunc - Set the function called when an assert fails.
24-
****/
25-
26-
void MBUSafeCRTSetAssertFunc( tSafeCRT_AssertFuncPtr inAssertFuncPtr )
27-
{
28-
/* set it */
29-
sMBUSafeCRTAssertFunc = inAssertFuncPtr;
30-
}
31-
3219
/***
3320
* _getc_nolock - getc for the miniFILE stream.
3421
****/

src/coreclr/pal/src/safecrt/mbusafecrt_internal.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ typedef __builtin_va_list va_list;
5252

5353
#define CASSERT(p) extern int sanity_check_dummy[1+((!(p))*(-2))];
5454

55-
extern tSafeCRT_AssertFuncPtr sMBUSafeCRTAssertFunc;
56-
5755
typedef struct miniFILE_struct
5856
{
5957
char* _ptr;

src/coreclr/pal/src/safecrt/splitpath_s.cpp

Lines changed: 0 additions & 24 deletions
This file was deleted.

src/coreclr/pal/src/safecrt/tsplitpath_s.inl

Lines changed: 0 additions & 253 deletions
This file was deleted.

0 commit comments

Comments
 (0)