/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1999-2011 AT&T Intellectual Property *
* and is licensed under the *
* Eclipse Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum b35adb5213ca9657e911e9befb180842) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* Glenn Fowler <gsf@research.att.com> *
* *
***********************************************************************/
#include "dttest.h"
typedef struct _obj_s
long key;
long ord;
} Obj_t;
{
}
{
return (unsigned int)(o->key);
}
tmain()
{
long i, k, count, n;
for(i = 0; i < N_OBJ; i = k)
}
}
for(k = 0; k < 2; ++k)
terror("Opening dictionary");
for(i = 0; i < N_OBJ; ++i)
if(i > 0 && (i%N_CHK) == 0)
}
count = n = 0; /* count the group of elements with key == 0 */
if(o->key == 0)
n += 1;
terror("flatten %s: count=%d(need=%d) n=%d(need=%d)",
/* delete a bunch of objects */
terror("delete %s: i=%d",
k == 0 ? "bag" : "obag", i);
count = 0; /* count the left over */
count += 1;
terror("%s wrong count %d",
}
texit(0);
}