Showing the changes to src/core/util_console.cpp (1 of 20 files). Show all
Unified · Split
| @@ -54,22 +54,22 @@ char * io_readline( const char * prompt ) · 53 unmodified lines | ||
| 54 | 54 | |
| 55 | 55 | fputs( prompt, stdout ); |
| 56 | 56 | |
| 57 | − result = fgets( buf, CONSOLE_INPUT_BUFFER_SIZE, stdin ); | |
| 57 | + result = fgets( buf, CONSOLE_INPUT_BUFFER_SIZE, stdin ); | |
| 58 | 58 | |
| 59 | − if( result == NULL ) | |
| 60 | − { | |
| 61 | − free( buf ); | |
| 62 | − return NULL; | |
| 63 | − } | |
| 59 | + if( result == NULL ) | |
| 60 | + { | |
| 61 | + free( buf ); | |
| 62 | + return NULL; | |
| 63 | + } | |
| 64 | 64 | |
| 65 | − for( int i=0; i < CONSOLE_INPUT_BUFFER_SIZE; i++ ) | |
| 66 | − if(buf[i] == '\n' ) | |
| 67 | − { | |
| 68 | − buf[i] = 0; | |
| 69 | − break; | |
| 70 | − } | |
| 65 | + for( int i=0; i < CONSOLE_INPUT_BUFFER_SIZE; i++ ) | |
| 66 | + if(buf[i] == '\n' ) | |
| 67 | + { | |
| 68 | + buf[i] = 0; | |
| 69 | + break; | |
| 70 | + } | |
| 71 | 71 | |
| 72 | − return buf; | |
| 72 | + return buf; | |
| 73 | 73 | |
| 74 | 74 | #endif |
| 75 | 75 | } |
| @@ -78,11 +78,11 @@ void io_addhistory( const char * addme ) · 2 unmodified lines | ||
| 78 | 78 | { |
| 79 | 79 | #ifdef __USE_READLINE__ |
| 80 | 80 | |
| 81 | − add_history( addme ); | |
| 81 | + add_history( addme ); | |
| 82 | 82 | |
| 83 | 83 | #else |
| 84 | 84 | |
| 85 | − //do nothing | |
| 85 | + //do nothing | |
| 86 | 86 | |
| 87 | 87 | #endif |
| 88 | 88 | } |