- Fix some small formatting issues.

svn path=/trunk/; revision=20427
This commit is contained in:
Alex Ionescu 2005-12-29 17:57:11 +00:00
parent 39f36b9840
commit e642f64e26
3 changed files with 17 additions and 23 deletions

View file

@ -3,7 +3,6 @@
* PROJECT: ReactOS kernel
* FILE: ntoskrnl/ex/lookas.c
* PURPOSE: Lookaside lists
*
* PROGRAMMERS: Alex Ionescu (alex@relsoft.net)
* David Welch (welch@mcmail.com)
* Casper S. Hornstrup (chorns@users.sourceforge.net)
@ -28,7 +27,7 @@ KSPIN_LOCK ExpPagedLookasideListLock;
/* FUNCTIONS *****************************************************************/
VOID
VOID
INIT_FUNCTION
STDCALL
ExpInitLookasideLists()
@ -185,7 +184,6 @@ ExInitializeNPagedLookasideList(PNPAGED_LOOKASIDE_LIST Lookaside,
&ExpNonPagedLookasideListLock);
}
/*
* @implemented
*/

View file

@ -1,12 +1,9 @@
/* $Id$
*
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
* PROJECT: ReactOS Kernel
* FILE: ntoskrnl/ex/win32k.c
* PURPOSE: Executive Win32 subsystem support
*
* PROGRAMMERS: Alex Ionescu (alex@relsoft.net) - Moved callbacks to win32k and cleanup.
* Casper S. Hornstrup (chorns@users.sourceforge.net)
* PURPOSE: Executive Win32 Object Support (Desktop/WinStation)
* PROGRAMMERS: Alex Ionescu (alex@relsoft.net)
*/
#include <ntoskrnl.h>
@ -104,7 +101,7 @@ STDCALL
ExpDesktopCreate(PVOID ObjectBody,
PVOID Parent,
PWSTR RemainingPath,
struct _OBJECT_ATTRIBUTES* ObjectAttributes)
POBJECT_ATTRIBUTES ObjectAttributes)
{
/* Call the Registered Callback */
return ExpDesktopObjectCreate(ObjectBody,
@ -128,9 +125,8 @@ ExpWin32kInit(VOID)
{
OBJECT_TYPE_INITIALIZER ObjectTypeInitializer;
UNICODE_STRING Name;
DPRINT("Creating Win32 Object Types\n");
DPRINT("Creating window station Object Type\n");
/* Create the window station Object Type */
RtlZeroMemory(&ObjectTypeInitializer, sizeof(ObjectTypeInitializer));
RtlInitUnicodeString(&Name, L"WindowStation");
@ -140,7 +136,9 @@ ExpWin32kInit(VOID)
ObjectTypeInitializer.OpenProcedure = ExpWinStaObjectOpen;
ObjectTypeInitializer.DeleteProcedure = ExpWinStaObjectDelete;
ObjectTypeInitializer.ParseProcedure = ExpWinStaObjectParse;
ObpCreateTypeObject(&ObjectTypeInitializer, &Name, &ExWindowStationObjectType);
ObpCreateTypeObject(&ObjectTypeInitializer,
&Name,
&ExWindowStationObjectType);
/* Create desktop object type */
RtlInitUnicodeString(&Name, L"Desktop");
@ -148,7 +146,6 @@ ExpWin32kInit(VOID)
ObjectTypeInitializer.OpenProcedure = NULL;
ObjectTypeInitializer.DeleteProcedure = ExpDesktopDelete;
ObjectTypeInitializer.ParseProcedure = NULL;
ObpCreateTypeObject(&ObjectTypeInitializer, &Name, &ExDesktopObjectType);
}

View file

@ -3,7 +3,6 @@
* PROJECT: ReactOS kernel
* FILE: ntoskrnl/ex/zone.c
* PURPOSE: Implements zone buffers
*
* PROGRAMMERS: Alex Ionescu (alex@relsoft.net)
* David Welch (welch@mcmail.com)
*/
@ -32,8 +31,8 @@ ExExtendZone(PZONE_HEADER Zone,
* BlockSize and Segment must be 8-byte aligned.
* Blocksize cannot exceed Segment Size.
*/
if (((ULONG_PTR)Segment & 7) ||
(SegmentSize & 7) ||
if (((ULONG_PTR)Segment & 7) ||
(SegmentSize & 7) ||
(Zone->BlockSize > SegmentSize))
{
DPRINT1("Invalid ExExtendZone Alignment and/or Size\n");
@ -41,7 +40,8 @@ ExExtendZone(PZONE_HEADER Zone,
}
/* Link the Zone and Segment */
PushEntryList(&Zone->SegmentList,&((PZONE_SEGMENT_HEADER)Segment)->SegmentList);
PushEntryList(&Zone->SegmentList,
&((PZONE_SEGMENT_HEADER)Segment)->SegmentList);
/* Get to the first entry */
Entry = (ULONG_PTR)Segment + sizeof(ZONE_SEGMENT_HEADER);
@ -65,7 +65,6 @@ ExExtendZone(PZONE_HEADER Zone,
return STATUS_SUCCESS;
}
/*
* @implemented
*/
@ -74,7 +73,7 @@ STDCALL
ExInterlockedExtendZone(PZONE_HEADER Zone,
PVOID Segment,
ULONG SegmentSize,
PKSPIN_LOCK Lock)
PKSPIN_LOCK Lock)
{
NTSTATUS Status;
KIRQL OldIrql;
@ -90,7 +89,6 @@ ExInterlockedExtendZone(PZONE_HEADER Zone,
return Status;
}
/*
* FUNCTION: Initalizes a zone header
* ARGUMENTS:
@ -130,7 +128,8 @@ ExInitializeZone(PZONE_HEADER Zone,
/* Link empty list */
Zone->FreeList.Next = NULL;
Zone->SegmentList.Next = NULL;
PushEntryList(&Zone->SegmentList, &((PZONE_SEGMENT_HEADER)InitialSegment)->SegmentList);
PushEntryList(&Zone->SegmentList,
&((PZONE_SEGMENT_HEADER)InitialSegment)->SegmentList);
((PZONE_SEGMENT_HEADER)InitialSegment)->Reserved = NULL;
/* Get first entry */