aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib/libbindle
diff options
context:
space:
mode:
authorDavid M. Syzdek <david@syzdek.net>2022-08-31 15:01:18 -0800
committerDavid M. Syzdek <david@syzdek.net>2022-08-31 15:01:18 -0800
commitf3b26aea269e9933732cda78e72eb8d7a4c8c387 (patch)
treed50a5902893c24a332462a0666a7683ee620d935 /lib/libbindle
parentb6551d6e9a475db64fe9cd8cd20695203d860cd8 (diff)
downloadbindletools-f3b26aea269e9933732cda78e72eb8d7a4c8c387.tar.gz
bindletools-f3b26aea269e9933732cda78e72eb8d7a4c8c387.tar.bz2
bindletools-f3b26aea269e9933732cda78e72eb8d7a4c8c387.tar.xz
bindletools-f3b26aea269e9933732cda78e72eb8d7a4c8c387.zip
libbindle: adding bindle_realloc()
Diffstat (limited to 'lib/libbindle')
-rw-r--r--lib/libbindle/libbindle.sym1
-rw-r--r--lib/libbindle/lobj.c11
2 files changed, 12 insertions, 0 deletions
diff --git a/lib/libbindle/libbindle.sym b/lib/libbindle/libbindle.sym
index 42fa0b1..d01b1dd 100644
--- a/lib/libbindle/libbindle.sym
+++ b/lib/libbindle/libbindle.sym
@@ -66,6 +66,7 @@ bindle_map_lookup_value
66# psuedo object functions 66# psuedo object functions
67bindle_alloc 67bindle_alloc
68bindle_free 68bindle_free
69bindle_realloc
69bindle_release 70bindle_release
70bindle_retain 71bindle_retain
71bindle_retain_count 72bindle_retain_count
diff --git a/lib/libbindle/lobj.c b/lib/libbindle/lobj.c
index 2ea1f7a..244d410 100644
--- a/lib/libbindle/lobj.c
+++ b/lib/libbindle/lobj.c
@@ -115,6 +115,17 @@ bindle_free(
115} 115}
116 116
117 117
118void *
119bindle_realloc(
120 void * ptr,
121 size_t size )
122{
123 BindleDebugTrace();
124 assert(size >= BNDL_OBJ_SIZE);
125 return(realloc(ptr, size));
126}
127
128
118void 129void
119bindle_release( 130bindle_release(
120 bindle_obj_t * obj ) 131 bindle_obj_t * obj )