Mercurial > projects > ldc
diff lphobos/internal/arrays.d @ 100:5071469303d4 trunk
[svn r104] TONS OF FIXES.
Split up declaration, constant initializer gen and definition for globals, structs, classes and functions.
Improved ClassInfo support (not complete), not in vtable yet.
Fixed a bunch of forward reference problems.
Much more. Major commit! :)
author | lindquist |
---|---|
date | Fri, 16 Nov 2007 08:21:47 +0100 |
parents | 61615fa85940 |
children | 5ab8e92611f9 |
line wrap: on
line diff
--- a/lphobos/internal/arrays.d Thu Nov 15 00:24:44 2007 +0100 +++ b/lphobos/internal/arrays.d Fri Nov 16 08:21:47 2007 +0100 @@ -88,40 +88,6 @@ } } -// array comparison routines - -bool _d_static_array_eq(void* lhs, void* rhs, size_t bytesize) -{ - if (lhs is rhs) - return true; - return memcmp(lhs,rhs,bytesize) == 0; -} - -bool _d_static_array_neq(void* lhs, void* rhs, size_t bytesize) -{ - if (lhs is rhs) - return false; - return memcmp(lhs,rhs,bytesize) != 0; -} - -bool _d_dyn_array_eq(void[] lhs, void[] rhs) -{ - if (lhs.length != rhs.length) - return false; - else if (lhs is rhs) - return true; - return memcmp(lhs.ptr,rhs.ptr,lhs.length) == 0; -} - -bool _d_dyn_array_neq(void[] lhs, void[] rhs) -{ - if (lhs.length != rhs.length) - return true; - else if (lhs is rhs) - return false; - return memcmp(lhs.ptr,rhs.ptr,lhs.length) != 0; -} - // for array cast size_t _d_array_cast_len(size_t len, size_t elemsz, size_t newelemsz) {