/*----------------------------------------------------------------------------*/ int asci_main_loop (int ii, int jj, int num) { baby_begin (ii, jj); baby_menu_newgame (/* TRUE */FALSE); if (num == 0) inf_loop (); else num_loop (num); printf ("\n"); return 1; }
int main(int argc, char* argv[]) { if (argc < 2) { // #BP1 return -1; } std::string testcase = argv[1]; if (testcase == "deepstack") { deepstack(50); } else if (testcase == "threads") { threads(15); } else if (testcase == "check_env") { if (argc < 4) { return -1; } return (int)check_env(argv[2], argv[3]); } else if (testcase == "inf_loop") { inf_loop(); } else if (testcase == "echo") { echo(); } else if (testcase == "vars") { vars(); } return 0; }