summaryrefslogtreecommitdiffstats
path: root/source/ubiqx/ubi_Cache.c
Commit message (Collapse)AuthorAgeFilesLines
* Bringing these up to date with what I've got on my site. The fixes includeChristopher R. Hertel2000-06-081-3/+6
| | | | | | | the change that prevents 'insure' from becomming confused and issuing leak reports. Some minor speed fixes. That sort of thing. Chris -)-----
* It occurred to me that the samba includes.h file should be included in theChristopher R. Hertel1998-06-031-3/+6
| | | | | | | | | | 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 -)-----
* Changed the mechanism for including the Samba includes.h in the ubiqx codeChristopher R. Hertel1998-06-021-3/+7
| | | | | | | | | | | | | | | | 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 -)-----
* Along the lines that Andrew suggested, I added a header called ubi_null.h.Christopher R. Hertel1998-05-211-3/+14
| | | | | | | | | | | 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 -)-----
* include includes.h in all the ubiqx files. I know Chris won't likeAndrew Tridgell1998-05-111-1/+1
| | | | | | | this but it really is necessary (sorry Chris!) ubiqx code didn't compile on SunOS4 otherwise as stdlib didn't define NULL.
* I removed a static string that was in there because I planned to doChristopher R. Hertel1998-04-091-6/+0
| | | | | | something with it some day. It was causing gcc to cough up warnings (not serious ones, mind you). Don't worry... It will be back! Chris -)-----
* Adding the cache module.Christopher R. Hertel1997-12-191-0/+490
I'll be using the cache module to replace the name cache in mangle.c. The new one should be much faster and should require less memory. Another feature is that the cache size can be limited by the amount of memory used in addition to the number of entries allowed. With the current cache, the default is to allocate 12800 bytes representing 50 entries (256 bytes each). With the same amount of memory, I should be able to load over around two hundred entries. Changes to the AVL trees were minor (missing comments). Chris -)-----