diff gen/structs.h @ 344:e20ce6d8d374 trunk

[svn r365] Implemented raw struct equality comparison, uses C memcmp. Renamed DtoDelegateCompare to DtoDelegateEquals, for consistency with the other equality helpers.
author lindquist
date Sun, 13 Jul 2008 04:11:08 +0200
parents a95056b3c996
children 74101be2a553
line wrap: on
line diff
--- a/gen/structs.h	Sun Jul 13 03:02:15 2008 +0200
+++ b/gen/structs.h	Sun Jul 13 04:11:08 2008 +0200
@@ -25,6 +25,11 @@
  */
 void DtoDefineStruct(StructDeclaration* sd);
 
+/**
+ * Returns a boolean=true if the two structs are equal
+ */
+LLValue* DtoStructEquals(TOK op, DValue* lhs, DValue* rhs);
+
 typedef LLSmallVector<unsigned, 3> DStructIndexVector;
 LLValue* DtoIndexStruct(LLValue* ptr, StructDeclaration* sd, Type* t, unsigned os, DStructIndexVector& idxs);