History

.i as file extension Add a ".i" extension as alias for ".c" GCC and file extensions: .i C source code which should not be preprocessed.

Before a patch: ./tcc -E tccasm.c -o tccasm.i ./tcc -c tccasm.i -o tccasm.o tccasm.i:1: error: unrecognized file type

seyko committed 11 years ago

Commit b93179f1 parent 524abd41 file · +1 −1Browse files

Unified · Split

libtcc.c+1−1
@@ -1154,7 +1154,7 @@ ST_FUNC int tcc_add_file_internal(TCCState *s1, const char *filename, int flags) · 1153 unmodified lines
1154 goto the_end;1154 goto the_end;
1155 }1155 }
1156 1156
1157 if (!ext[0] || !PATHCMP(ext, "c")) {1157 if (!ext[0] || !PATHCMP(ext, "c") || !PATHCMP(ext, "i")) {
1158 /* C file assumed */1158 /* C file assumed */
1159 ret = tcc_compile(s1);1159 ret = tcc_compile(s1);
1160 goto the_end;1160 goto the_end;

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