1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-07 17:18:11 +03:00
Commit Graph

12 Commits

Author SHA1 Message Date
Christopher R. Hertel
c5d7ee506d Again, just syncronizing. The a function name was changed in the sll
module but none of Samba uses it directly.  The macros are used instead
so the change is hidden.  Good.
0001-01-01 00:00:00 +00:00
Christopher R. Hertel
3c133778f1 To each list type, I added a macro that makes it easier to define and
initialize a list header.
0001-01-01 00:00:00 +00:00
Christopher R. Hertel
1ce7d38d9f Minor cosmetic change. I up-cased internal #defines. 0001-01-01 00:00:00 +00:00
Christopher R. Hertel
e30a7e023b It occurred to me that the samba includes.h file should be included in the
header files used by the ubiqx modules, instead of being hidden in the .c
files.  This would ensure that anything in includes.h would be "seen" by
the ubiqx headers.  I also had to put an #ifdef around the includes for
ubi_SplayTree.h and ubi_Cache.h in includes.h to prevent the header of the
descendant type from being included before its parent type.

Chris -)-----
0001-01-01 00:00:00 +00:00
Christopher R. Hertel
def161eeea Changed the mechanism for including the Samba includes.h in the ubiqx code
to something less hurried, simpler, and (I believe) more acceptable to
all.  The ubi_*.c files all now #include sys_include.h which, for Samba,
contains only comments and the line

#include "../includes.h"

That will make sure that the Samba header is there, allows me to
distribute a different default header with the main ubiqx set, and allows
others to write their own sys_includes.h for their own purposes.

Thanks to Andrew and Jeremy for hammering this out with me.

Chris -)-----
0001-01-01 00:00:00 +00:00
Christopher R. Hertel
05fcc67872 Along the lines that Andrew suggested, I added a header called ubi_null.h.
This header tries four different locations for a definition of NULL.  If
NULL still hasn't been found, it defaults to ((void *)0).  All of the
includes can be, essentially, overridden by defining NULL on the command
line, as in -DNULL=((void *)0).  I have faith that this will avoid the
problem of NULL being in different places on different systems.  If there
is a system out there that doesn't define NULL in any of the headers I've
included, then let me know *where* it's defined and I'll add another
header.  Chris -)-----
0001-01-01 00:00:00 +00:00
Andrew Tridgell
4989db8b0b include includes.h in all the ubiqx files. I know Chris won't like
this but it really is necessary (sorry Chris!)

ubiqx code didn't compile on SunOS4 otherwise as stdlib didn't define
NULL.
0001-01-01 00:00:00 +00:00
Christopher R. Hertel
599a29401d Updates to all of these base level modules.
Trees: Previously, the AVL node type was different than the node type used
       in the BinTree and SplayTree modules.  It requires an additional
       field to maintain AVL balance information.  I merged that field into
       the base type (in ubi_BinTree.h) so that all three use the same
       node type.  On most systems this will have zero effect on the node
       size, due to word alignment.  The change allowed me to remove a
       bigbunch of redundant code, which makes the AVL module smaller and
       cleaner.
Linked Lists:  I combined ubi_StackQueue into ubi_sLinkList.  The interface
       has changed a tiny bit.  I added macros to ubi_dLinkList to round
       it out a bit.

I have verified that the few Samba modules that use these tools (so far)
do not have any problems with the changes.

Chris -)-----
0001-01-01 00:00:00 +00:00
Andrew Tridgell
dc8998b1d3 moved ubi_ modules back into the ubiqx directory.
I've added a very simple (and portable) method for having separate
source directories.

This should also help when we add directories for the various ports. A
unix directory would make sense.
0001-01-01 00:00:00 +00:00
Christopher R. Hertel
4691a94d3c I got fed up trying to put the tree and list stuff into a subdirectory,
so I've started to move them into the main directory.
0001-01-01 00:00:00 +00:00
Christopher R. Hertel
2181d929d1 These are the ubiqx modules, as included with the Samba distribution.
Updated the linked list module, which has new and changed macros.
0001-01-01 00:00:00 +00:00
Christopher R. Hertel
3590a78333 This is the ubiqx binary tree and linked list library.
This library is being included as part of the Samba distribution.
(Hurray!)
0001-01-01 00:00:00 +00:00