Mercurial > sdl-ios-xcode
comparison src/main/win32/SDL_main.c @ 550:0ac20b67c2c7
*** empty log message ***
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 02 Dec 2002 01:10:20 +0000 |
parents | 8406511f850e |
children | 1f6438c8df2c |
comparison
equal
deleted
inserted
replaced
549:c4471fe94881 | 550:0ac20b67c2c7 |
---|---|
142 fclose(stdout); | 142 fclose(stdout); |
143 fclose(stderr); | 143 fclose(stderr); |
144 | 144 |
145 #ifndef NO_STDIO_REDIRECT | 145 #ifndef NO_STDIO_REDIRECT |
146 /* See if the files have any output in them */ | 146 /* See if the files have any output in them */ |
147 file = fopen(stdoutPath, "rb"); | 147 if ( stdoutPath[0] ) { |
148 if ( file ) { | 148 file = fopen(stdoutPath, "rb"); |
149 empty = (fgetc(file) == EOF) ? 1 : 0; | 149 if ( file ) { |
150 fclose(file); | 150 empty = (fgetc(file) == EOF) ? 1 : 0; |
151 if ( empty ) { | 151 fclose(file); |
152 remove(stdoutPath); | 152 if ( empty ) { |
153 } | 153 remove(stdoutPath); |
154 } | 154 } |
155 file = fopen(stderrPath, "rb"); | 155 } |
156 if ( file ) { | 156 } |
157 empty = (fgetc(file) == EOF) ? 1 : 0; | 157 if ( stderrPath[0] ) { |
158 fclose(file); | 158 file = fopen(stderrPath, "rb"); |
159 if ( empty ) { | 159 if ( file ) { |
160 remove(stderrPath); | 160 empty = (fgetc(file) == EOF) ? 1 : 0; |
161 fclose(file); | |
162 if ( empty ) { | |
163 remove(stderrPath); | |
164 } | |
161 } | 165 } |
162 } | 166 } |
163 #endif | 167 #endif |
164 } | 168 } |
165 | 169 |