tccpp: #define max(a,b) && max /= 8;
This fixes 20a1ebf854
where the '/' above was lost when max() was defined
Also: ignore binary files with -E (for example 'tcc -lxxx -E ...')
This commit is contained in:
parent
0fd7376000
commit
aef64762c1
2 changed files with 6 additions and 0 deletions
5
libtcc.c
5
libtcc.c
|
@ -1039,6 +1039,11 @@ ST_FUNC int tcc_add_file_internal(TCCState *s1, const char *filename, int flags)
|
|||
filename = buf;
|
||||
#endif
|
||||
|
||||
/* ignore binary files with -E */
|
||||
if (s1->output_type == TCC_OUTPUT_PREPROCESS
|
||||
&& (flags & AFF_TYPE_BIN))
|
||||
return 0;
|
||||
|
||||
/* open the file */
|
||||
fd = _tcc_open(s1, filename);
|
||||
if (fd < 0) {
|
||||
|
|
1
tccpp.c
1
tccpp.c
|
@ -3236,6 +3236,7 @@ static int next_argstream(Sym **nested_list, TokenString *ws_str)
|
|||
} else if (c == '/') {
|
||||
p = parse_line_comment(p) - 1;
|
||||
} else {
|
||||
*--p = ch;
|
||||
break;
|
||||
}
|
||||
ch = ' ';
|
||||
|
|
Loading…
Reference in a new issue