annotate lphobos/internal/mem.d @ 34:4648206ca213 trunk

[svn r38] * resizing dynamic arrays support * throw is replaced with assert(0) * catch is ignored * better foreach support * various bugfixes
author lindquist
date Tue, 09 Oct 2007 02:50:00 +0200
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
34
4648206ca213 [svn r38] * resizing dynamic arrays support
lindquist
parents:
diff changeset
1 module internal.mem;
4648206ca213 [svn r38] * resizing dynamic arrays support
lindquist
parents:
diff changeset
2
4648206ca213 [svn r38] * resizing dynamic arrays support
lindquist
parents:
diff changeset
3 extern(C):
4648206ca213 [svn r38] * resizing dynamic arrays support
lindquist
parents:
diff changeset
4
4648206ca213 [svn r38] * resizing dynamic arrays support
lindquist
parents:
diff changeset
5 void* realloc(void*,size_t);
4648206ca213 [svn r38] * resizing dynamic arrays support
lindquist
parents:
diff changeset
6 void free(void*);
4648206ca213 [svn r38] * resizing dynamic arrays support
lindquist
parents:
diff changeset
7
4648206ca213 [svn r38] * resizing dynamic arrays support
lindquist
parents:
diff changeset
8 void* _d_realloc(void* ptr, size_t n)
4648206ca213 [svn r38] * resizing dynamic arrays support
lindquist
parents:
diff changeset
9 {
4648206ca213 [svn r38] * resizing dynamic arrays support
lindquist
parents:
diff changeset
10 return realloc(ptr, n);
4648206ca213 [svn r38] * resizing dynamic arrays support
lindquist
parents:
diff changeset
11 }
4648206ca213 [svn r38] * resizing dynamic arrays support
lindquist
parents:
diff changeset
12
4648206ca213 [svn r38] * resizing dynamic arrays support
lindquist
parents:
diff changeset
13 void _d_free(void* ptr)
4648206ca213 [svn r38] * resizing dynamic arrays support
lindquist
parents:
diff changeset
14 {
4648206ca213 [svn r38] * resizing dynamic arrays support
lindquist
parents:
diff changeset
15 free(ptr);
4648206ca213 [svn r38] * resizing dynamic arrays support
lindquist
parents:
diff changeset
16 }