equal
deleted
inserted
replaced
224 |
224 |
225 #if defined(UNIX) || defined(__OS2__) || defined(PSP) |
225 #if defined(UNIX) || defined(__OS2__) || defined(PSP) |
226 if (fgets(input_line, lengthof(input_line), stdin) == NULL) return; |
226 if (fgets(input_line, lengthof(input_line), stdin) == NULL) return; |
227 #else |
227 #else |
228 /* Handle console input, and singal console thread, it can accept input again */ |
228 /* Handle console input, and singal console thread, it can accept input again */ |
229 strncpy(input_line, _win_console_thread_buffer, lengthof(input_line)); |
229 assert_compile(lengthof(_win_console_thread_buffer) <= lengthof(input_line)); |
|
230 strcpy(input_line, _win_console_thread_buffer); |
230 SetEvent(_hWaitForInputHandling); |
231 SetEvent(_hWaitForInputHandling); |
231 #endif |
232 #endif |
232 |
233 |
233 /* strtok() does not 'forget' \r\n if the string starts with it, |
234 /* strtok() does not 'forget' \r\n if the string starts with it, |
234 * so we have to manually remove that! */ |
235 * so we have to manually remove that! */ |