summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-03-23 21:37:30 +0000
committerAndrew Tridgell <tridge@samba.org>2001-03-23 21:37:30 +0000
commit038d3977e2c57f87a4afc44d0d0610ecae20e80d (patch)
treecf1ef3851dcee2d6e1f5264c1294e2e6ce0acb26 /source3/include
parentcd4fea0098ce5200d764f51bef16980f972925ff (diff)
downloadsamba-038d3977e2c57f87a4afc44d0d0610ecae20e80d.tar.gz
samba-038d3977e2c57f87a4afc44d0d0610ecae20e80d.tar.bz2
samba-038d3977e2c57f87a4afc44d0d0610ecae20e80d.zip
a much simpler talloc() implementation. This version has the following
advantages: - memory is trackable by insure - a very simple talloc_realloc() is possible (I've added it) It is slower than the previous talloc code, but I don't think that is going to be a problem. If it is a problem then there are some ways we can make it faster but I'd like to leave those until we have tested this a bit and can see what performance problems might show up in profiling (This used to be commit 1ab63cf3a6f62c3e4ca19a549bde78dad0eb4340)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/talloc.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/include/talloc.h b/source3/include/talloc.h
index 32b0f28ae6..a4df28c8b0 100644
--- a/source3/include/talloc.h
+++ b/source3/include/talloc.h
@@ -29,9 +29,8 @@
struct talloc_chunk {
struct talloc_chunk *next;
+ size_t size;
void *ptr;
- size_t alloc_size;
- size_t total_size;
};
typedef struct {