mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 22:12:59 +00:00
[KMTESTS]
- reference streamout.c and provide a wctomb stub to have an any-IRQL vsnprintf implementation for the test framework svn path=/branches/GSoC_2011/KMTestSuite/; revision=52330
This commit is contained in:
parent
a6b4eba335
commit
dffa722bce
3 changed files with 56 additions and 2 deletions
|
@ -8,7 +8,9 @@
|
|||
#ifndef _KMTEST_TEST_H_
|
||||
#define _KMTEST_TEST_H_
|
||||
|
||||
typedef void KMT_TESTFUNC(void);
|
||||
#include <stdarg.h>
|
||||
|
||||
typedef VOID KMT_TESTFUNC(VOID);
|
||||
|
||||
typedef struct
|
||||
{
|
||||
|
@ -74,6 +76,12 @@ static VOID KmtAddToLogBuffer(PKMT_RESULTBUFFER Buffer, PCSTR String, SIZE_T Len
|
|||
KmtMemCpy(&Buffer->LogBuffer[OldLength], String, Length);
|
||||
}
|
||||
|
||||
#ifdef KMT_KERNEL_MODE
|
||||
INT __cdecl KmtVSNPrintF(PSTR Buffer, SIZE_T BufferMaxLength, PCSTR Format, va_list Arguments);
|
||||
#elif defined KMT_USER_MODE
|
||||
#define KmtVSNPrintF vsnprintf
|
||||
#endif /* defined KMT_USER_MODE */
|
||||
|
||||
#endif /* defined KMT_DEFINE_TEST_FUNCTIONS */
|
||||
|
||||
#endif /* !defined _KMTEST_TEST_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue