int copy_file_thru_input::inget() { if (!in) return EOF; else return in->get(); }
int input_stack::get_char() { while (current_input != 0) { int c = current_input->get(); if (c != EOF) { bol_flag = c == '\n'; return c; } // don't pop the top-level input off the stack if (current_input->next == 0) return EOF; input *tem = current_input; current_input = current_input->next; delete tem; } return EOF; }