/usr/lib/gcc/x86_64-linux-gnu/5/include/d/rt/obj.d is in libphobos-5-dev 5.5.0-12ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | /**
* Contains object comparator functions called by generated code.
*
* Copyright: Copyright Digital Mars 2002 - 2010.
* License: $(WEB www.boost.org/LICENSE_1_0.txt, Boost License 1.0).
* Authors: Walter Bright
*/
/* Copyright Digital Mars 2000 - 2010.
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*/
module rt.obj;
extern (C):
/********************************
* Compiler helper for operator == for class objects.
*/
int _d_obj_eq(Object o1, Object o2)
{
return o1 is o2 || (o1 && o1.opEquals(o2));
}
/********************************
* Compiler helper for operator <, <=, >, >= for class objects.
*/
int _d_obj_cmp(Object o1, Object o2)
{
return o1.opCmp(o2);
}
|