/***********************************************************************1* *2* This software is part of the ast package *3* Copyright (c) 1999-2011 AT&T Intellectual Property *4* and is licensed under the *5* Eclipse Public License, Version 1.0 *6* by AT&T Intellectual Property *7* *8* A copy of the License is available at *9* http://www.eclipse.org/org/documents/epl-v10.html *10* (with md5 checksum b35adb5213ca9657e911e9befb180842) *11* *12* Information and Software Systems Research *13* AT&T Research *14* Florham Park NJ *15* *16* Glenn Fowler <[email protected]> *17* *18***********************************************************************/19#include "cdt.h"20#include "terror.h"2122#if __STD_C23static int compare(Dt_t* dt, Void_t* o1, Void_t* o2, Dtdisc_t* disc)24#else25static int compare(dt,o1,o2,disc)26Dt_t* dt;27Void_t* o1;28Void_t* o2;29Dtdisc_t* disc;30#endif31{32return (int)((char*)o1 - (char*)o2);33}3435#if __STD_C36static int rcompare(Dt_t* dt, Void_t* o1, Void_t* o2, Dtdisc_t* disc)37#else38static int rcompare(dt,o1,o2,disc)39Dt_t* dt;40Void_t* o1;41Void_t* o2;42Dtdisc_t* disc;43#endif44{45return (int)((char*)o2 - (char*)o1);46}4748#if __STD_C49static Void_t* newint(Dt_t* dt, Void_t* o, Dtdisc_t* disc)50#else51static Void_t* newint(dt,o,disc)52Dt_t* dt;53Void_t* o;54Dtdisc_t* disc;55#endif56{57return o;58}5960#if __STD_C61static unsigned int hashint(Dt_t* dt, Void_t* o, Dtdisc_t* disc)62#else63static unsigned int hashint(dt,o,disc)64Dt_t* dt;65Void_t* o;66Dtdisc_t* disc;67#endif68{69return (unsigned int)((char*)o - (char*)0);70}717273