void vTest7() { int ai[] = {1}; int iSize = sizeof ai / sizeof ai[0]; int iVal = 1; vTest("vTest7", ai, iSize, iVal, 0); }
void vTest5() { int ai[] = {1, 2, 3, 4, 5, 6, 7}; int iSize = sizeof ai / sizeof ai[0]; int iVal = 7; vTest("vTest5", ai, iSize, iVal, 6); }
void vTest6() { int ai[] = {1, 2, 3, 4, 5, 6, 7}; int iSize = sizeof ai / sizeof ai[0]; int iVal = 6; vTest("vTest6", ai, iSize, iVal, 5); }
void vTest4() { int ai[] = {1, 2, 3, 4, 5, 6, 7}; int iSize = sizeof ai / sizeof ai[0]; int iVal = 1; vTest("vTest4", ai, iSize, iVal, 0); }
void vTest3() { int ai[] = {1, 2, 3, 4, 5, 6, 7}; int iSize = sizeof ai / sizeof ai[0]; int iVal = -1; vTest("vTest3", ai, iSize, iVal, -1); }
void vTest1() { int ai[] = {1, 2, 3, 4, 5, 6, 7}; int iSize = sizeof ai / sizeof ai[0]; int iVal = 4; vTest("vTest1", ai, iSize, iVal, 3); }
void vTest8() { int iVal = 1; vTest("vTest8", NULL, 0, iVal, -1); }
void interp(void) { char line[256]; char *p; while(1) { putchar('>'); putchar(' '); flushall(); gets(line); // p points to next word after verb on command line p = line; while (*p && *p!=' ') p++; if (!*p) p = 0; else { while(*p && *p==' ') p++; } switch(toupper(line[0])) { case 'B': vVerbose(p); break; case 'C': vCreate(p); break; case 'D': vDisplay(p); break; case 'F': vFind(p); break; case 'H': default: vHelp(line); break; case 'I': vInstall(p); break; case 'K': vPack(p); break; case 'P': vPretend(p); break; case 'R': vRemove(p); break; case 'S': vSave(p); break; case 'T': vTest(p); break; case 'U': vUpdate(p); break; case 'V': vVerify(p); break; case 'Q': case 'X': vSave(0); return; } // switch } // while assert(0); return; // shouldn't get here } // interp