History

Treat the - output as stdout.

Petr Skocik committed 8 years ago

Commit 93a4ddf1 parent 3b9c3fd1 file · +1 −1Browse files

Unified · Split

tcc.c+1−1
@@ -290,7 +290,7 @@ redo: · 289 unmodified lines
290290 tcc_error("no input files\n");
291291
292292 if (s->output_type == TCC_OUTPUT_PREPROCESS) {
293− if (s->outfile) {
293+ if (s->outfile && 0!=strcmp("-",s->outfile)) {
294294 ppfp = fopen(s->outfile, "w");
295295 if (!ppfp)
296296 tcc_error("could not write '%s'", s->outfile);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t