Commit graph

24 commits

Author SHA1 Message Date
Timo Kreuzer
9ea495ba33 Create a branch for header work.
svn path=/branches/header-work/; revision=45691
2010-02-26 22:57:55 +00:00
KJK::Hyperion
7faf270a8a modified lib/rtl/exception.c
Silence unavoidable warning

modified   lib/rtl/generictable.c
   Avoid silenceable warning

svn path=/trunk/; revision=41561
2009-06-22 20:19:06 +00:00
Aleksey Bragin
a7e1400f0c Cecill Etheredge <ijsf@gmx.net>
- The RtlEnumerateGenericTableWithoutSplaying function in RTL (generictable.c) effectively performs an endless enumeration, never advancing to the next successor element in the tree because of a bug in the code. Fix this. (Bug #3756).
- The RtlDelete code misses a line of code checking whether the node is a root,
and instead always returns NULL (assuming it is the root). Fix this. (Bug #3760).
See issue #3760 for more details.

svn path=/trunk/; revision=36663
2008-10-06 10:50:22 +00:00
Jeffrey Morlan
fca286cbda Fix infinite loop during generic table lookups. Patch by Alex Ionescu
svn path=/trunk/; revision=35487
2008-08-20 19:15:00 +00:00
Daniel Reimer
ae7da04787 Delete all Trailing spaces in code.
svn path=/trunk/; revision=29690
2007-10-19 23:21:45 +00:00
Thomas Bluemel
9d10081480 Fixed usage of uninitialized variable warning
svn path=/trunk/; revision=24549
2006-10-16 15:55:33 +00:00
Alex Ionescu
f9a7faa6e5 - Implement RtlGetElementGenericTable using ordered node/element.
- The splay tree generic table package is now complete. (The AVL package was done by Art earlier).

svn path=/trunk/; revision=24546
2006-10-16 04:08:09 +00:00
Alex Ionescu
a18f3458b2 - Fix GCC compile bug.
svn path=/trunk/; revision=24545
2006-10-16 03:53:48 +00:00
Alex Ionescu
d403bc14c4 - Create "AVL FUNCTIONS" section tag.
- Implement RtlENumerateGEnericTableWithoutSplaying.

svn path=/trunk/; revision=24544
2006-10-16 03:51:49 +00:00
Alex Ionescu
cac3dc3812 - Implement RtlLookupElementGenericTableFull.
- Implement RtlEnumerateGenericTable.

svn path=/trunk/; revision=24543
2006-10-16 03:47:47 +00:00
Alex Ionescu
cef2ebcee2 - Implement RtlIsGenericTableEmpty, RtlNumberGenericTableElements.
- Implement RtlLookupElementGenericTable.
- Implement RtlDeleteElementGenericTable

svn path=/trunk/; revision=24542
2006-10-16 03:39:49 +00:00
Alex Ionescu
dbb8a15d7c - Added some generic table routines to rtlfuncs.h so that they can be used in user-mode.
- Implemented RtlInsertElementGenericTable and RtlInsertElementGenericTableFull (Splay-Tree versions). Also implemented a helper function RtlpFindGenericTableNodeOrParent when we're not given one and need to locate it manually.
- Defined structure for generic table entries so that we can properly return user data and do the right allocations.

svn path=/trunk/; revision=24541
2006-10-16 03:19:14 +00:00
Alex Ionescu
693525bd5a - Organize file by AVL/Splay routines.
- Add RtlLookupFirstMatchingElementGenericTableAvl stub.
- Fixup some formatting/tag spacing and prototype definitions.

svn path=/trunk/; revision=24540
2006-10-16 02:49:23 +00:00
Art Yerkes
789a033291 Fixed avl tree completely.
- We can't use the builtin node as a sentinel in exactly the same way as used
in the austin lib, so we account for that by treating the builtin node like
nil a few places.

svn path=/trunk/; revision=24510
2006-10-14 17:29:41 +00:00
Art Yerkes
a8e91f11af Fixen. Delete is still broken.
We now use BalancedRoot->Parent as the nil element and distinguish it from
the embedded element.
Fix null and root macros, assert macro and some other stuff.

svn path=/trunk/; revision=24495
2006-10-13 07:02:04 +00:00
Art Yerkes
79e9d9d8aa Added 'austin' AVL implementation and provide a binding for the AVL functions
in generictable.

Not tested, (but nothing relies on it yet).

Austin is
 Copyright (C) 2000 Kaz Kylheku <kaz@ashi.footprints.net>
 Copyright (C) 2000 Carl van Tast <vanTast@netway.at>

Copying, reuse and modification are permitted on liberal terms.

svn path=/trunk/; revision=24482
2006-10-10 12:31:16 +00:00
Alex Ionescu
824fc6410b - Fix function signature of CompareUnicodeStrings
- Add special case where we get a prefix itself and a name starting with a prefix character.
- Implement RtlInitializeGenericTable
This fixes the windows npfs.sys hang.

svn path=/trunk/; revision=19055
2005-11-08 16:41:58 +00:00
Alex Ionescu
8c002db0c2 - NDK fix: don't undef a million status codes, instead, have apps define WIN32_NO_STATUS.
- winnt.h: respect WIN32_NO_STATUS for DBG codes.
- rtl: change STDCALL to NTAPI
- everything else: add precompiled headers where missing, define WIN32_NO_STATUS.

svn path=/trunk/; revision=18598
2005-10-19 17:03:38 +00:00
Alex Ionescu
c39ccd6592 - Part one of major RTL cleanup. Merge duplicated code and stick everything in lib\rtl that used to be in ntdll. Also cleanup the file headers, copyright information and includes.
svn path=/trunk/; revision=17731
2005-09-08 00:09:32 +00:00
Filip Navara
d2bc064abf #include "rtl.h" -> #include <rtl.h>
svn path=/trunk/; revision=16732
2005-07-26 08:39:07 +00:00
Alex Ionescu
35deccffea Make rtl use a single header. Helps for PCH and will help for the new Headers (no need to change each file)
svn path=/trunk/; revision=15115
2005-05-08 05:14:46 +00:00
Eric Kohl
dfa5c9434a - Implement RtlSetAttributesSecurityDescriptor, RtlInitializeGenericTableAvl, RtlNumberGenericTableElements and RtlNumberGenericTableElementsAvl.
svn path=/trunk/; revision=13558
2005-02-14 14:36:03 +00:00
Martin Fuchs
e228aadfe5 migrate substitution keywords to SVN
svn path=/trunk/; revision=12852
2005-01-06 13:58:04 +00:00
Alex Ionescu
054fcf9a85 Fixed Names.
svn path=/trunk/; revision=10405
2004-08-05 19:03:24 +00:00
Renamed from reactos/lib/rtl/generictbl.c (Browse further)