// $Id: misc.h,v 1.13 2009/01/11 23:19:00 billl Exp $ #include #include #include /* contains LONG_MAX */ #include #include // #include #include typedef struct LISTVEC { int isz; double** pv; unsigned int* plen; unsigned int* pbuflen; } ListVec; typedef struct BVEC { int size; int bufsize; short *x; Object* o; } bvec; #define BYTEHEADER int _II__; char *_IN__; char _OUT__[16]; int BYTESWAP_FLAG=0; #define BYTESWAP(_X__,_TYPE__) \ if (BYTESWAP_FLAG == 1) { \ _IN__ = (char *) &(_X__); \ for (_II__=0;_II__