char* do_repeat(char* ch1, char* ch2, char* ch3, char* ch4) { char temp[1000]; int i = 0; give_term_error(ch1); do_peek(); ch1 = one_argument(ch1, temp); if (temp[0] < '0' || temp[0] > '9') { return NULL; } if (atoi(temp) <= 0) { return NULL; } if (atoi(temp) > 32000) { give_term_error("Be real. Repeat over 32,000? Yeah..right."); return NULL; } nasty = TRUE; for (i = 0; i < atoi(temp); i++) { handle_input(ch1); do_peek(); // Run some other stuff, just in case of bad scripts. } nasty = FALSE; update_term(); return NULL; }
public: customer_pointer peek() { return do_peek(); }
public: customer_pointer const& peek() const { return do_peek(); }