From b799bbb859d9cd6cee4fa979ebf5c506526090f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Sun, 1 Feb 2015 13:33:06 +0000 Subject: [PATCH] [RTL] - Whitespace files. - Add missing PSEH inclusion (that can be detected if one comments the objbase.h include in rtl.h ...) [MKHIVE] Code cleanup + add a comment to explain what this ntoskrnl.h file is. svn path=/trunk/; revision=66138 --- reactos/lib/rtl/access.c | 3 ++- reactos/lib/rtl/acl.c | 3 ++- reactos/lib/rtl/atom.c | 3 ++- reactos/lib/rtl/avltable.c | 12 ++++++------ reactos/lib/rtl/bootdata.c | 3 ++- reactos/lib/rtl/byteswap.c | 3 ++- reactos/lib/rtl/compress.c | 3 ++- reactos/lib/rtl/crc32.c | 3 ++- reactos/lib/rtl/dbgbuffer.c | 28 ++++++++++++++-------------- reactos/lib/rtl/dos8dot3.c | 3 ++- reactos/lib/rtl/encode.c | 3 ++- reactos/lib/rtl/exception.c | 3 ++- reactos/lib/rtl/generictable.c | 12 ++++++------ reactos/lib/rtl/handle.c | 3 ++- reactos/lib/rtl/heap.c | 3 ++- reactos/lib/rtl/heappage.c | 3 ++- reactos/lib/rtl/heapuser.c | 3 ++- reactos/lib/rtl/image.c | 3 ++- reactos/lib/rtl/largeint.c | 3 ++- reactos/lib/rtl/luid.c | 3 ++- reactos/lib/rtl/mem.c | 3 ++- reactos/lib/rtl/memstream.c | 3 ++- reactos/lib/rtl/message.c | 3 ++- reactos/lib/rtl/rtl.h | 3 +++ reactos/tools/mkhive/cmi.c | 7 ++++--- reactos/tools/mkhive/ntoskrnl.h | 12 ++++-------- 26 files changed, 77 insertions(+), 57 deletions(-) diff --git a/reactos/lib/rtl/access.c b/reactos/lib/rtl/access.c index 8a808ecb9bf..7941d63315e 100644 --- a/reactos/lib/rtl/access.c +++ b/reactos/lib/rtl/access.c @@ -1,4 +1,5 @@ -/* COPYRIGHT: See COPYING in the top level directory +/* + * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS system libraries * FILE: lib/rtl/access.c * PURPOSE: Access rights handling functions diff --git a/reactos/lib/rtl/acl.c b/reactos/lib/rtl/acl.c index 6152772625f..a29ab581ad0 100644 --- a/reactos/lib/rtl/acl.c +++ b/reactos/lib/rtl/acl.c @@ -1,4 +1,5 @@ -/* COPYRIGHT: See COPYING in the top level directory +/* + * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS system libraries * PURPOSE: Security manager * FILE: lib/rtl/acl.c diff --git a/reactos/lib/rtl/atom.c b/reactos/lib/rtl/atom.c index 18dd1e293d2..a077b0d8c85 100644 --- a/reactos/lib/rtl/atom.c +++ b/reactos/lib/rtl/atom.c @@ -1,4 +1,5 @@ -/* COPYRIGHT: See COPYING in the top level directory +/* + * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS system libraries * FILE: lib/rtl/atom.c * PURPOSE: Atom managment diff --git a/reactos/lib/rtl/avltable.c b/reactos/lib/rtl/avltable.c index 2b5c6085f00..d0c44f6eb41 100644 --- a/reactos/lib/rtl/avltable.c +++ b/reactos/lib/rtl/avltable.c @@ -1,10 +1,10 @@ /* -* PROJECT: ReactOS Runtime Library -* LICENSE: BSD - See COPYING.ARM in the top level directory -* FILE: lib/rtl/avltable.c -* PURPOSE: AVL Tree Generic Table Implementation -* PROGRAMMERS: ReactOS Portable Systems Group -*/ + * PROJECT: ReactOS Runtime Library + * LICENSE: BSD - See COPYING.ARM in the top level directory + * FILE: lib/rtl/avltable.c + * PURPOSE: AVL Tree Generic Table Implementation + * PROGRAMMERS: ReactOS Portable Systems Group + */ /* INCLUDES ******************************************************************/ diff --git a/reactos/lib/rtl/bootdata.c b/reactos/lib/rtl/bootdata.c index 5614867c19d..77d367426df 100644 --- a/reactos/lib/rtl/bootdata.c +++ b/reactos/lib/rtl/bootdata.c @@ -1,4 +1,5 @@ -/* COPYRIGHT: See COPYING in the top level directory +/* + * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS system libraries * PURPOSE: Boot Data implementation * FILE: lib/rtl/bootdata.c diff --git a/reactos/lib/rtl/byteswap.c b/reactos/lib/rtl/byteswap.c index b58f6cf05f6..6afb2e6e47f 100644 --- a/reactos/lib/rtl/byteswap.c +++ b/reactos/lib/rtl/byteswap.c @@ -1,4 +1,5 @@ -/* COPYRIGHT: See COPYING in the top level directory +/* + * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS system libraries * FILE: lib/rtl/mem.c * PURPOSE: Memory functions diff --git a/reactos/lib/rtl/compress.c b/reactos/lib/rtl/compress.c index 87d77be73d9..ef31b22ee7e 100644 --- a/reactos/lib/rtl/compress.c +++ b/reactos/lib/rtl/compress.c @@ -1,4 +1,5 @@ -/* COPYRIGHT: See COPYING in the top level directory +/* + * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS system libraries * PURPOSE: Compression and decompression functions * FILE: lib/rtl/compress.c diff --git a/reactos/lib/rtl/crc32.c b/reactos/lib/rtl/crc32.c index b814ea34fde..e5f53e2f755 100644 --- a/reactos/lib/rtl/crc32.c +++ b/reactos/lib/rtl/crc32.c @@ -1,4 +1,5 @@ -/* COPYRIGHT: See COPYING in the top level directory +/* + * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS system libraries * PURPOSE: crc32 functions * FILE: lib/rtl/crc32.c diff --git a/reactos/lib/rtl/dbgbuffer.c b/reactos/lib/rtl/dbgbuffer.c index 1c11dab9d70..e51682e10da 100644 --- a/reactos/lib/rtl/dbgbuffer.c +++ b/reactos/lib/rtl/dbgbuffer.c @@ -1,8 +1,9 @@ -/* COPYRIGHT: See COPYING in the top level directory -* PROJECT: ReactOS system libraries -* FILE: lib/rtl/dbgbuffer.c -* PROGRAMER: James Tabor -*/ +/* + * COPYRIGHT: See COPYING in the top level directory + * PROJECT: ReactOS system libraries + * FILE: lib/rtl/dbgbuffer.c + * PROGRAMER: James Tabor + */ /* INCLUDES *****************************************************************/ @@ -14,8 +15,8 @@ /* FUNCTIONS *****************************************************************/ /* -* @unimplemented -*/ + * @unimplemented + */ PRTL_DEBUG_INFORMATION NTAPI RtlCreateQueryDebugBuffer(IN ULONG Size, @@ -42,8 +43,8 @@ RtlCreateQueryDebugBuffer(IN ULONG Size, } /* -* @unimplemented -*/ + * @unimplemented + */ NTSTATUS NTAPI RtlDestroyQueryDebugBuffer(IN PRTL_DEBUG_INFORMATION Buf) @@ -66,9 +67,8 @@ RtlDestroyQueryDebugBuffer(IN PRTL_DEBUG_INFORMATION Buf) } /* -* Based on lib/epsapi/enum/modules.c by KJK::Hyperion. -* -*/ + * Based on lib/epsapi/enum/modules.c by KJK::Hyperion. + */ NTSTATUS NTAPI RtlpQueryRemoteProcessModules(HANDLE ProcessHandle, @@ -233,8 +233,8 @@ RtlpQueryRemoteProcessModules(HANDLE ProcessHandle, } /* -* @unimplemented -*/ + * @unimplemented + */ NTSTATUS NTAPI RtlQueryProcessDebugInformation(IN ULONG ProcessId, diff --git a/reactos/lib/rtl/dos8dot3.c b/reactos/lib/rtl/dos8dot3.c index 3f1a19232ff..145dce90de6 100644 --- a/reactos/lib/rtl/dos8dot3.c +++ b/reactos/lib/rtl/dos8dot3.c @@ -1,4 +1,5 @@ -/* COPYRIGHT: See COPYING in the top level directory +/* + * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS system libraries * FILE: lib/rtl/dos8dot3.c * PURPOSE: Short name (8.3 name) functions diff --git a/reactos/lib/rtl/encode.c b/reactos/lib/rtl/encode.c index c8961fe5a87..3deba6de485 100644 --- a/reactos/lib/rtl/encode.c +++ b/reactos/lib/rtl/encode.c @@ -1,4 +1,5 @@ -/* COPYRIGHT: See COPYING in the top level directory +/* + * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS system libraries * PURPOSE: Security descriptor functions * FILE: lib/rtl/encode.c diff --git a/reactos/lib/rtl/exception.c b/reactos/lib/rtl/exception.c index cc82c16b45f..178c877b0c4 100644 --- a/reactos/lib/rtl/exception.c +++ b/reactos/lib/rtl/exception.c @@ -1,4 +1,5 @@ -/* COPYRIGHT: See COPYING in the top level directory +/* + * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS Runtime Library * PURPOSE: User-Mode Exception Support * FILE: lib/rtl/exception.c diff --git a/reactos/lib/rtl/generictable.c b/reactos/lib/rtl/generictable.c index 8dce8d686b4..a61a9699e99 100644 --- a/reactos/lib/rtl/generictable.c +++ b/reactos/lib/rtl/generictable.c @@ -1,10 +1,10 @@ /* -* PROJECT: ReactOS Runtime Library -* LICENSE: GPL - See COPYING in the top level directory -* FILE: lib/rtl/generictable.c -* PURPOSE: Splay Tree Generic Table Implementation -* PROGRAMMERS: Alex Ionescu (alex.ionescu@reactos.org) -*/ + * PROJECT: ReactOS Runtime Library + * LICENSE: GPL - See COPYING in the top level directory + * FILE: lib/rtl/generictable.c + * PURPOSE: Splay Tree Generic Table Implementation + * PROGRAMMERS: Alex Ionescu (alex.ionescu@reactos.org) + */ /* INCLUDES ******************************************************************/ diff --git a/reactos/lib/rtl/handle.c b/reactos/lib/rtl/handle.c index 7e884dc12b6..99ec593e55b 100644 --- a/reactos/lib/rtl/handle.c +++ b/reactos/lib/rtl/handle.c @@ -1,4 +1,5 @@ -/* COPYRIGHT: See COPYING in the top level directory +/* + * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS system libraries * PURPOSE: Handle table * FILE: lib/rtl/handle.c diff --git a/reactos/lib/rtl/heap.c b/reactos/lib/rtl/heap.c index fe68bd4f44e..f82b39c78a8 100644 --- a/reactos/lib/rtl/heap.c +++ b/reactos/lib/rtl/heap.c @@ -1,4 +1,5 @@ -/* COPYRIGHT: See COPYING in the top level directory +/* + * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS system libraries * FILE: lib/rtl/heap.c * PURPOSE: RTL Heap backend allocator diff --git a/reactos/lib/rtl/heappage.c b/reactos/lib/rtl/heappage.c index 696fcda309b..4da8d5cab88 100644 --- a/reactos/lib/rtl/heappage.c +++ b/reactos/lib/rtl/heappage.c @@ -1,4 +1,5 @@ -/* COPYRIGHT: See COPYING in the top level directory +/* + * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS system libraries * FILE: lib/rtl/heappage.c * PURPOSE: RTL Page Heap implementation diff --git a/reactos/lib/rtl/heapuser.c b/reactos/lib/rtl/heapuser.c index 242307589ad..ba747978fe3 100644 --- a/reactos/lib/rtl/heapuser.c +++ b/reactos/lib/rtl/heapuser.c @@ -1,4 +1,5 @@ -/* COPYRIGHT: See COPYING in the top level directory +/* + * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS system libraries * FILE: lib/rtl/heap.c * PURPOSE: RTL Heap backend allocator (user mode only functions) diff --git a/reactos/lib/rtl/image.c b/reactos/lib/rtl/image.c index 3c0fd41f5d5..a7f7c3e3d58 100644 --- a/reactos/lib/rtl/image.c +++ b/reactos/lib/rtl/image.c @@ -1,4 +1,5 @@ -/* COPYRIGHT: See COPYING in the top level directory +/* + * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS system libraries * FILE: lib/rtl/image.c * PURPOSE: Image handling functions diff --git a/reactos/lib/rtl/largeint.c b/reactos/lib/rtl/largeint.c index 79dbbd2dc58..f034a811dd9 100644 --- a/reactos/lib/rtl/largeint.c +++ b/reactos/lib/rtl/largeint.c @@ -1,4 +1,5 @@ -/* COPYRIGHT: See COPYING in the top level directory +/* + * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS system libraries * FILE: lib/rtl/largeint.c * PURPOSE: Large integer operations diff --git a/reactos/lib/rtl/luid.c b/reactos/lib/rtl/luid.c index 538e9f05c47..fb39560fef1 100644 --- a/reactos/lib/rtl/luid.c +++ b/reactos/lib/rtl/luid.c @@ -1,4 +1,5 @@ -/* COPYRIGHT: See COPYING in the top level directory +/* + * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS system libraries * PURPOSE: Locally unique identifier (LUID) helper functions * FILE: lib/rtl/luid.c diff --git a/reactos/lib/rtl/mem.c b/reactos/lib/rtl/mem.c index 9869a898bc7..0704f521ab2 100644 --- a/reactos/lib/rtl/mem.c +++ b/reactos/lib/rtl/mem.c @@ -1,4 +1,5 @@ -/* COPYRIGHT: See COPYING in the top level directory +/* + * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS system libraries * FILE: lib/rtl/mem.c * PURPOSE: Memory functions diff --git a/reactos/lib/rtl/memstream.c b/reactos/lib/rtl/memstream.c index ff1382abf9a..7fbd93fadae 100644 --- a/reactos/lib/rtl/memstream.c +++ b/reactos/lib/rtl/memstream.c @@ -1,4 +1,5 @@ -/* COPYRIGHT: See COPYING in the top level directory +/* + * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS system libraries * FILE: lib/rtl/mem.c * PURPOSE: MemoryStream functions diff --git a/reactos/lib/rtl/message.c b/reactos/lib/rtl/message.c index 0f0f7aa9f02..c5756b0e555 100644 --- a/reactos/lib/rtl/message.c +++ b/reactos/lib/rtl/message.c @@ -1,4 +1,5 @@ -/* COPYRIGHT: See COPYING in the top level directory +/* + * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS system libraries * FILE: lib/rtl/message.c * PURPOSE: Message table functions diff --git a/reactos/lib/rtl/rtl.h b/reactos/lib/rtl/rtl.h index e4384fdd140..0f196e22691 100644 --- a/reactos/lib/rtl/rtl.h +++ b/reactos/lib/rtl/rtl.h @@ -39,6 +39,9 @@ #include #include +/* SEH support with PSEH */ +#include + /* Internal RTL header */ #include "rtlp.h" diff --git a/reactos/tools/mkhive/cmi.c b/reactos/tools/mkhive/cmi.c index a38261c6d4e..cae8a81d983 100644 --- a/reactos/tools/mkhive/cmi.c +++ b/reactos/tools/mkhive/cmi.c @@ -219,7 +219,7 @@ CmiAllocateHashTableCell ( return Status; } -NTSTATUS +static NTSTATUS CmiCreateSubKey( IN PCMHIVE RegistryHive, IN HCELL_INDEX ParentKeyCellOffset, @@ -363,6 +363,7 @@ CmiAddSubKey( return STATUS_SUCCESS; } +#if 0 // Those two functions seem to be unused, but keep them just in case we may need to use them in the future... static BOOLEAN CmiCompareHash( IN PCUNICODE_STRING KeyName, @@ -378,8 +379,7 @@ CmiCompareHash( return (strncmp(Buffer, HashString, 4) == 0); } - -BOOLEAN +static BOOLEAN CmiCompareHashI( IN PCUNICODE_STRING KeyName, IN PCHAR HashString) @@ -393,6 +393,7 @@ CmiCompareHashI( return (strncasecmp(Buffer, HashString, 4) == 0); } +#endif NTSTATUS CmiScanForSubKey( diff --git a/reactos/tools/mkhive/ntoskrnl.h b/reactos/tools/mkhive/ntoskrnl.h index dc07c919b86..5b6b6dad737 100644 --- a/reactos/tools/mkhive/ntoskrnl.h +++ b/reactos/tools/mkhive/ntoskrnl.h @@ -1,10 +1,6 @@ +/* + * This header is used together with cmindex.c and cmname.c + */ + #define NDEBUG #include "mkhive.h" - -PVOID -NTAPI -CmpAllocate( - IN SIZE_T Size, - IN BOOLEAN Paged, - IN ULONG Tag -);