/** ** File : vsplit.cxx ** Description: vsplit implementations **/ #include "precomp.h" #pragma hdrstop #include "vsplit.h" #include "fileio.h" /* * VsplitArray: Constructor */ VsplitArray::VsplitArray(DWORD i) { m_vsarr = new Vsplit[i]; numVS = i; if (m_vsarr) m_cRef=1; else throw CExNewFailed(); } void VsplitArray::write(ostream& os) const { os << "\n\nVSplits: (total = " << numVS << ")"; for (int i=0; i1) { int nt=!(code&T_RSAME); int ns=!(code&S_RSAME); if (nt && ns) { if (!(code&T_CSAME)) nwa++; if (!(code&S_CSAME)) nwa++; } else { int ii=(code&II_MASK)>>II_SHIFT; switch (ii) { case 2: if (!(code&T_CSAME)) nwa++; break; case 0: if (!(code&S_CSAME)) nwa++; break; case 1: if (!(code&T_CSAME) || !(code&S_CSAME)) nwa++; break; default: throw CBadVsplit(); } } } if (code&L_NEW) nwa++; if (code&R_NEW) nwa++; return nwa; }