* DumpData = Pointer to dump data for the log entry
*/
{
-#ifdef _MSC_VER
+#if 0
PIO_ERROR_LOG_PACKET LogEntry;
UCHAR EntrySize;
ULONG StringSize;
Irp->IoStatus.Information = 0;
-#ifdef _MSC_VER
+#if 0
Status = TdiMapUserRequest(DeviceObject, Irp, IrpSp);
if (NT_SUCCESS(Status)) {
TiDispatchInternal(DeviceObject, Irp);
#define DPRINT DbgPrint("(%s:%d) ",__FILE__,__LINE__), DbgPrint
#else
- #ifdef _MSC_VER
- static __inline void DPRINT ( const char* fmt, ... )
- {
- UNREFERENCED_PARAMETER(fmt);
- }
- #else
- #define DPRINT(...) do { if(0) { DbgPrint(__VA_ARGS__); } } while(0)
- #endif
+
+ #define DPRINT(...) do { if(0) { DbgPrint(__VA_ARGS__); } } while(0)
+
#endif
#define UNIMPLEMENTED DbgPrint("WARNING: %s at %s:%d is UNIMPLEMENTED!\n",__FUNCTION__,__FILE__,__LINE__);
#define MAX_ZERO_LENGTH (256 * 1024)
#define MAX_RW_LENGTH (256 * 1024)
-#if defined(__GNUC__)
-/* void * alloca(size_t size); */
-#elif defined(_MSC_VER)
-void* _alloca(size_t size);
-#define alloca _alloca
-#else
-#error Unknown compiler for alloca intrinsic stack allocation "function"
-#endif
-
ULONG CcFastMdlReadWait;
ULONG CcFastMdlReadNotPossible;
ULONG CcFastReadNotPossible;
KEVENT Event;
PMDL Mdl;
- Mdl = alloca(MmSizeOfMdl(NULL, MAX_RW_LENGTH));
+ Mdl = _alloca(MmSizeOfMdl(NULL, MAX_RW_LENGTH));
Status = CcRosGetCacheSegmentChain(Bcb, ReadOffset, Length, &head);
if (!NT_SUCCESS(Status))
{
Size = CacheSeg->Bcb->CacheSegmentSize;
}
- Mdl = alloca(MmSizeOfMdl(CacheSeg->BaseAddress, Size));
+ Mdl = _alloca(MmSizeOfMdl(CacheSeg->BaseAddress, Size));
MmInitializeMdl(Mdl, CacheSeg->BaseAddress, Size);
MmBuildMdlForNonPagedPool(Mdl);
Mdl->MdlFlags |= MDL_IO_PAGE_READ;
MmGetPfnForProcess(NULL, (PVOID)((ULONG_PTR)CacheSeg->BaseAddress + (i << PAGE_SHIFT)));
} while (++i < (Size >> PAGE_SHIFT));
}
- Mdl = alloca(MmSizeOfMdl(CacheSeg->BaseAddress, Size));
+ Mdl = _alloca(MmSizeOfMdl(CacheSeg->BaseAddress, Size));
MmInitializeMdl(Mdl, CacheSeg->BaseAddress, Size);
MmBuildMdlForNonPagedPool(Mdl);
Mdl->MdlFlags |= MDL_IO_PAGE_READ;
{
/* File is not cached */
- Mdl = alloca(MmSizeOfMdl(NULL, MAX_ZERO_LENGTH));
+ Mdl = _alloca(MmSizeOfMdl(NULL, MAX_ZERO_LENGTH));
while (Length > 0)
{
static NPAGED_LOOKASIDE_LIST BcbLookasideList;
static NPAGED_LOOKASIDE_LIST CacheSegLookasideList;
-
-#if defined(__GNUC__)
-/* void * alloca(size_t size); */
-#elif defined(_MSC_VER)
-void* _alloca(size_t size);
-#else
-#error Unknown compiler for alloca intrinsic stack allocation "function"
-#endif
-
#if DBG || defined(KDBG)
static void CcRosCacheSegmentIncRefCount_ ( PCACHE_SEGMENT cs, const char* file, int line )
{
Length = ROUND_UP(Length, Bcb->CacheSegmentSize);
-#if defined(__GNUC__)
- CacheSegList = alloca(sizeof(PCACHE_SEGMENT) *
- (Length / Bcb->CacheSegmentSize));
-#elif defined(_MSC_VER)
CacheSegList = _alloca(sizeof(PCACHE_SEGMENT) *
(Length / Bcb->CacheSegmentSize));
-#else
-#error Unknown compiler for alloca intrinsic stack allocation "function"
-#endif
/*
* Look for a cache segment already mapping the same data.