void setup_files (register line_list the_list, register char *field) { register char *start; register char c; while (true) { while (((c = *field) != '\0') && (c == ' ' || c == '\t' || c == ',')) field += 1; if (c != '\0') { start = field; while (((c = *field) != '\0') && c != ' ' && c != '\t' && c != ',') field += 1; *field = '\0'; if (!open_a_file (start)) mail_error ("Could not open file %s", start); *field = c; if (c != '\0') continue; } if (the_list == ((line_list) NULL)) return; field = the_list->string; the_list = the_list->continuation; } }
int main (int argc, char *argv[]) { ::SetLastError (38); //DWORD err = ::GetLastError(); LogMsg << "err: " << perr << endl; open_a_file (); //if (parse_args (argc, argv) == -1) //return -1; Simple_Tester Simple_Tester; if (Simple_Tester.open () == -1) return -1; int success = 1; while (success != -1 && !done) { // dispatch events success = Proactor::instance ()->handle_events (); if (success == 0) OS::sleep (5); } return 0; }