#include "ledsdata.h" #include "ledstables.h" #include "ledsgeometry.h" // For templated class defined in ledsdata.h; can't make it a // static class variable without defining un-templated parent class. //UINT_32 g_uiFileNum = 0; //UINT_32 DataFile<>::m_uiFileNum = 0; UINT_32 g_uiPartitionsRequested = 0; UINT_32 g_uiNumBuckets = 1000; int lidPrCompareBoth(const void *arg1, const void *arg2) { LID lid1 = ((Pair *) arg1)->GetFirst(); LID lid2 = ((Pair *) arg2)->GetFirst(); if (lid1 < lid2) { return (-1); } else if (lid1 > lid2) { return (1); } else { lid1 = ((Pair *) arg1)->GetSecond(); lid2 = ((Pair *) arg2)->GetSecond(); if (lid1 < lid2) { return (-1); } else if (lid1 > lid2) { return (1); } else { return (0); } } }